cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwin <erw...@supermachien.kotnet.org>
Subject Re: Multiple independent XSLT transforms applied to one XML file.
Date Tue, 30 Apr 2002 18:58:35 GMT
On Tue, 30 Apr 2002, Fabricio Chalub wrote:

> Hello, I suppose this is the kind of email that possibly reflects a deep
> misunderstanding of the basic principles on which Cocoon relies. If that is
> the case, just warn me. ;)
>
> The simple question is:
>
> Using Cocoon (possibly through the sitemap), how do I process a XML file
> that combines two different DTDs with two *separate* XSLT transforms?  Or
> even using a single combined DTD, in which but a part of it goes to one XSLT
> file and part is processed by another XSLT file.
>
> ---
>

Have you considered using xsl:include or xsl:import in your XSLT
stylesheets?

You could make one new xslt stylesheet and include/import the two other
stylesheets and refer to this new stylesheet in the sitemap. If needed,
you could override some templates in the new stylesheet.

Have a look at http://www.w3.org/TR/xslt11/#N1316 for more details.

Some other links:
http://www.webreference.com/xml/column17/
http://www.zvon.org/HTMLonly/XSLTutorial/Books/Book1/bookInOne.html#chapter17




---------------------------------------------------------------------
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