<?xml version="1.0" encoding="UTF-8"?>
<!--
  exc-c14n.rnc (derived from exc-c14n.xsd)
-->
<!--
#
# Copyright ©[2011] World Wide Web Consortium 
# (Massachusetts Institute of Technology,  
#  European Research Consortium for Informatics and Mathematics, 
#  Keio University). All Rights Reserved.  
# This work is distributed under the W3C® Software License [1] in the
# hope that it will be useful, but WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. 
# [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
#
-->
<!--
  
  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 definition of ds_CanonicalizationMethodType in this schema 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="ec_InclusiveNamespaces">
    <element name="InclusiveNamespaces">
      <attribute name="PrefixList">
        <data type="NMTOKENS"/>
      </attribute>
    </element>
  </define>
  <!-- List of known algorithms -->
  <define name="ds_CanonicalizationAlgorithms" combine="choice">
    <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>
  </define>
</grammar>

