- From: Dournaee, Blake <bdournaee@rsasecurity.com>
- Date: Tue, 23 Oct 2001 10:31:11 -0700
- To: xml-encryption@w3.org
Hello All,
I have a question regarding Section 2 from:
http://www.w3.org/Encryption/2001/Drafts/xmlenc-core/
The example definition of <EncryptedData> is given as follows:
<EncryptedData Id? Type?>
<EncryptionMethod/>?
<ds:KeyInfo>
<EncryptedKey>?
<AgreementMethod>?
<ds:KeyName>?
<ds:RetrivalMethod>?
<ds:*>?
</ds:KeyInfo>?
<CipherData>
<CipherValue>?
<CipherReference URI?>?
</CipherData>
</EncryptedData>
According to the <EncryptedType> definition (the type which <EncryptedData>
derives from), the schema definition looks like this:
Schema Definition:
<complexType name='EncryptedType' abstract='true'>
<sequence>
<element name='EncryptionMethod' type='xenc:EncryptionMethodType'
minOccurs='0'/>
<element ref='ds:KeyInfo' minOccurs='0'/>
<element ref='xenc:CipherData'/>
<element ref='xenc:EncryptionProperties'/>
</sequence>
<attribute name='Id' type='ID' use='optional'/>
<attribute name='Type' type='anyURI' use='optional'/>
</complexType>
The <EncryptedType> definition includes the <EncryptionProperties> element
in the schema definition, but it is not included in the <EncryptedData>
example definition. Is this an error? Shouldn't the example definition
appear as follows?
<EncryptedData Id? Type?>
<EncryptionMethod/>?
<ds:KeyInfo>
<EncryptedKey>?
<AgreementMethod>?
<ds:KeyName>?
<ds:RetrivalMethod>?
<ds:*>?
</ds:KeyInfo>?
<CipherData>
<CipherValue>?
<CipherReference URI?>?
</CipherData>
<EncryptionProperties>?
</EncryptedData>
Blake Dournaee
Toolkit Applications Engineer
RSA Security
"The only thing I know is that I know nothing" - Socrates
Received on Tuesday, 23 October 2001 13:35:08 UTC