W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

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

From: Joseph M. Reagle Jr. <reagle@w3.org>
Date: Thu, 22 Feb 2001 17:53:45 -0500
Message-Id: <4.3.2.7.2.20010221190017.02135f00@rpcp.mit.edu>
To: ht@cogsci.ed.ac.uk (Henry S. Thompson)
Cc: xmlschema-dev@w3.org, "Michael Sperberg-McQueen" <cmsmcq@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC