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

Re: Namespace URI address resources

  • From: "Jonathan Borden" <jborden@m...>
  • To: "Andrew Layman" <andrewl@m...>, "'XML Dev'" <xml-dev@i...>
  • Date: Tue, 15 Jun 1999 14:47:34 -0400

uri address definition
Andrew Layman wrote:

>Recent mail has suggested that a namespace URI could be used to attempt a
>retrieval of a schema, either using the URI directly or in some modified
>form or via content negotiation.  Other recent mail has objected, saying
...
>
>This argues that the first position is correct, namely that using a
>namespace URI to retrieve a schema is reasonable and is different in kind
>from retrieval of other possibly-related resources.
>

    It is true that schema definition being akin to class definition has a
unique position in the document grove. Yet so does a namespace and
overloading the mechanism by which a schema is attached to a document onto
the mechanism by which a namespace is attached to an element yields
difficult problems.

    The essential difference is that the namespace is defined by the URI
whereas the schema is not defined by the URI rather the contents of the
resolved URI. How might this create a problem? Suppose I have a document
with a schema at a particular URI resolved by the "http" protocol e.g.
http://www.microsoft.com/schemas/x.scm
now suppose I wish to e-mail this document behind a firewall, or place the
document into a database... behind the firewall, the "http://" protocol is
blocked due to corporate policy. Similarly if decades or centuries pass, the
data within the database remains valid but the http://www.microsoft.com
address has become inactive. The namespace remains the same. The schema is
unavailable.

    Suppose I solve this problem by encapsulating the XML document in a
multipart/related MIME message, placing the schema at a location labeled
"Content-ID: schema". Now the schema is accessed via the URL "cid:schema",
all is good, we can resolve the URL ... but the namespace changes!

    This problem could be solved by use of a PI to declare the schema
<?xml-schema href="URL" ?>. Gateway software would thus be able to
encapsulate and transmit XML documents by different network protocols,
keeping such protocols independent of the document namespace. All that need
change in the document is a PI.

Jonathan Borden
http://jabr.ne.mediaone.net (for now :-)



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.