cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien DEHAY ...@zorel.org>
Subject Bug in SourceWritingTransformer.java ??
Date Sun, 20 Feb 2005 18:30:05 GMT
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

Mime
View raw message