You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2004/01/16 09:00:03 UTC
[WIKI-UPDATE] RemoveNamespaces Fri Jan 16 09:00:03 2004
Page: http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces , version: 16 on Fri Jan 16 08:06:19 2004 by HenrykPaluch
- __Ooopss!__ Need to filter xmlns attributes too. The transformer bellow
- seems to be OK for XML serializer but not enough for HTML serializer. Fix pending.
+ __Updated!__ New version - should properly omit {{xmlns:xyz=http://...}} attributes too. Also clears uri's of appropriate elements.
+ There is new parameter {{omit-plain-xmlns}}, set it to {{true}} to omit main {{xmlns=http://...}} declaration. It is useful especialy for HTMLSerializer to produce correct HTML without any namespace declaration.
- You may also use attached OmitNsTransformer - simple SAX event based transformer. This transformer omit just the {{xmlns:xyz}} declarations. It can omit all or few of them using special parameter {{omit-namespaces}}. Example included in javadoc comments. Brief excerpt from sitemap:
+ You may also use attached OmitNsTransformer.java - simple SAX event based transformer. This transformer omit just the {{xmlns:xyz}} declarations. It can omit all or few of them using special parameter {{omit-namespaces}}. Example included in javadoc comments. Brief excerpt from sitemap:
? +++++