The XPath data model does not distinguish between <![CDATA[]]> markup and escaping individual characters, and in fact XML's semantics don't distinguish between them.
Xalan does not promise to preserve that distinction. We've made some attempts to do so in the past simply as a courtesy to the users, but there are real limits on how much can be achieved and it probably isn't worth the effort. A stylesheet can be told to output certain elements using <![CDATA[]]> sections. See the documentation for <xsl:output>'s cdata-section-elements attribute. But my recommendation would be to fix/educate whatever/whoever is insisting on seeing these in the output. ______________________________________ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish ( http://www.ovff.org/pegasus/songs/threes-rev-11.html)