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: "Oleg Tkachenko" <olegt at multiconn dot com>
- Date: Wed, 8 Aug 2001 11:33:50 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello Lakshmi !
> I have an xml file in the following format
>
> <main>
> <timer> On </timer> (this could be either "On" of "Off" or "Manual")
> </main>
>
> <xsl:template match = "main/timer">
> <xsl:choose>
> <xsl:when test=" main/timer = 'On'">
This test is always false, because your current node <timer> doesn't have any chidren
named <main>. Try
<xsl:when test=".='On'">
---
Oleg Tkachenko
Multiconn International
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list