cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Strickler" <Markus.Strick...@raytion.com>
Subject On the fly XSLT generation
Date Fri, 06 Jul 2001 14:02:46 GMT
Hi-

I'd like to generate the stylesheet my XML files are transformed with on the
fly by transforming another XML file with a corrosponding stylesheet.
So for example I have an XML File main.xml, that contains something like
this:

<!-- stuff ommitted -->
<pageinfo>
 <name>page1</name>
 <headstyle>head1.xsl</headstyle>
</pageinfo>
<pageinfo>
 <name>page2</page>
 <headstyle>head2.xsl</headstyle>
</pageinfo>
<!-- stuff ommitted -->

and an XML file page1.xml:


<!-- stuff ommitted -->
<page id="page1">
 <content>...</content>
</page>
<!-- stuff ommitted -->

where the dynamically generated Stylesheet should look like this:

<!-- stuff ommitted -->
<xsl:import href="head1.xsl">
<!-- stuff ommitted -->

What's the best way to do this?

-markus




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message