[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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. ;-)
[xsl] Parametrized includes -work-around?
Subject: [xsl] Parametrized includes -work-around? From: Ralph Holz <ralph.holz@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 06 Aug 2004 15:03:34 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] testing 1st child, christof.hoeke | Thread | Re: [xsl] Parametrized includes -wo, David Carlisle |
AW: [xsl] testing 1st child, christof.hoeke | Date | Re: [xsl] testing 1st child, David Carlisle |
Month |