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

Re: How can you tell if a variable exists?

Subject: Re: How can you tell if a variable exists?
From: "Scott Sanders" <scott@xxxxxxxxxxxx>
Date: Mon, 11 Oct 1999 19:13:21 -0700
scott sanders
This would work, except that I have many, many templates I want to apply
this to, so this solution will double my number of templates.  Also, what if
I need to check 6 variables?

Scott

> You could test for existing variable by this:
>
> <xsl:apply-templates select="your variable name" />
>
> if it does exist then it will go to this loop
>
> <xsl:template match="your variable name">
>     ---whatever you wanted to do with the parameter
> </xsl:template>
>
> hope this help and good luck :->
> Thuy
>
> How can you tell if a variable exists (or rather does not exist), without
> erroring out of the stylesheet.
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.