cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morley Howell" <mor...@orbiscommunications.com>
Subject Bug in Transformer?
Date Thu, 15 Jan 2004 17:15:47 GMT
Hi all,

It appears that 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. See
the thread 'Losing XML data in the pipeline' on this list for an example.

I'm not sure that this is a bug in Cocoon itself, or whether it might be a
bug in Xerces, Xalan, or even the JRE. Can anyone shed any light on this?

Thanks,

Morley


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message