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

Re: Passing Variables to XSL Templates

Subject: Re: Passing Variables to XSL Templates
From: "Fr\id\iric SCHWEBEL" <schwebel@xxxxxxxxxxxxxxxx>
Date: Wed, 27 Jun 2001 14:23:05 +0200
josh schwebel
I don't know if it helps, but if your variable is a parameter in the URI,
write :
<xsl:param name="name" />
at the beginning of the stylesheet (just after your <xsl:stylesheet> root
tage, and before any <xsl:template match="..."> )

then you'll have access to $name as the variable. Since "name" is a reserved
word, I don't know if you can use it as a variable name...

and the function you want to use is name(.) , not NAME.

Frederic

----- Original Message -----
From: "Joshua Miller" <josh.miller@xxxxxxxxxxxx>
To: "Xsl-List@xxxxxxxxxxxxxxxxxxxxxx" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, June 27, 2001 1:47 PM
Subject:  Passing Variables to XSL Templates


> Greetings,
>
> Newbie question for the XSL masters - is there anyway that I can pass a
> variable into an XSL Template to populate a CASE statement?
>
> Want to do something like: <xsl:if match=".[NAME='$name']">
> But the variable will be coming from either ColdFusion, ASP, JAVA or
> somewhere else.
>
> Is this possible???
>
> Joshua Miller
> Web Development::Programming
> Eagle Technologies Group, Inc.
> www.eagletgi.com
> josh.miller@xxxxxxxxxxxx
>
>
>  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.