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

Re: XSL variable declaration

Subject: Re: XSL variable declaration
From: cutlass <cutlass@xxxxxxxxxxx>
Date: Fri, 23 Mar 2001 11:22:57 +0000
xml variable declaration
<xsl:variable name="test" select="some_element"/>
or
<xsl:param name="test" select=""/>

either of the 2 will serve your purposes but remember

a) use the variable in conditions where u get the value of the variable from xml. the one constraint here is that a variable can only be set initially and not changed ( ex. u can't increment test=test+1), its one of the unique differences of xsl

b) use the param value when 'passsing' an external variable to your stylesheet, the technique for this is unique to each xsl parser, goto xsl faq for this http://www.dpawson.co.uk

to refer to that param here is an example that should work in any parser

<xsl:value-of select="$test"/>

thx for telling us the editor, but more important is 'which ' xsl parser u are using to perform your transforms and a more detailed description of your problem.

cheers, jim fuller

msujit@xxxxxxxxxx wrote:

Hi
 I'm workking with Spy XML 3.5. Can anybody tell me the syntax of declaring
an independent variable in XSL/XML
so that I can use it in fetching record from DB2.

Sujit.



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





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.