Re: if statement
1. you are testing on element child, even though your xsl:template has made the child element the context node. so the child element you're using in your test doesn't exist, as the match would occur on child/child.
2. your xslt syntax is not well-formed XML.
3. your test syntax is not properly formed. i don't know what you're trying to accomplish with the brackets, but i'm assuming that you want to copy
<span style="color:red"> <xsl:apply-templates/> </span>
to the output if a child's content is equal to C4;
what you want is:
<xsl:if test=". = '⇄'"> <span style="color:red"> <xsl:apply-templates/> </span> </xsl:if>
vanaja selvaraj wrote:
<root> <child>⇄</child> <child>)</child> </root>
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format