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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>