W3C home > Mailing lists > Public > xml-encryption@w3.org > March 2002

Re: Typos in schema definition

From: Joseph Reagle <reagle@w3.org>
Date: Mon, 18 Mar 2002 13:14:58 -0500
Message-Id: <200203181814.NAA16281@tux.w3.org>
To: "Takeshi Imamura" <IMAMU@jp.ibm.com>, xml-encryption@w3.org
On Friday 08 March 2002 03:38, Takeshi Imamura wrote:
> I found two typos in [1].

Sorry for the tardy reply!

> 1. With the following, the OAEPParams element cannot be a child of the
> EncryptionMethod element because of namespace="##other" of <any>.
>
>   <complexType name='EncryptionMethodType' mixed='true'>
>     <sequence>
>       <element name='KeySize' minOccurs='0'
>                type='xenc:KeySizeType'/>
>       <any namespace='##other' minOccurs='0'
>                                maxOccurs='unbounded'/>
>     </sequence>
>     <attribute name='Algorithm' type='anyURI' use='required'/>
>   </complexType>

Ok, changed to ##any.

> 2. With the following, either the DataReference or KeyReference element
> can be a child of the ReferenceList element.  minOccurs="0" and maxOccurs
> ="unbounded" would be attributes of <choice>.
>
>   <element name='ReferenceList'>
>     <complexType>
>       <choice>
>         <element name='DataReference' type='xenc:ReferenceType'
>          minOccurs='0' maxOccurs='unbounded'/>
>         <element name='KeyReference' type='xenc:ReferenceType'
>          minOccurs='0' maxOccurs='unbounded'/>
>       </choice>
>     </complexType>
>   </element>

So you wish to preclude a key found in an  EncryptedKey from being used to 
encrypt data *and* other keys? I presume so, and I've adopted your 
structure below [1], but I guess we should make the minOccurs='1'? (No 
sense having an empty ReferenceList?)

[1]  http://www.w3.org/Encryption/2001/Drafts/xmlenc-core/
    $Revision: 1.157 $ on $Date: 2002/03/18 18:14:14 $ GMT


>
> [1] http://www.w3.org/TR/xmlenc-core
>
> Thanks,
> Takeshi IMAMURA
> Tokyo Research Laboratory
> IBM Research
> imamu@jp.ibm.com

-- 

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 Monday, 18 March 2002 13:15:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:42:20 GMT