You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Joerg Henne <j....@levigo.de> on 2001/08/20 21:57:47 UTC

[C2 patch] Incorrect serialization to XML

Hi,

the way I read the SAX specification, the qName (or raw name) of elements that
is passed to the callback methods is of purely informal character and does not
necessarily contain the full (raw) element name. However, C2's serialization
to XML results in the qName being used to name the output elements. This is
due to the missing or incomplete namespace support in the SerializerToXML from
Xalan which is used.

AbstractTextSerializer already contains code to work around Xalan problems, so
it could fix this problem as well, although fixing it comes at the cost of 2
hashtable lookups and string concatenations per element. If you agree that
this should be done, the following patch will do the job.

Joerg Henne