This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem with xsl:choose
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Problem with xsl:choose
- From: Jarno dot Elovirta at nokia dot com
- Date: Wed, 8 Aug 2001 11:15:08 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
> what you want is either:
>
> <xsl:template match="/">
> ...
> </xsl:template>
>
> or
>
> <xsl:when test=".='On'">
This still would always match the xsl:otherwise because of the spaces around
the 'On'. Use
<xsl:when test="normalize-space(.)='On'">
if the spaces are insignificant, or
<xsl:when test=".=' On '">
if not.
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list