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: "Ben Robb" <b dot robb at cscape dot com>
- Date: Wed, 8 Aug 2001 09:34:52 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
You are already in the context of main/timer when you start the choose
statement (because of the template match). This means that you should be
able to use:
<xsl:when test="text() = 'On'">
or
<xsl:when test=" . = 'On'">
to get your desired result. Or, in the case shown, its more concise to
say:
<xsl:template match = "main/timer">
Timer is <xsl:value-of select="."/>
</xsl:template>
and get rid of the choose statement altogether.
Rgs,
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list