Hi guys,
I configured a xml serializer which outputs a doctype:
<map:serializer logger="sitemap.serializer.xml"
mime-type="text/xml" name="division"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-system>http://nww.qa.spider.nxp.com:8310/xmetal/schemas/xmlfrag
ment_cals.dtd</doctype-system>
</map:serializer>
When including source fragments with this doctype the files get saved
without the specified doctype. When calling the pipeline directly which
uses the new serialized (division/*/*) the Doctype is there... I
checked this.
<map:match pattern="divisions/*">
<map:generate
src="cocoon:/container-write-include/{1}"/>
<map:transform type="write-source"/>
<map:serialize type="xml"/>
</map:match>
<!--+
| Get the division XML extracted from the complete
datasheet
| XML. The division is identified by the second
argument.
|
| @{1}: Product identifier.
| @{2}: Division title.
+-->
<map:match pattern="division/*/*">
<map:generate src="cocoon:/datasheet/{1}"/>
<map:transform src="xslt/extract-division.xslt"
type="saxon">
<map:parameter name="division" value="{2}"/>
</map:transform>
<map:transform src="xslt/div2cals.xsl" type="saxon"/>
<map:serialize type="division"/>
</map:match>
How can I accomplish that the individual source fragments keep their
doctype declaration when saved to disk??
Thx in advance,
Robby