Subject: [xsl] xsl:when problem From: "Roel Dillen" <dillenroel@xxxxxxxxxx> Date: Sun, 4 Sep 2005 18:36:12 +0200 |
I want to add a conditional hyperlink to my to a certain element <xsl:choose> <xsl:when test='tag ="blabla"'> <a href="blabla.htm"><xsl:value-of select="tag" /></a> </xsl:when> <xsl:otherwise> <xsl:value-of select="tag" /> </xsl:otherwise> </xsl:choose> This is part of the xsl document With in the corresponding xml document <tag>blabla</tag> This works if the tag-value pair is exactly the above BUT if, for readability's sake, I try to write the tag-value pair like this <tag> blabla </tag> then it doesn't match the test criterium Is there some kind of solution for this (I was thinking about regular expressions). Roel XSLT Processor VersionVendor: TransformiixVendor URL: http://www.mozilla.org/projects/xslt/ -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 2-9-2005
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to convert an RDF/XML fil, Gianni G | Thread | Re: [xsl] xsl:when problem, Joris Gillis |
[xsl] How to convert an RDF/XML fil, Gianni G | Date | Re: [xsl] xsl:when problem, Joris Gillis |
Month |