This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem with xsl:choose


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]