[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: "Convert" true/false to 0/1
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Wed, 28 Sep 2005 02:16:23 +0000
convert true to a string
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:  "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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.