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

Re: parser for xml-data?

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Sun, 24 May 1998 14:17:22 -0400

Re: parser for xml-data?
Charles Frankston wrote:
> 
> The ns pseudo-attribute is NOT supposed to be a URL.  It's a URI.  

In the absence of any way to actually use URNs, the difference does not
strike me as relevant. My point was that your example was misleading
because it didn't use something that looked like either a URL or a URN.

> Something like a URN or
> a UID would frankly make a better ns ID.  We just don't yet have good
> mechanisms deployed for doing the lookup from the URN or a UID to find the
> identified schema (if indeed you actually need a schema).  I think once we
> define this, it would be better to avoid using URLs for the purpose of
> uniquely identifying names.

I agree. In fact, once URNs are deployed it will also make sense to use
them for hypertext links, graphic embedding and everything else. But they
aren't. For now, I'm not sure why you would argue that URLs are
inappropriate. There is nothing better, for namespaces, hyperlinks or any
other use.

> In order to use these DTDs you wrote, I MUST use the prefixes you chose for
> your instance.  Your ns part, which probably should really read something
> like ns="urn:schemas-abc-com:zyx" is now useless.  

No it is not. It locally binds a short name in the document's namespace to
a longer name in a globally managed namespace.

> If I want to use your
> DTDs and mix them with any other DTDs, I must ensure that the other DTDs do
> not in fact also use any "zyx" or "xyz" prefixes.  

Authors have the option of copying the other DTD to their sites and
changing the prefix it uses. Then the namespace declaration points back to
the original URI so that software can recover the original, fully
namespace-qualified name. I do not claim that this is convenient or
elegant, but the namespace proposal was explicitly designed to support
it...which is why you can use namespaces without using ANY. Actual prefix
collisions requiring this operation are likely to be rare.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

Guns don't kill people. Children kill people.

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.