xmldsig-core-schema.rng revision 0
222N/A<?
xml version='1.0' encoding='UTF-8'?>
<
element name='Signature'><
ref name='SignatureType'/></
element>
<
define name='CryptoBinary'>
<
data type='base64Binary'/>
<
define name='SignatureType'>
<
element name='SignedInfo'><
ref name='SignedInfoType'/></
element>
<
element name='SignatureValue'><
ref name='SignatureValueType'/></
element>
<
optional><
element name='KeyInfo'><
ref name='KeyInfoType'/></
element></
optional>
<
zeroOrMore><
element name='Object'><
ref name='ObjectType'/></
element></
zeroOrMore>
<
optional><
attribute name='Id'><
data type='ID'/></
attribute></
optional>
<
optional><
attribute name='xsi:schemaLocation'/></
optional>
<
define name='SignatureValueType'>
<
data type='base64Binary'/>
<
optional><
attribute name='Id'><
data type='ID'/></
attribute></
optional>
<!-- Start SignedInfo --> <
define name='SignedInfoType'>
<
element name='CanonicalizationMethod'><
ref name='CanonicalizationMethodType'/></
element>
<
element name='SignatureMethod'><
ref name='SignatureMethodType'/></
element>
<
optional><
element name='KeyInfo'><
ref name='KeyInfoType'/></
element></
optional>
<
oneOrMore><
element name='Reference'><
ref name='ReferenceType'/></
element></
oneOrMore>
<
optional><
attribute name='Id'><
data type='ID'/></
attribute></
optional>
<
define name='CanonicalizationMethodType'>
<
zeroOrMore><
ref name='anyThing'/></
zeroOrMore>
<
optional><
attribute name='Algorithm'><
data type='anyURI'/></
attribute></
optional>
<
define name='SignatureMethodType'>
<
optional><
element name='HMACOutputLength'><
data type='integer'/></
element></
optional>
<
zeroOrMore><
ref name='anyThing'/></
zeroOrMore>
<
optional><
attribute name='Algorithm'><
data type='anyURI'/></
attribute></
optional>
<
define name='ReferenceType'>
<
optional><
element name='Transforms'><
ref name='TransformsType'/></
element></
optional>
<
element name='DigestMethod'><
ref name='DigestMethodType'/></
element>
<
element name='DigestValue'><
ref name='DigestValueType'/></
element>
<
optional><
attribute name='Type'><
data type='anyURI'/></
attribute></
optional>
<
optional><
attribute name='URI'><
data type='anyURI'/></
attribute></
optional>
<
optional><
attribute name='Id'><
data type='ID'/></
attribute></
optional>
<
define name='TransformsType'>
<
oneOrMore><
element name='Transform'><
ref name='TransformType'/></
element></
oneOrMore>
<
define name='TransformType'>
<
optional><
element name='XPath'><
data type='string'/></
element></
optional>
<
zeroOrMore><
ref name='anyThing'/></
zeroOrMore>
<
attribute name='Algorithm'><
data type='anyURI'/></
attribute>
<
define name='DigestMethodType'>
<
zeroOrMore><
ref name='anyThing'/></
zeroOrMore>
<
attribute name='Algorithm'><
data type='anyURI'/></
attribute>
<
define name='DigestValueType'>
<
data type='base64Binary'/>
<
define name='KeyInfoType'>
<
element name='KeyName'><
data type='string'/></
element>
<
element name='KeyValue'><
ref name='KeyValueType'/></
element>
<
element name='RetrievalMethod'><
ref name='RetrievalMethodType'/></
element>
<
element name='X509Data'><
ref name='X509DataType'/></
element>
<
element name='PGPData'><
ref name='PGPDataType'/></
element>
<
element name='SPKIData'><
ref name='SPKIDataType'/></
element>
<
element name='MgmtData'><
data type='string'/></
element>
<
optional><
attribute name='Id'><
data type='ID'/></
attribute></
optional>
<
define name='KeyValueType'>
<
element name='DSAKeyValue'><
ref name='DSAKeyValueType'/></
element>
<
element name='RSAKeyValue'><
ref name='RSAKeyValueType'/></
element>
<
define name='RetrievalMethodType'>
<
optional><
element name='Transforms'><
ref name='TransformsType'/></
element></
optional>
<
optional><
attribute name='Type'><
data type='anyURI'/></
attribute></
optional>
<
optional><
attribute name='URI'><
data type='anyURI'/></
attribute></
optional>
<
define name='X509DataType'>
<
element name='X509IssuerSerial'>
<
element name='X509IssuerName'>
<
element name='X509SerialNumber'>
<
data type='base64Binary'/>
<
element name='X509SubjectName'>
<
element name='X509Certificate'>
<
data type='base64Binary'/>
<
data type='base64Binary'/>
<
define name='PGPDataType'>
<
element name='PGPKeyID'>
<
data type='base64Binary'/>
<
element name='PGPKeyPacket'>
<
data type='base64Binary'/>
<
element name='PGPKeyPacket'>
<
data type='base64Binary'/>
<
define name='SPKIDataType'>
<
element name='SPKISexp'>
<
data type='base64Binary'/>
<!-- Start Object (Manifest, SignatureProperty) --> <
define name='ObjectType'>
<
element name='Manifest'><
ref name='ManifestType'/></
element>
<
element name='SignatureProperties'><
ref name='SignaturePropertiesType'/></
element>
<
attribute name='Encoding'>
<
attribute name='MimeType'>
<
define name='ManifestType'>
<
element name='Reference'><
ref name='ReferenceType'/></
element>
<
optional><
attribute name='Id'><
data type='ID'/></
attribute></
optional>
<
define name='SignaturePropertiesType'>
<
element name='SignatureProperty'><
ref name='SignaturePropertyType'/></
element>
<
define name='SignaturePropertyType'>
<
oneOrMore><
ref name='anyThing'/></
oneOrMore>
<
attribute name='Target'>
<!-- End Object (Manifest, SignatureProperty) --> <!-- Start KeyValue Element-types --> <
define name='DSAKeyValueType'>
<
ref name='CryptoBinary'/>
<
ref name='CryptoBinary'/>
<
ref name='CryptoBinary'/>
<
ref name='CryptoBinary'/>
<
ref name='CryptoBinary'/>
<
ref name='CryptoBinary'/>
<
element name='PgenCounter'>
<
ref name='CryptoBinary'/>
<
define name='RSAKeyValueType'>
<
ref name='CryptoBinary'/>
<
element name='Exponent'>
<
ref name='CryptoBinary'/>
<!-- End KeyValue Element-types --> <!-- This should emulate the ANY content model under lax validation --> <!-- "except" provided for DTD compatibility -->