Upgrading to CNXML 0.5
To Convert a CNXML 0.4 module to CNXML 0.5 follow the following steps:
- Change the Doctype at the top of the module from:
<!DOCTYPE module PUBLIC "-//CNX//DTD CNXML 0.4 plus MathML//EN "http://cnx.rice.edu/cnxml/0.4/DTD/cnxml_mathml.dtd">to:
<;!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd"> - Change the module tag and NS in the module tag from
<module xmlns="http://cnx.rice.edu/cnxml/0.4">to:
<document xmlns="http://cnx.rice.edu/cnxml"> - Change the closing end tag from
</module>to:
</document>
There are a few tags which require modification throughout the document:
- Any
<codeline>tag must be changed to:<code type="inline">or<code>(inline is the default) - Any
<codeblock>tag must be changed to:<code type="block"> - Any
<cnxn>tag with a module atrribute such as:<cnxn module="m1000">should be changed to:<cnxn document="m1000">
Finally, if you wish to use bibteXML, you will need to add it's namespace to the document tag like so:
<document xmlns="http://cnx.rice.edu/cnxml"
xmlns:bib="http://bibtexml.sf.net/">
