|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Can I use a boolean variable in an xsl:if test
At 10:58 AM 2/8/2005, Mike wrote:
<xsl:variable name="show"> <xsl:value-of select = "$time != 60000" /> </xsl:variable> My guess is that newbies imagine xsl:value-of to be some kind of "evaluate" function. Of course what it really is, is an instruction to write a string to a result tree (to "the" result tree or to a result-tree-fragment, as the case may be). Since this is generally what we want to have happen to our results, there seems to be nothing to get confused about. Until it breaks, that is, because we're not writing it out, but doing something else with it instead. Like testing whether it's true, while imagining we're testing the expression that was evaluated for it. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








