<?xml version="1.0" encoding="UTF-8"?>
<!--
  exclusiveC14N.rnc
  
  This schema is expected to be used together with xmldsig-core-schema.rnc.
  
  This RELAX NG schema allows the use of two algorithms, namely 
  
    http://www.w3.org/2001/10/xml-exc-c14n# and 
    http://www.w3.org/2001/10/xml-exc-c14n#WithComments,
  
  in ds_CanonicalizationMethodType, which specifies permissible
  contents of Transform or CanonicalizationMethod elements.
  
  The first definition is combined with the other definitions of
  ds_CanonicalizationMethodType by the choice operator.
-->
<grammar ns="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <define name="ds_CanonicalizationMethodType" combine="choice">
    <attribute name="Algorithm">
      <choice>
        <value type="anyURI">http://www.w3.org/2001/10/xml-exc-c14n#</value>
        <value type="anyURI">http://www.w3.org/2001/10/xml-exc-c14n#WithComments</value>
      </choice>
    </attribute>
    <optional>
      <ref name="ec_InclusiveNamespaces"/>
    </optional>
  </define>
  <define name="ds_CanonicalizationAlgorithms" combine="choice">
    <value type="anyURI">http://www.w3.org/2001/10/xml-exc-c14n#</value>
  </define>
  <define name="ec_InclusiveNamespaces">
    <element name="InclusiveNamespaces">
      <attribute name="PrefixList">
        <data type="NMTOKENS"/>
      </attribute>
    </element>
  </define>
</grammar>
