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: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 8 Aug 2001 09:59:17 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <!-- main/timer -->
> <xsl:template match = "main/timer">
> <xsl:choose>
> <xsl:when test=" main/timer = 'On'">
Within this template rule, the context node is a <timer> element. By writing
test="main/timer" you are looking for a <main> element that is a child of
this <timer> element, and then for a <timer> element that is a child of this
<main> element. You actually just want to test the context node itself:
<xsl:when test=". = 'On'">
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list