xsl-list
[Top] [All Lists]

Re: "Convert" true/false to 0/1

2005-09-27 19:16:23
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(_at_)optushome(_dot_)com(_dot_)au>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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" />

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>