xsl-list
[Top] [All Lists]

Re: Comparing of attribute and CDATA value

2004-11-26 10:24:34
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.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>