<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_plain.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="m10158">
  
  <name>Combining the DTDs of XML Languages</name>

<metadata>
  <md:version>2.6</md:version>
  <md:created>2001/06/29</md:created>
  <md:revised>2002/07/17</md:revised>
  <md:authorlist>
      <md:author id="selc">
      <md:firstname>Sarah</md:firstname>
      
      <md:surname>Coppin</md:surname>
      <md:email>coppin@alumni.rice.edu</md:email>
    </md:author>
      <md:author id="wlw">
      <md:firstname>Bill</md:firstname>
      
      <md:surname>Wilson</md:surname>
      <md:email>wlw@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="selc">
      <md:firstname>Sarah</md:firstname>
      
      <md:surname>Coppin</md:surname>
      <md:email>coppin@alumni.rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="mizar">
      <md:firstname>Christine</md:firstname>
      
      <md:surname>Donica</md:surname>
      <md:email>mizar@alumni.rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="jenn">
      <md:firstname>Jenn</md:firstname>
      <md:othername>A.</md:othername>
      <md:surname>Drummond</md:surname>
      <md:email>jenn@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="brentmh">
      <md:firstname>Brent</md:firstname>
      <md:othername>Michael</md:othername>
      <md:surname>Hendricks</md:surname>
      <md:email>brentmh@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>DTD</md:keyword>
    <md:keyword>XML</md:keyword>
  </md:keywordlist>

  <md:abstract>Explains how to include more than one XML language within the same document.</md:abstract>
</metadata>
<content>
    <para id="p1">
      Multiple XML languages can be combined in the same document.
      However, in order for these documents to be valid, they must
      have a Document Type Definition (DTD) that allows tags from one
      language to exist inside tags from another language.  So if you
      wanted to include MathML in a CNXML document, you would need a
      DTD that allowed MathML to exist inside certain CNXML tags. Once
      that DTD existed, you would declare the DOCTYPE the same as
      normal.  To actually use both languages you would need to use
      <term><cnxn document="m10159">namespaces</cnxn></term>.
    </para>
    <example id="cmcombo">
      <para id="pcnxp"> For just CNXML, the doctype declaration is:
      </para>
      <code type="block">
    <![CDATA[<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" 
              "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_plain.dtd">]]>
      </code>
      <para id="pcnxmath"> For CNXML and MathML, the doctype declaration is:
      </para>
      <code type="block">
    <![CDATA[<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" 
              "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">]]>
      </code>
      <para id="pcnxqml"> For CNXML and QML, the doctype declaration is:
      </para>
      <code type="block">
    <![CDATA[<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus QML//EN" 
              "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_qml.dtd">]]>
      </code>
      <para id="pcnxqmlmath"> For CNXML, QML, and MathML, the doctype declaration is:
      </para>
      <code type="block">
    <![CDATA[<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus
              MathML plus QML//EN" 
              "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml_qml.dtd">]]>
      </code>
    </example>
  
</content>

</document>
