This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem with xsl:choose


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]