You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/03/04 23:49:46 UTC

DO NOT REPLY [Bug 27456] New: - [PATCH] BetwixtTransformer output twice the startDocument. Fix.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27456

[PATCH] BetwixtTransformer output twice the startDocument. Fix.

           Summary: [PATCH] BetwixtTransformer output twice the
                    startDocument. Fix.
           Product: Cocoon 2
           Version: 2.1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: oscpro@yahoo.com


When trying to use the BetwixtTransformer you obtain the following results:

- If the serializer that ends the pipeline is <map:serialize type="xml"/>.
We get :

<?xml version="1.0" encoding="ISO-8859-1" ?>
  <page xmlns:xsp="http://apache.org/xsp" >
  <example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
   <?xml version="1.0" encoding="ISO-8859-1" ?>
....

- If the serializer that ends the pipeline is <map:serialize/>.
We get:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<page xmlns:xsp="http://apache.org/xsp">
<example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
       <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
...

In any case. It's wrong. We get twice what should appear at the start of the
document.

see thread: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107676749217407&w=2