cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Holz <h...@fiz-chemie.de>
Subject Re: Special Characters
Date Fri, 25 Jan 2002 14:16:19 GMT
Geert Pante wrote:
> 25/01/2002 3:27:39, "Ferran Urgell" <ferran_urgell@hotmail.com> 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 &lt;, & by &amp;, > by &gt;, ' by &apos;
> 2: embed your strings in CDATA sections: <![CDATA[  string.... ]]>
>

How do I do it the other direction? Most browser don't like &lt; in 
javascript  and a CDATA section is even worse.

Regards
	Martin

--
Martin Holz  <holz@fiz-chemie.de>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message