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

Parametrized includes -work-around?

Subject: Parametrized includes -work-around?
From: Ralph Holz <ralph.holz@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 06 Aug 2004 15:03:34 +0200
how includes work
Hi,

if I understand the FAQ at

http://www.dpawson.co.uk/xsl/sect2/nono.html#d1796e238

correctly, then it is not possible at run-time to pass a parameter to a stylesheet that would indicate which other stylesheet to include for the processing. This is due to the fact that a stylesheet must be built and compiled by the processor before the actual instructions are executed. Correct?

Now, of course, that would be exactly the feature we want (typical, eh). :-)

The FAQ also states that

"If you want to construct a stylesheet whose contents depend on the input data then you'll need to do this in a separate transformation step." (Mike Kay)

So how would such a transformation step look like, I'm not exactly clear about that? The only solution that I can think of would be a kind of "wrapping" task executed by my XSLT processor: an XSLT stylesheet would work on two other stylesheets (selected by the processor, depending on the XML input data), combining them into one. This would be followed by the transformation of my actual source XML with the newly created stylesheet.

Would that work? I can feel this would require some adaptions to our software. Thank god it's Friday. ;-)

Thanks,
Ralph

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.