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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--