Subject: RE: [xsl] xsl if statement From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 16 Aug 2006 14:22:14 +0100 |
> > <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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl if statement, Juergen | Thread | [xsl] Grouping upon various attribu, lawrence.michel |
Re: [xsl] <xsl:template match="and", David Carlisle | Date | [xsl] Grouping upon various attribu, lawrence.michel |
Month |