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

Re: fixing (just) namespaces and validation

  • From: David Megginson <david@m...>
  • To: xml-dev@i...
  • Date: Wed, 8 Sep 1999 07:06:11 -0400 (EDT)

fixing xml document namespaces
David Carlisle writes:

 > Surely _all_ DTDs do have this problem with the namespace REC.
 > 
 > The documents
 > 
 > <foo:x xmlns:foo="http://here">
 > </foo:x>
 > 
 > 
 > and
 > 
 > <bar:x xmlns:bar="http://here">
 > </bar:x>
 > 
 > are fully equivalent according to XML Namespace REC.

That's because they're different layers.  

Think of RDF; assuming appropriate Namespace declarations, these are
both equivalent in the RDF layer, but not in the XML 1.0 layer:

  <rdf:Description about="http://www.foo.com/123">
   <rdf:type resource="http://www.foo.com/classes/Thing"/>
   <dc:title>The Foo thing</dc:title>
  </rdf:Description>

and

  <foo:Thing about="http://www.foo.com/123" dc:title="The Foo thing"/>

DTD validation is applied to a very low-level layer of XML processing
(essentially, the DOM/SAX layer); Namespaces is concerned with a
higher layer, and RDF, with a higher layer still.

There is usually a many-to-one relationship as you go up to more
abstract layers: many different sequences of characters can be
interpreted as the same XML document, many different XML documents can
provide the same Namespaces (or Architectural Forms) view, many
different Namespaces views can provide the same RDF view, etc.

The point is that a single sequence of characters cannot represent two
different XML documents, nor can a single XML document represent two
different Namespace views, nor can a single Namepsace view represent
two different RDF views.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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.