Reinhard Poetz wrote:
Here I don't need to transform one xml to another one. I need html as output.So the joined parts are not xml files anymore but html files? So I can't use <map:transform src="styles/menuandbook2html.xsl"/> on them anymore and I can't also use <map:serialize/>You have to possiblities: 1. Each of the map:part-pipelines returns the xml in the form you need it for your client. But make sure to use the XML serializer and not the html-serizalizer. (map:serialize type="xml"/>)
And this is what I don't want (ie one big xsl). I want one xsl for menu (and generally navigation) and one for content, so I will have a few small xsl files vs one big (easier to manage).2. <map:aggregate element="site"> <map:part src="content/menu.xml"/> <map:part src="content/books.xml"/> </map:aggregate> <map:transform src="styles/menuandbook2html.xsl"/> <map:serialize type="html"/> In this case you read your books and your menu directly (without using sub-pipelines) and you only have one stylesheets that transforms your xml in html.
So I think the second step is the way to go and manage xsl files using one 'main' (here menuandbook2html.xsl) xsl which includes the rest.
Sounds reasonably?
Thanx
Piotr Legiecki
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>