<?xml version="1.0" encoding="UTF-8"?>
<!-- WTPDF extra constraints -->
<grammar xmlns:FENote="http://iso.org/pdf/ssn/FENote" xmlns="http://relaxng.org/ns/structure/1.0">
  <include href="document-pdf-ua2.rng">
    <define name="otherns-attributes">
      <zeroOrMore>
        <attribute>
          <anyName>
            <except>
              <nsName ns=""/>
              <nsName ns="http://iso.org/pdf/ssn/Layout"/>
              <nsName ns="http://iso.org/pdf/ssn/PrintField"/>
              <nsName ns="http://iso.org/pdf/ssn/Table"/>
              <nsName ns="http://iso.org/pdf/ssn/List"/>
              <nsName ns="http://iso.org/pdf/ssn/Artifact"/>
              <nsName ns="http://iso.org/pdf/ssn/FENote"/>
            </except>
          </anyName>
        </attribute>
      </zeroOrMore>
    </define>
    <!-- WTPDF 8.2.5.12 Heading (Hn) and (H) -->
    <define name="H">
      <notAllowed/>
    </define>
    <!-- WTPDF 8.2.5.14.1 Structure requirements -->
    <define name="Note">
      <notAllowed/>
    </define>
    <!-- WTPDF 8.2.5.28.2 Figure properties -->
    <define name="figure-attributes" combine="interleave">
      <choice>
        <interleave>
          <attribute name="actualtext"/>
          <optional>
            <attribute name="alt"/>
          </optional>
        </interleave>
        <attribute name="alt"/>
      </choice>
    </define>
  </include>
  <!-- WTPDF Table 2 -->
  <define name="fenote-attributes" combine="interleave">
    <optional>
      <attribute name="FENote:NoteType">
        <choice>
          <value>Footnote</value>
          <value>Endnote</value>
          <value>None</value>
        </choice>
      </attribute>
    </optional>
  </define>
</grammar>
