[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl if statement

Subject: xsl if statement
From: "vanaja selvaraj" <ss.vanaja@xxxxxxxxx>
Date: Wed, 16 Aug 2006 17:08:10 +0530
xsl if statement
Hello,

I want to match the text "&#x21C4;" 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.