Subject: RE: [xsl] Problem with xsl:choose From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 8 Aug 2001 09:59:17 +0100 |
> <!-- 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem with xsl:choose, Yogesh | Thread | RE: [xsl] Problem with xsl:choose, Oleg Tkachenko |
RE: [xsl] TransformerException, Michael Kay | Date | [no subject], Lakshmi Narayanan K |
Month |