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

RE: [Bug report] XSV Restriction Error

From: Martin Thomson <martin.thomson@nortel.com>
Date: Fri, 22 Apr 2005 09:23:08 +1000
Message-ID: <C0FA66CBDDF5D411B82E00508BE3A72210344E51@zctwc059.asiapac.nortel.com>
To: ht@inf.ed.ac.uk
Cc: xmlschema-dev@w3.org
RE: [Bug report] XSV Restriction Error
Thanks for your tolerance Henry, your help has been invaluable.

HST wrote:
> 
> Why not?  Restricting top-level with local is allowed.
> 

DOH! forgot :(  I also didn't realise that you could use form="qualified" in
case you set elementFormDefault="unqualified" (which I stopped doing because
it looks messy).

>
> Make what it says at the beginning of the 1.0 REC actually true :-).
> 
>   "Members of a type, A, whose definition is a *restriction* of the
>    definition of another type, B, are always members of type B as
>    well."
> 
> That invariant in turn makes processing schema-validated 
> material to make important assumptions based on the types 
> assigned to items in the infoset.
> 

I think I get that now - you replace <any ...> with a <choice...> that
includes all known elements in the specified namespace(s).  That's just a
simplification to my mind, although not an unpalatable one, like you say it
allows for some assumptions.  Sounds good to me.

Cheers,
Martin
Received on Thursday, 21 April 2005 23:28:20 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.