Hi,
1. you need to aggregate the output of these two xml transformation
<map:match pattern="firstXSLT">
<map:generate type="file" src="firstXML"/>
<map:transform type="xslt" src="firstXSL.xsl" />
<map:serialize type="xml"/>
</map:match>
<map:match pattern="secondXSLT">
<map:generate type="file" src="secondXML"/>
<map:transform type="xslt" src="secondXSL.xsl" />
<map:serialize type="xml"/>
</map:match>
and then
<map:match pattern="myOutput.html">
<map:aggregate element="html">
<map:part src="cocoon:/firstXSLT" element="partOne"/>
<map:part src="cocoon:/secondXSLT" element="partTwo"/>
</map:aggregate>
<map:serialize type="html"/>
</map:match>
2. for this you need to change the header of your result document, this forces
a save as prompt
just add:
<map:act type="set-header">
<map:parameter name="Content-Type"
value="application/x-download"/>
<map:parameter name="Content-Disposition" value="attachment ;
filename={1}"/>
</map:act>
before <map:serialize>
regards, matthias
----- Ursprüngliche Mail ----
Von: arj123 <[EMAIL PROTECTED]>
An: [email protected]
Gesendet: Mittwoch, den 15. Oktober 2008, 08:28:22 Uhr
Betreff: Generate HTML from 2 XMLs
Hi All,
1. Is it possible to generate a HTML from more than one XML files with
there own Xsl.
for example there are two xmls say X1.xml and X2.xml.
And two xsl files X1Xsl.xsl(for X1.xml) and X2Xsl.xsl(for X2.xml).
Now I want to generate one html out of these two xmls.
Is it possible.
The aggregation example in Cocoon aggregates the xmls first and then apply
xsl and html is generated.
But I want to use different xsl for different Xml.
If possible how can it be done?
2. Is it possible to save the output Html on disk?
Thanks
--
View this message in context:
http://www.nabble.com/Generate-HTML-from-2-XMLs-tp19987521p19987521.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]