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

external var in XSL

Subject: external var in XSL
From: Vojko <vojko@xxxxxxxxxxx>
Date: Wed, 16 Mar 2005 12:10:00 +0100
define var in xsl
Hi

Is there a way...to put a var in style sheet and then define it on
parsing?

I would like to pars XSL and give it a different output by defining
different @name.

Example:

<xsl:template match="manual/chapter[@name=chapter1']"> --> chpater1.html
<xsl:template match="manual/chapter[@name=chapter2']"> --> chpater2.html

The XSL would stay the same...it would only pars different XML tag, a
tag that is defined by @name.

So is there a way to define this on pars job when defining -in, -xsl and
-out attributes...since this way...I wouldn't need to copy n number of
XSL files for n number of output HTML files.

I am using Apache Xalan.

And if I totally missed in thinking how to do it...please advise how
could this problem be solved any other way.

Regards, Vojko.

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.