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

Re: Identifying XML Document Types (was XML media types revisited)

  • From: David Brownell <db@E...>
  • To: "Simon St.Laurent" <simonstl@s...>
  • Date: Sat, 16 Jan 1999 14:11:48 -0800

Re: Identifying XML Document Types (was XML media types revisited)
"Simon St.Laurent" wrote:
>
>  ... naming and otherwise identifying elements and documents ...
> 
> 4) Root elements using Namespaces - A new possibility that gained some
> prominence with the accession to W3C Recommendation of 'Namespaces in XML'.
> 
> Advantages: Namespaces ensure unique element names, making it less likely
> that you have someone else's DOCUMENT element.
> 
> Disadvantages: Just because the root element is X doesn't mean its contents
> are Y. Especially given the problems of validating documents in
> namespace-aware environments, namespaces may not always be available. 

If you're using XML namespaces with a validating parser, just make
sure each element has #FIXED "xmlns*" attributes and stick to the
constraints of your content model, and you're fine ... living with
the same DTD-derived restrictions you always had.


> Because namespaces aren't supposed to point to anything, you can't sneak a
> DTD in at the URL identified by the namespace.

Yet the specification for a _specific_ namespace can easily say that
the namespace URI is a URL holding data in some format ("schema").

All the namespace spec defines is that it's an identifier, used to
make the XML document be more self-descriptive; but any particular
namespace could define more than that, as part of its application
architecture.


> Recurring Question: So how do I make this work reliably in a validating
> environment?  (Recurring answer: Ask again next year, please.)

There's another recurring answer, "it works just fine, even when you
want to validate, so what's the confusion?".

What's not fully understood is how to mix elements from different
namespaces under control of a _new and unspecified_ validity model.
Re what such models "ought to" be like ... ask again next year!  And
meanwhile, remember that namespaces work fine with today's models.

- Dave

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/
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.