1# xenc-schema.sg -- Slightly edited after generation 2# $Id: xenc-schema.sg,v 1.2 2007-09-24 02:34:34 sampo Exp $ 3 4target(xenc,http://www.w3.org/2001/04/xmlenc#) 5ns(xs,http://www.w3.org/2001/XMLSchema) 6import(ds,http://www.w3.org/2000/09/xmldsig#,http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd) 7 8%EncryptedType: 9 xenc:EncryptionMethod? -> %xenc:EncryptionMethodType 10 ds:KeyInfo? 11 xenc:CipherData 12 xenc:EncryptionProperties? 13 @Id? -> %xs:ID 14 @Type? -> %xs:anyURI 15 @MimeType? -> %xs:string 16 @Encoding? -> %xs:anyURI 17 ; 18 19%EncryptionMethodType: 20 xenc:KeySize? -> %xenc:KeySizeType 21 xenc:OAEPparams? -> %xs:base64Binary 22 any* 23 @Algorithm -> %xs:anyURI 24 ; 25 26%KeySizeType: base(xs:integer) ; 27 28CipherData -> %xenc:CipherDataType 29%CipherDataType: 30 xenc:CipherValue? -> %xs:base64Binary 31 xenc:CipherReference? 32 ; 33 34CipherReference -> %xenc:CipherReferenceType 35%CipherReferenceType: 36 xenc:Transforms? -> %xenc:TransformsType 37 @URI -> %xs:anyURI 38 ; 39 40%TransformsType: 41 ds:Transform+ 42 ; 43 44EncryptedData -> %xenc:EncryptedDataType 45%EncryptedDataType: base(xenc:EncryptedType) ; 46 47EncryptedKey -> %xenc:EncryptedKeyType 48%EncryptedKeyType: base(xenc:EncryptedType) 49 xenc:ReferenceList? 50 xenc:CarriedKeyName? -> %xs:string 51 @Recipient? -> %xs:string 52 ; 53 54AgreementMethod -> %xenc:AgreementMethodType 55%AgreementMethodType: 56 xenc:KA-Nonce? -> %xs:base64Binary 57 any* 58 xenc:OriginatorKeyInfo? -> %ds:KeyInfoType 59 xenc:RecipientKeyInfo? -> %ds:KeyInfoType 60 @Algorithm -> %xs:anyURI 61 ; 62 63ReferenceList: 64 xenc:DataReference? -> %xenc:ReferenceType 65 xenc:KeyReference? -> %xenc:ReferenceType 66 ; 67 68%ReferenceType: 69 any* 70 @URI -> %xs:anyURI 71 ; 72 73EncryptionProperties -> %xenc:EncryptionPropertiesType 74%EncryptionPropertiesType: 75 xenc:EncryptionProperty+ 76 @Id? -> %xs:ID 77 ; 78 79EncryptionProperty -> %xenc:EncryptionPropertyType 80%EncryptionPropertyType: 81 any* 82 @Target? -> %xs:anyURI 83 @Id? -> %xs:ID 84 @any? 85 ; 86 87#EOF 88