Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [Bug report] XSV Restriction Error

From: "Michael Kay" <mike@--------.--->
To: "'Henry S. Thompson'" <ht@---.--.--.-->, "'Martin Thomson'" <martin.thomson@------.--->
Date: 4/19/2005 11:50:00 AM
> 
>  Base:
> 
> >           <xsd:any namespace="##any" processContents="strict"
> >                    minOccurs="0" maxOccurs="unbounded"/>
> 
>  Restriction:
> 
> >           <xsd:element name="element" type="xsd:token"/>
> 
> Not really a bug, but a feature -- because the base is strict, and
> there are no elt declarations in the schema, that wildcard accepts
> nothing.

I haven't seen that extensional interpretation of ##any used before.

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?

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.

Michael Kay
http://www.saxonica.com/



From mike@s... Thu Apr 14 16:02:23 2005
Received: from bart.w3


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent