cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject RE: generating xsl processing instructions
Date Tue, 08 Aug 2000 19:58:08 GMT
"Lisa van Gelder" <> wrote:
>I'm not sure if this is possible to do in xsl? I have tried to escape the <
>and > using &lt; and &gt; respectively as well as CDATA[[]] but to no 

This is a very common problem. It is not possible to write XML using &lt; in 
Cocoon 1.7.4 - I believe this is because of a bug in the version of Xerces 
shipped with Cocoon.

Anyway writing XML using &lt; etc. should be possible according to the XSLT 
spec and using disable-output-escaping, but it should be discouraged because 
it is messy and too easy to make mistakes. For what you want you can just 
use xsl:element and xsl:attribute (sorry, I forgot to mention 
xsl:attribute). Or for less verbosity, you can declare two XSLT namespaces, 
as someone else suggested just now.

Robin Green
i-tao Ltd.
4 Skyline Village
London E14 9TS
United Kingdom
Phone +44 20 7537 2233  Fax +44 70 8081 5118

Get Your Private, Free E-mail from MSN Hotmail at

View raw message