<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:lang="en" xmlns="http://www.tei-c.org/ns/1.0"
  xmlns:rng="http://relaxng.org/ns/structure/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>TEI with MathML</title>
        <author>Sebastian Rahtz</author>
      </titleStmt>
      <publicationStmt>
        <availability status="free">
          <p>This template file is freely available and you are hereby
            authorised to copy, modify, and redistribute it in any way without
            further reference or permissions.</p>
          <p>When making such modifications, you are strongly recommended to
            change the present text to include an accurate statement of the
            licencing conditions applicable to your modified text.</p>
        </availability>
      </publicationStmt>
      <sourceDesc>
        <p>authored from scratch</p>
      </sourceDesc>
    </fileDesc>
  </teiHeader>
  <text>
    <body>
      <p>This customization loads the normal four core modules, plus
          <name>figures</name>; in the latter it adjusts the content model of
          <gi>figure</gi> to allow the <gi>math</gi> element from MathML (see
          <ptr target="http://www.w3.org/Math/"/>).</p>
      <p>Example:
        <eg><![CDATA[<formula>
  <math xmlns="http://www.w3.org/1998/Math/MathML">
    <mrow><mi>e</mi></mrow>
  </math>
</formula>]]></eg></p>

      <schemaSpec ident="tei_math" prefix="tei_" start="TEI teiCorpus">
        <moduleRef
          url="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/mathml2-main.rng"/>
        <moduleRef key="header"/>
        <moduleRef key="core"/>
        <moduleRef key="tei"/>
        <moduleRef key="textstructure"/>
        <moduleRef key="figures"/>
        <elementSpec module="figures" ident="formula" mode="change">
          <content>
            <rng:ref name="mathml.math"/>
          </content>
        </elementSpec>
        <!-- required to avoid Sanity Checker complaint -->
        <elementSpec ident="handNote" mode="delete" module="header"/>

      </schemaSpec>
    </body>
  </text>
</TEI>
