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

RE: can one pass a parameter when opening an xml file?

Subject: RE: can one pass a parameter when opening an xml file?
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Thu, 3 Aug 2000 08:46:31 -0700
xsl xml filename parameter
Use <xsl:param name="yourName"/> as a top-level element; it will function as
a global parameter.  How its value is assigned is determined by the
processor you are using.  It could be assigned from the command line, eg.
saxon -o output.html filename.xml stylesheet.xsl yourName=A

Or the API may have a way of assigning it, such as setParameter("yourName",
"A")

Just remember that this may change from one processor to another, though
there are efforts under way to standardize a common API
(http://www.mulberrytech.com/xsl/xsl-list/archive/msg11770.html)

Good luck,

Evan Lenz
elenz@xxxxxxxxxxx

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Eric Taylor
Sent: Thursday, August 03, 2000 7:05 AM
To: 'XSL-List@xxxxxxxxxxxxxxxx'
Subject: can one pass a parameter when opening an xml file?


Perhaps just a bizarre idea (novices are good on this front), but is it
possible to add a parameter when opening an xml file so that I can do
something different in the XSL depending on what the parameter is? e.g.
filename.xml A vs. filename.xml B and then in the XSL do something like
<xsl:if parameter1="A">...<xsl:if> <xsl:if parameter1="B">...<xsl:if>


 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.