Re: [xsl] "Convert" true/false to 0/1

Subject: Re: [xsl] "Convert" true/false to 0/1
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Wed, 28 Sep 2005 02:16:23 +0000
Thank you. As a prior respondent pointed out, I guess the crus of the matter is that I need to test as @edible = 'false' (i.e., the string 'false')

--A


From: Andrew Franz <afranz0@xxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] "Convert" true/false to 0/1
Date: Wed, 28 Sep 2005 06:09:14 +1000

<xsl:template match="data">
<data><xsl:apply-templates /></data>
</xsl:template>

<xsl:template match="foo[(@edible='false')]">
<foo edible="0"><xsl:apply-templates select="@*" /></foo>
</xsl:template>
<xsl:template match="foo">
<foo edible="1"><xsl:apply-templates select="@*" /></foo>
</xsl:template>

<xsl:template match="@edible" />

_________________________________________________________________
Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/


Current Thread