On 12/5/06, Mark Lundquist <[EMAIL PROTECTED]> wrote:
On Dec 5, 2006, at 8:38 AM, Simone Gianni wrote: > Care is required : some emerging internet standards (XForms for > example, > but also others) do require namespaces, so : > - Okay for the HTML serializer > - Not okay for the Xhtml serializer, in this case eventually provide a > list of namespaces to remove, and by default fill this list with > namespaces from cocoon. > - Obviously not for the XML output (note that xhtml and xml serializer > are the same class) Is there ever a need to retain namespace declarations for namespaces that are not actually used in the result document, i.e. for which there is no element with that namespace? I think the idea is to just delete extraneous namespace declarations, not to delete them all...
I could see both options. There are some cases where I really don't need any namespaced elements at all on my output (eg, stuff I'm manipulating for AJAX code). We strip them out with XSLT at the moment, but... -- Peter Hunsberger