Summary: This module explains how to use XML namespaces and DTDs to combine multiple XML languages in the same document.
<table>タグを入力できます。機能を失うことなく、これらのタグをどのように使用しますか?xmlns属性を設定してください。
xmlns属性の変更されたバージョンを使ってください。例えば、ネームスペースを示すhttp://somewhere.org/fooの、fooという接頭語に関連付けるため、xmlns:foo="http://somewhere.org/foo"のような属性を使うでしょう。そのときあなたは、適切な接頭語を加えることによって、そのネームスペースからどのタグが来るかを示すことができます。したがって、fooのネームスペースおけるbarタグは<foo:bar>や</foo:bar>のように書かれるでしょう。
http://cnx.rice.edu/cnxmlです。したがって、ドキュメントのディフォルトのネームスペースとして、CNXMLに申告するためには、ドキュメントタグに属性を追加するでしょう。よって、MathMLのためのネームスペース識別子はhttp://www.w3.org/1998/Math/MathML、だからMathMLネームスペースと接頭語mを関連付けるには、ドキュメントタグにxmlns:m="http://www.w3.org/1998/Math/MathML"という属性を追加してください。
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN"
"http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_plain.dtd">
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN"
"http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus QML//EN"
"http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_qml.dtd">
<!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">
mを持っていることに注意してください。
<?xml version="1.0" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN"
"http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml"
xmlns:m="http://www.w3.org/1998/Math/MathML"
. . .>
<metadata xmlns:md="http://cnx.rice.edu/mdml/0.4">
<md:version>2.14</md:version>
<md:created>2005/08/24 15:08:34.203 GMT-5</md:created>
<md:revised>2005/08/24 15:09:19.244 GMT-5</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="brentmh">
<md:firstname>Brent</md:firstname>
<md:othername>Michael</md:othername>
<md:surname>Hendricks</md:surname>
<md:email>brentmh@rice.edu</md:email>
</md:author>
<md:author id="takaryo">
<md:firstname>Hironori</md:firstname>
<md:surname>Takaryo</md:surname>
<md:email>s043105@ishikawa-nct.ac.jp</md:email>
</md:author>
</md:authorlist>
<md:maintainerlist>
<md:maintainer id="takaryo">
<md:firstname>Hironori</md:firstname>
<md:surname>Takaryo</md:surname>
<md:email>s043105@ishikawa-nct.ac.jp</md:email>
</md:maintainer>
</md:maintainerlist>
<md:keywordlist>
<md:keyword>DTD</md:keyword>
<md:keyword>namespace</md:keyword>
<md:keyword>tutorial</md:keyword>
<md:keyword>XML</md:keyword>
</md:keywordlist>
<md:abstract>This module explains how to use XML namespaces and DTDs to combine multiple XML languages in the same document.</md:abstract>
</metadata>
<content>
<para id='p1'>
This math says "3y".
<m:math display='inline'>
<m:apply>
<m:times/>
<m:cn>3</m:cn>
<m:ci>y</m:ci>
</m:apply>
</m:math>
</para>
</content>
</document>
Comments, questions, feedback, criticisms?