- From: Joseph Kesselman <keshlam@us.ibm.com>
- Date: Wed, 10 Dec 2003 13:14:40 -0500
- To: Robin Berjon <robin.berjon@expway.fr>
- Cc: Andrew Clover <and-w3@doxdesk.com>, www-dom@w3.org, www-dom-request@w3.org
Yes, Namespaced *attributes* do indeed require prefixes in XML syntax (there's no "default namespace" for attributes). But attribute nodes in the DOM do not require prefixes. When serializing namespaced-but-not-prefixed attributes from DOM to XML syntax, the serializer must fix this up. See the Level 3 working draft for its algorithms; if you're working with an earlier implementation of the DOM, you can and should implement those or something equivalent in your own serializer code. ______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "The world changed profoundly and unpredictably the day Tim Berners Lee got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
Received on Wednesday, 10 December 2003 13:18:20 UTC