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

RE: Global variable

Subject: RE: Global variable
From: "Matthieu Ricaud" <matthieu.ricaud@xxxxxxx>
Date: Mon, 21 Feb 2005 12:37:00 +0100
objet as variable
Hi Katharina,

If your the value of your variable can be defined with a single Xpath
expression from the root element, you could use the select attribute from
<xsl:variable> at the beginning of the template, for example :

<xsl:param name="test" select="ROOT/NODE/@attibute"/>

Hope this help,

Matthieu.

-----Message d'origine-----
De : katharinakreis@xxxxxx [mailto:katharinakreis@xxxxxx]
Envoyi : lundi 21 fivrier 2005 11:51
@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet :  Global variable


Hi!

I have a stylesheet with several templates in it. In every template I
need the same variable, so I think the best is to make it global! But I
have one problem with it: I do not know the value of the variable at the
beginning of the stylesheet. I get it in my first template. So in this
template I have a local variable and I need to make it global.

Is this possible?

Katharina

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.