Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Boolean true and false as strings >Thread Next - Re: Boolean true and false as strings Re: Boolean true and false as stringsTo: NULL Date: 1/6/2009 11:05:00 AM I accidentially hit send before finishing...
=============================
As I'm trying to do conditional variable assignment (see the post below), I
have to use
<xsl:variable name="someName">
<xsl:value-of select="true()"/>
</xsl:variable>
instead of
<xsl:variable name="someName" select="true()"/>
but apparently value-of select converts my variable to string instead of
boolean, and that leaves a dangerous trap in my code that people who follow
up might try to test the string and always return TRUE.
Is there any other ways to assign boolean values using <xsl:variable>
without putting "select" at the same line.
Thanks.
Cheers,
Hoi
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
