25/01/2002 6:16:19, Martin Holz <[EMAIL PROTECTED]> wrote: >Geert Pante wrote: >> 25/01/2002 3:27:39, "Ferran Urgell" <[EMAIL PROTECTED]> wrote: >> > Hola Cocooners! >> > >> > I've generated some xml files from a database, but the xml files are >> > containing some special characters like < > ; etc...and before to use >> > with an xsl, I would to change the xml to a another valid xml.... >> >> there are 2 solutions: >> 1: replace < by <, & by &, > by >, ' by ' >> 2: embed your strings in CDATA sections: <![CDATA[ string.... ]]> >> > >How do I do it the other direction? Most browser don't like < in >javascript and a CDATA section is even worse. >
Disable output escaping is the solution, for example somewhere in your XSLT: <xsl:value-of select="text()" disable-output-escaping="yes"/> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>