Non-deterministic content model

I've run across this problem that I saw Yuichi ask about, and you answer [2]:

[1] http://lists.w3.org/Archives/Public/xmlschema-dev/2000Aug/0017.html
[2] http://lists.w3.org/Archives/Public/xmlschema-dev/2000Aug/0018.html
>If you have the instance document:
>
>         <A>
>                 <B/>
>         </A>
>
>there is an ambiguity as to whether B matches the first or the third line
>of the content model for A.  Therefore, the content model itself is
>nondeterministic, as reported by XSV.

However, Yuichi's example had two defintitions for the element B, in mine I 
use an ANY:

><complexType name="SignatureMethodType" mixed="true">
>   <!-- (0,unbounded) elements from (1,1) external namespace -->
>   <sequence minOccurs="0" maxOccurs="1">
>     <element name="HMACOutputLength"  minOccurs="0"
>        type="ds:HMACOutputLengthType"/>
>     <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
>   </sequence>
>   <attribute name="Algorithm" type="uriReference" use="required"/>
></complexType>
>
><simpleType name="HMACOutputLengthType">
>   <restriction base="integer"/>
></simpleType>

and get

><schemaError char='15' line='55' phase='instance' 
>resource='file:/I:/2web/WWW/Si
>gnature/Drafts/xmldsig-core/xmldsig-core-schema.xsd'>non-deterministic 
>content m
>odel for type SignatureMethodType: {Wildcard: 
>##any}/{http://www.w3.org/2000/09/
>xmldsig#}:HMACOutputLength</schemaError>
></xsv>

for

><Signature Id="MyFirstSignature" xmlns="http://www.w3.org/2000/09/xmldsig#">
>   <SignedInfo>
>          <CanonicalizationMethod 
> Algorithm="http://www.w3.org/TR/2000/WD-xml-c14n-20000710">
>          </CanonicalizationMethod>
>          <SignatureMethod 
> Algorithm="http://www.w3.org/2000/09/xmldsig#dsa">
>          </SignatureMethod>
>          <Reference URI="http://www.w3.org/TR/xml-stylesheet/">
...

What would the problem here be? Also, I guess it's true to say a schema can 
have errors that will not be addressed upon validation, but only upon 
validation of its instances?

__
Joseph Reagle Jr.
W3C Policy Analyst                mailto:reagle@w3.org
IETF/W3C XML-Signature Co-Chair   http://www.w3.org/People/Reagle/

Received on Tuesday, 16 January 2001 15:30:54 UTC