Re: xmlspy: does ##other apply to only subsequent target ns

At 15:47 2/21/2001 +0000, Henry S. Thompson wrote:
>Sure, you can do that:  all you have to do, since RetrievalMethodType
>is not used anywhere else, is just redefine it to not have the Type
>attribute.  This has to be done in a stub document which is in the
>dsig namespace.

Ok, I tried this [1, where "prime" is the stub] and still get:
>Detected during instance validation
>file:/i:/2web/policy/stub-sigenc/01-19-xmlenc-schema.xsd:29:15: Error: non-deterministic content model for type KeyInfoType: {Wildcard: ##other}/{http://www.w3.org/2001/02/xmlenc#}:KeyRetrievalMethod

 
[1] http://policy.w3.org/stub-sigenc/prime.xsd
<schema xmlns="http://www.w3.org/2000/10/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.w3.org/2000/09/xmldsig#" version="0.1" elementFormDefault="qualified" attributeFormDefault="unqualified"> 
 <redefine schemaLocation="xmldsig-core-schema.xsd"> 
  <complexType name="RetrievalMethodType"> 
  <complexContent> 
    <restriction base="ds:RetrievalMethodType"> 
     <sequence> 
      <element name="Transforms" type="ds:TransformsType" minOccurs="0" /> 
     </sequence> 
     <attribute name="URI" type="uriReference" /> 
     <attribute name="Type" type="uriReference" use="fixed"    
     value="http://www.w3.org/2001/02/xmlenc#EncryptedKey" /> 
    </restriction> 
   </complexContent> 
  </complexType> 
 </redefine> 
</schema>

http://policy.w3.org/stub-sigenc/01-19-xmlenc-schema.xsd
...
<import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="prime.xsd" /> 
...
<complexType name="KeyInfoType"> 
 <complexContent> 
  <extension base="ds:KeyInfoType"> 
   <sequence> 
    <element ref="xenc:KeyRetrievalMethod" minOccurs="0" /> 
   </sequence> 
  </extension> 
 </complexContent> 
</complexType> 

<element name="KeyRetrievalMethod" type="ds:RetrievalMethodType" substitutionGroup="ds:RetrievalMethod" /> 


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

Received on Thursday, 22 February 2001 17:53:49 UTC