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=26219>.
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=26219

AbstractDOMTransformer dropping data

           Summary: AbstractDOMTransformer dropping data
           Product: Cocoon 2
           Version: 2.1.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The AbstractDOMTransformer (ADT) has a bug in the way it handles SAX events. If 
it receives multiple calls to characters() between calls to startElement() and 
endElement(), the DOM Node that it produces only has the data from the first 
call to characters(), and the data from the rest of the calls to characters() 
is lost.

One way to duplicate this problem is to set up an XSLT transform that outputs a 
single tag whose value is generated by multiple xsl:value-of tags. This causes 
the condition of multiple calls to characters(), and the problem ensues if you 
use the ADT downstream of the xslt transformer. The problem also occurs if you 
use the session transformer in a similar way, ie. output a single tag whose 
value is generated by multiple session:getxml tags.

This bug is being entered pursuant to the threads 'Losing XML data in the 
pipeline' and 'Bug in Transformer?' from the Cocoon Users List in January 2004.

Reply via email to