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

question on important and restriction

From: Joseph M. Reagle Jr. <reagle@w3.org>
Date: Sun, 18 Feb 2001 02:27:30 -0500 (EST)
To: <xmlschema-dev@w3.org>
Message-ID: <Pine.LNX.4.30.0102180221160.11686-100000@tux.w3.org>

Can someone give me a hint as to what exactly I'm doing wrong, or how I
might better achieve what I'm trying to do: create a xenc:CipherReference
akin to a ds:Reference but I don't need ds:DigestMethod, ds:DigestValue,
nor the ds:Type attribute

http://policy.w3.org/01-17-xmlenc-schema.xsd

<EncryptedData xmlns="http://www.w3.org/2001/02/xmlenc#">
  <EncryptionMethod Algorithm="foo"/>
  <EncryptedKey NameKey="Joe">
    <EncryptionMethod Algorithm="foo"/>
    <CipherData>123</CipherData>
  </EncryptedKey>
  <CipherReference URI="http://example.com/foo">
    <Transforms>
       <Transform Algorithm="http://www.exmple.org/base64"/>
    </Transforms>
  </CipherReference>
</EncryptedData>

...
<invalid char='8' code='cvc-complex-type.1.2.4' line='9'
resource='file:/d:/2tmp
/test.xml'>element {http://www.w3.org/2001/02/xmlenc#}:Transform not
allowed her
e in element {http://www.w3.org/2001/02/xmlenc#}:Transforms:
<fsm>
...
Received on Sunday, 18 February 2001 02:27:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:16 GMT