<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <!--
    xenc-allowAnyForeign.rnc
    
    Copyright 2011 W3C (Massachusetts Institute of Technology, 
    Institut National de Recherche en Informatique et en Automatique, 
    Keio University). All Rights Reserved.  http://www.w3.org/Consortium/Legal/
    
    Use and distribution of all schemas in this directory are permitted under the terms
    W3C Software Notice and License
    http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
    
    This schema mimicks <any namespace='##other'.../>
    in xenc-schema.xsd.
    
    Schema authors might want to create a dedicated schema 
    for a collection of particular algorithms rather than 
    using this schema.
  -->
  <define name="xenc_EncryptionMethodOtherParams" combine="choice">
    <attribute name="Algorithm">
      <data type="anyURI">
        <except>
          <ref name="xenc_EncryptionAlgorithms"/>
        </except>
      </data>
    </attribute>
    <zeroOrMore>
      <ref name="xenc_anyForeignElement"/>
    </zeroOrMore>
  </define>
  <define name="xenc_AgreementMethodParams" combine="choice">
    <attribute name="Algorithm">
      <data type="anyURI">
        <except>
          <ref name="xenc_KeyAgreementAlgorithms"/>
        </except>
      </data>
    </attribute>
    <zeroOrMore>
      <ref name="xenc_anyForeignElement"/>
    </zeroOrMore>
  </define>
</grammar>
