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

Re: Sending parameters to stylesheets?

Subject: Re: Sending parameters to stylesheets?
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Wed, 03 Jul 2002 22:42:46 +0200
sending parameters to xsl stylesheet
Gustaf Liljegren wrote:
I have an XSL-FO stylesheet for traditional documents. It contains some
standard headings like "Preface", "Table of Contents" and such. Sometimes I
want these in English, sometimes in Swedish. Sometimes I want A4, sometimes
US Letter. Is it possible to avoid having more than one stylesheet for
these variations?

The way I can think of would be to have a wrapper stylesheet for each
variation that only contains these few things that are different. Is it an
even better solution in XSLT (1 or 2), that makes it possible to send
parameters to the stylesheet on the command-line?

Checkout xsl:param. XSLT processors in general allow you to pass parameter values on the command line.

J.Pietschmann



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.