How can I remove namespaces from my xml files?
The Cocoon FAQ say in: <http://cocoon.apache.org/2.1/faq/faq-serializers.html#faq-N1004C>
"... You could generalize this approach by using the serializer's configuration method to declare namespaces to be excluded."
But checking the serializer's documentation I couldn't find anything about this. I tried in the sitemap's serializer configuration with
<exclude-namespaces>yes</exclude-namespaces>
This option is not available.
and with
<omit-namespace-declaration>yes</omit-namespace-declaration>
This option only removes the xml declaration.
But none of them works.
What does the FAQ really mean?
The section in the FAQ starts with "One approach is to extend your serializer component and override the startPrefixMapping and endPrefixMapping methods to do nothing." This means you subclass an existing serializer. It's Java, not just configuring some options.
The second option "Another approach is to use an interim transformation step in your pipeline with a stylesheet described here." is much easier, only the link is no longer pointing to the correct anchor:
http://cocoon.apache.org/2.1/faq/faq-xslt.html#faq-N10075 http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
