Subject: RE: [xsl] Problem with xsl:choose From: "Ben Robb" <b.robb@xxxxxxxxxx> Date: Wed, 8 Aug 2001 09:34:52 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem with xsl:choose, Jarno . Elovirta | Thread | RE: [xsl] List in a variable, Jarno . Elovirta |
RE: [xsl] compare two lists of valu, Michael Kay | Date | RE: [xsl] xml2xml problem!, Michael Kay |
Month |