[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl if statement
> > <xsl:template match="child"> > > <xsl:if test="'[child=⇄]'"> > try: > <xsl:if test=".=⇄"> > > first remove apostroph. > second you already matched child element. use only dot. You caught two of his errors but missed the third. It should be <xsl:if test=".='⇄'"> Personally, I would write <xsl:template match="child[.='⇄']"> <span style="color:red"> <xsl:apply-templates/> </span> </xsl:template> <xsl:template match="child"/> Michael Kay http://www.saxonica.com/
|
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
|