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

Re: Namespaces hate validation!

  • From: Ronald Bourret <rbourret@i...>
  • To: "'XML-DEV'" <xml-dev@i...>
  • Date: Thu, 7 Jan 1999 11:39:58 +0100

Re: Namespaces hate validation!
Murray Maloney wrote:

> Well, I just looked at XSchema again, and while it does include
> some facilities for namespace-awareness, it is not clear to me
> that it integrates "Namespaces in XML".
>
> In a fact, I have to challenge your assertion that XSchema
> integrates with "Namespaces in XML". Quoting from XSchema (4.3.2):
>
> The following XSchema structures cannot be converted
> to DTD structures because such structures do not exist:
>
> [structures and other stuff snipped]
>
> >DCD almost does this, but is silent on how it associates namespace 
prefixes
> >used in attribute values (such as the name of an element being declared) 
> >with URIs.
>
> So, DCD does not integrate with "Namespaces in XML".
>
> [snip]
>
> >In any case, it is certainly possible to integrate the current namespace 
> >proposal with a schema language, as XSchema shows.
>
> XSchema shows no such thing as section 4.3.2 makes clear.

The impossibility of converting XSchema structures (even if they are rel  
ated to namespaces) to DTDs has nothing to do with namespace support in 
XSchema -- it has to do with converting XSchema documents to DTDs.

XSchema and DCD (as soon as a prefix=>namespace URI associator is added) 
both completely support the current namespaces spec. That is, they provide 
enough namespace information that an application, parser, whatever, can 
look at a schema document and determine the namespace to which an element 
or attribute belongs.

One important consequence of this is that the problem that started this 
entire discussion -- validating a namespace-using instance document against 
a DTD -- can be performed.  That is, a namespace- and schema-aware parser 
(or namespace and schema layers on top of existing parsers) can take a 
document that uses namespaces and its associated schema document and 
validate that document against that schema.  If this is not possible, then 
it is a bug in XSchema or DCD and needs to be fixed.

-- Ron Bourret


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.