xsl-list
[Top] [All Lists]

[xsl] xsl if statement

2006-08-16 04:38:56
Hello,

I want to match the text "⇄" only form the xml file like:

<root>
<child>&#x21C4;</child>
<child>&#x0029;</child>
</root>

Using if statement I have coded like below:

<xsl:template match="child">
<xsl:if test="'[child=&#x21C4]'">
<span style="color:red">
<xsl:apply-templates/>
</xsl:if>
</span>
</xsl:template>

But its not working please suggest how to capture this.

Regards,
S.Vanaja

--~------------------------------------------------------------------
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>