Hi:
How to get rid of the xmlns that the HTML get? For example:
<html xmlns:xi="http://www.w3.org/2001/XInclude" lang="es-NI">
Hi Upayavira:
Also woody is sending:
<table xmlns:wi="http://apache.org/cocoon/woody/instance/1.0"...>
Your suggestion does not work in this case. I also added in the html serializer a param:
<omit-xml-declaration>true</omit-xml-declaration>
This only omits the XML declaration <?xml version="1.0"?>, not the namespaces.
But keep sending the xlmns:xi and xlmns:wi
I think the html serializer need to get rid of this xlmns automatically.
WDYT?
There is already a bug about it: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20508.
AFAIK the problem is knowing which namespace can be removed, which not. This requires probably a buffering - which is a really bad thing (TM).
I think you need to put
exclude-result-refixes="xi, wi" into your woody-styling.xsl stylesheets. You'll need to ensure that all nodes in these namespaces are consumed by the stylesheet for the prefixes to be excluded.
This only works for namespace declaration from the stylesheet itself, but not from the XML input. And if you copy elements from input to output, you copy them WITH namespaces.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
