You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by e9...@stud3.tuwien.ac.at on 2001/04/10 18:47:59 UTC
CDATA output
hi
little question: how can i prevent cocoon from quoting the HTML
fragments stored in an CDATA section during output?
e.g. i use the following XML
---------
<value>
<![CDATA[
<ul>
<li>testlist</li>
</ul>
]]>
</value>
---------
cocoon quotes all the <, > and & during output and the browser
displays the code and doesnt interprate the HTML code which is
stored in the CDATA.
disable-output-quoting doesnt work (i have consulted the faq!).
any ideas or work arounds?
TIA
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: CDATA output
Posted by Sebastien Koechlin <sk...@ivision.fr>.
e9625460@stud3.tuwien.ac.at wrote:
> little question: how can i prevent cocoon from quoting the HTML
> fragments stored in an CDATA section during output?
>
> e.g. i use the following XML
>
> ---------
> <value>
> <![CDATA[
> <ul>
> <li>testlist</li>
> </ul>
> ]]>
> </value>
Cocoon/Xerces, and every valid XML parser are doing the right
thing, your XML fragment can also be written as:
<value>
<ul>
<li>testlist</li>
</ul>
</value>
If you want to use HTML tags, you should not put them in
CDATA sections, or ask people producing this mess to
give you true XML files.
--
Sébastien Koechlin - IVision - skoechlin@ivision.fr
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>