[
Lists Home |
Date Index |
Thread Index
]
- From: Tyler Baker <tyler@infinet.com>
- To: "Simon St.Laurent" <simonstl@simonstl.com>
- Date: Tue, 09 Feb 1999 16:15:16 -0500
"Simon St.Laurent" wrote:
> At 02:58 PM 2/8/99 -0800, Tim Bray wrote:
> >For example (I just checked) if you use
> >expat and enable namespace processing, you just don't see the
> >xmlns attributes - I don't think this is compulsory, but it also
> >isn't surprising.
>
> This worries me - I'd like to think namespaces (and even their prefixes)
> should be able to survive a round trip through a parser and back to a file.
> Dropping the xmlns: attributes makes that a lot harder. Given that some
> documents may have to go through both namespace-aware and namespace-blind
> processing, that could lead to some serious pile-ups.
The clean way to handle this would be to formally split XML 1.0 and XML 1.0 with "Namespaces
in XML" into two totally separate recommendations (in a sense they are that way, but the
"Namespaces in XML" recommendation does not say this one way or the other). This way you know
what you are dealing with when you get someone else's data over the internet. Just like XML
has the "standalone" value, I think it would be appropiate for either you to define an NXML
content-type or at the very minimum require that in order to use namespaces, in the XML
declaration of a document you need to have a value of: namespaces="yes".
I still think they should be totally separated into different content-types, but this is
another idea that I had for making things easier for applications to deal with "Namespaces in
XML".
For example:
<?xml version="1.0" namespaces="yes"?>
Any ideas on this here?
Tyler
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|