<?xml version="1.0"?>
<schema xmlns="http://www.ascc.net/xml/schematron"
        xmlns:x="http://www.w3.org/2002/06/xhtml2/">
  <title>Schematron schema for XHTML 2.0</title>

  <ns prefix="x" uri="http://www.w3.org/2002/06/xhtml2/"/>

  <p>Author: Masayasu Ishikawa</p>

  <p>CAUTION: This is purely experimental.</p>

  <phase id="normative">
    <active pattern="exclusion"/>
  </phase>

  <pattern name="Element Prohibitions" id="exclusion">

    <rule role="l_nest" context="x:l">
      <report test="ancestor::x:l"
      >The l element MUST NOT contain other l elements.</report>
    </rule>

    <rule role="ruby_nest" context="x:ruby">
      <report test="ancestor::x:ruby"
      >The ruby element MUST NOT contain other ruby elements.</report>
    </rule>

  </pattern>

</schema>

