Subject: Re: [xsl] Comparing of attribute and CDATA value From: Cas Tuyn <Cas.Tuyn@xxxxxxxx> Date: Fri, 26 Nov 2004 18:24:34 +0100 |
Sven, Can you put both in a variable? Then you can compare the variables. Like: <xsl:variable name="value1"> <xsl:value-of select="parameter/value" /> </xsl:variable> <xsl:variable name="value2"> <xsl:value-of select="itable/@id" /> </xsl:variable> <xsl:if test="$value1 == $value2"> <p>Both values are equal</p> </xsl:if> Cas > i tried to compare one CDATA value with an attribute, but i doesn't work. > xml: > ------------------- > <parameter> > <value><![CDATA[1]]></value> > </parameter> > > <itable id="1"> > .. > </itable> -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Comparing of attribute an, David Carlisle | Thread | [xsl] RE: xalan processor problem, Andrew Curry |
RE: [xsl] alternative to FO?, Michael Kay | Date | RE: [xsl] Problem for : increment a, que Li |
Month |