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

Re: How to define a global parameter and change its va

Subject: Re: How to define a global parameter and change its value
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 13 Feb 2002 16:00:22 -0500
xslt change global parameter
[Chi Lin]

> Thanks Tom,
>
> I found another way to assign value for a global parameter which takes
value
> from one specific element in the XML file.
>
> This is line I used:    <xsl:param name="className" select="//Class"/>
> The information I was looking for is the value in <Class>value</Class> to
be
> used in one template.
>
> It works for me now.  Thanks for all the people who responded.
>

I'm glad that it works, but it may not always give what you want.  The
parameter will contain a node set consisting of all "Class" nodes, whatever
element they are children of.  If you use xsl:value-of, it will give you the
string value of the first of these.  That may or may not be what you want,
depending on the xml you are transforming.

You may have to be more specific in specifying the value of your param,
since you won't be able to change it as you move from element to element.

Cheers,

Tom P


 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.