[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: URL: 19 Short Questions about Namespaces (with Answers)

  • From: Tyler Baker <tyler@i...>
  • To: "Simon St.Laurent" <simonstl@s...>
  • Date: Tue, 09 Feb 1999 16:15:16 -0500

short questions to think
"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@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.