This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Passing Variables to XSL Templates


use <xsl:param/> but it will depend on what is parsing the xml/xslt

if u are using M$ then go to www.netcrucible.com and www.bayes.co.uk to get
the dope on how to do it.

other parsers usually will let you define params within the command line
form,

using something like AxKit/Cocoon( and i think mod_xslt ) means you can
place it in the URL ( though if you are a newbie, i would not suggest this
route at the moment).

and maybe http://www.dpawson.co.uk/xsl/sect2/N5982.html this will help also,
once you have got the param into your stylesheet.



good luck, jim fuller


----- Original Message -----
From: "Joshua Miller" <josh.miller@eagletgi.com>
To: "Xsl-List@Lists.Mulberrytech.Com" <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, June 27, 2001 12:47 PM
Subject: [xsl] 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@eagletgi.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]