Re: having problems with the "

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

Re: having problems with the "|" in field's element in the x


Re:  having problems with the "|" in field's element  in  the x
From: "Jeff Lowery" <Jeff.Lowery@c...>
> > I'm trying to understand why this is so:

You mean, why is this a hard problem? See
http://www.dcs.bbk.ac.uk/~ptw/icdt-talk.pdf.

> > If a document validator can know if a field occurrence is
> > optional in an instance's corresponding content model, then
> > how is it that a schema validator cannot know that a declared
> > key field is optional in its corresponding content model?
>>
> > The only thing I can think of that's different is that the
> > document validator may be able to narrow down the applicable
> > content models based on components that've already be read
> > from the document.

A document validator only has to check whether a given instance satisfies
the constraints in the schema. The other question requires the processor to
consider all possible instances.

A development tool might offer additional checking like this (though it is
kind of a rathole), since the answers are primarily useful for debugging
schemas, but such checks don't make validation more powerful and probably
shouldn't be required by a schema language. There is ample precedent, e.g.,

<!ELEMENT foo (foo)>

Bob


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.