cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <>
Subject Re: showing XHTML from a database
Date Thu, 22 May 2003 18:29:58 GMT
Joerg Heinicke wrote:

> Unfortunately it works in current Cocoon versions, but it should not be 
> used in general.

A JAXP conformant XSLT processor may generate PIs embedded in the
output to signal a disable-output-escaping="yes" to downstream
processing stages. If the serializer finally gets these PIs and
understands them, d-o-e will work fine even in Cocoon.

However, there's plenty of stuff that can go wrong:
1. The d-o-e'd stuff is still text to downstream XML processing
    stages, it can't be processed as elements.
2. Generating the PIs is not required. Xalan does, I'm not sure
    whether Saxon does.
3. The PIs are not standardized. So you'd better use an identity
    transformation with the same XSLT processor which generates them
    for serialization. Fortunately, Cocoon does exactly this.
    Nevertheless, if you mix processors, you're likely to get trouble.
4. If some processing stage decides to eat or mangle the PIs or to
    change their position relative to the stuff intended to be
    d-o-e'd, you're hosed.

Have more fun!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message