Hello.
I've got the following XML:
<?xml version="1.0" encoding="utf-8"?> <content xmlns:source="http://apache.org/cocoon/source/1.0"> <source:write serializer="xml"> <source:source>test-output</source:source> <source:fragment> <!-- anoying comment --> <rss version="2.0">
</rss>
</source:fragment>
</source:write>
</content>Once passed thru the source writing transformer, the test-output file is:
<?xml version="1.0" encoding="utf-8"?> <!-- anoying comment -->
BUT, the sitemap.log (in debug mode), says the file is correctly handled:
DEBUG (2005-02-20) 19:29.03:388 [sitemap.transformer.write-source] (/llinfo/syndication/svnllinfo-rss2-updatecache) TP-Processor3/AbstractSAXTransformer: End recording. Fragment=<?xml version="1.0" encoding="UTF-8"?> <!-- anoying comment -->
<rss version="2.0">
</rss>
DEBUG (2005-02-20) 19:29.03:388 [sitemap.transformer.write-source] (/llinfo/syndication/svnllinfo-rss2-updatecache) TP-Processor3/SourceWritingTransformer: End transforming element. uri=http://apache.org/cocoon/source/1.0, name=write, raw=source:write DEBUG (2005-02-20) 19:29.03:389 [sitemap.transformer.write-source] (/llinfo/syndication/svnllinfo-rss2-updatecache) TP-Processor3/SourceWritingTransformer: Insert fragment. systemID=test-output, path=/, replace=null, create=true, overwrite=true, reinsert=null, fragment=<?xml version="1.0" encoding="UTF-8"?> <!-- anoying comment -->
<rss version="2.0">
</rss>
When the comment is not here, the output file is correct:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0">
</rss>
It is a bug? A feature? Is someone knows about it? Should I create an account and fill a bug in nagoya?
Rgds.
I'm using cocoon2.1.6 with a genuine xalan 2.6 (not the cocoon.war one) -- Aur�lien DEHAY
signature.asc
Description: OpenPGP digital signature
