You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Michael Wyraz <mi...@evermind.de> on 2001/02/12 12:32:44 UTC

XSLT Processor with different XSL Files

Hi there,

i have some xml files whith data that should be shown in different frames 
(with different xls stylesheets). is there a possibility to say the 
xslt-processor which xsl to use (via url)?
maybe with:
http://my.domain.com/home.xml?xsl=stylesheets/main.xsl
or something else.

if not, i would like to add this feature to the xslt-processor.
for that is have the following ideas:
1) adding an option which let you specify the xsl file to use (like the 
example above)
2) adding an option to choose one of some predefined xsl files
(in that case, the xml would contain several xsl directives and one of them, 
by default the first, would be used by the xslt processor)
the xml would like:
[...]
<?xml-stylesheet href="hello-page-html.xsl" type="text/xsl"? name="style1">
<?xml-stylesheet href="hello-page-html.xsl" type="text/xsl"? name="style2">
[...]
and the url like:
http://my.domain.com/home.xml?style=style1

(i would prefer the second one because the user will not see the real 
name/location of the xsl file ;-)

so long. Michael.