On 06.04.2007 20:05, [EMAIL PROTECTED] wrote:
"How can I remove namespaces from my xml files?" from the official FAQ
(http://cocoon.apache.org/2.1/faq/faq-xslt.html) but it escapes CDATA
sections (eg. "<![CDATA[blah blah]]>").
No, the stylesheet does not change anything in regards to CDATA
sections. I wonder how you added the CDATA section into your XML.
<xsl:text disable-output-escaping="yes">
But that's the actual problem. disable-output-escaping is only a
instruction for the serializer to handle the following text differently.
This has only effects when it is in the last transformation step. If you
put another stylesheet afterwards, it just sees the escaped text and it
no longer knows about the disable-output-escaping instruction. The
result is what you posted in your first message.
It's hard to give you tips for your problem re. removing namespaces
without the side effect. It heavily depends where the namespaces are
coming from. Two questions need to be answered: Do you really need to
remove the namespaces? Do you really need CDATA sections? If both are
answered with yes you might adapt your stylesheet adding
disable-output-escaping to create new elements in no namespace instead
of copying them or whatever it does.
Regards
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]