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

Re: [Bug report] XSV Restriction Error

From: Anli Shundi <ashundi@tibco.com>
Date: Tue, 19 Apr 2005 15:05:17 -0400
Message-ID: <4265566D.6050105@tibco.com>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
CC: Michael Kay <mike@saxonica.com>, "'Martin Thomson'" <martin.thomson@nortel.com>, xmlschema-dev@w3.org
Re: [Bug report] XSV Restriction Error

Actually, what I get in that case with version="XSV 2.9-1 of 2005/04/14 
11:49:27" is

  <bug>validator crash during complete schema preparation</bug>

But back to the question: what if the restriction is in another schema 
that imports the definition of the 'strict any' ?

-Anli

Henry S. Thompson wrote:
> "Michael Kay" <mike@saxonica.com> writes:
> 
> 
>>I haven't seen that extensional interpretation of ##any used before.
> 
> 
> As I said, that's a bit of forward-looking to XML Schema 1.1 in
> XSV. . .
> 
> 
>>What if there was a global declaration 
>>
>><xsd:element name="element" type="xsd:integer"/>
>>
>>Would it be the case that the restriction is invalid because none of the
>>possible elements that ##any might match has a type that's compatible with
>>xsd:token?
> 
> 
> Yes, in 1.1 as currently envisaged.
> 
> 
>>Or is there a rule somewhere that the restriction can only be a reference to
>>a globally-declared element?
>>
>>Saxon incidentally accepts the schema as supplied, although it also uses an
>>algorithm based on comparing the two FSA's to see if one subsumes the other.
>>However, it only checks the element name ("element") against the set of
>>namespaces permitted by the wildcard ("##any"), it doesn't expand the
>>wildcard into a finite set of permitted element names.
> 
> 
> That is correct per 1.0.
> 
> ht


-- 
Anli Shundi                     ashundi@tibco.com
TIBCO Software Inc.             (919) 969 6518
www.tibco.com
Received on Tuesday, 19 April 2005 19:05:36 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.