cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26219] New: - AbstractDOMTransformer dropping data
Date Sat, 17 Jan 2004 16:48:27 GMT
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: dev@cocoon.apache.org
        ReportedBy: mjhowell@mail.com


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.

Mime
View raw message