You are here: Home » About » Technology » Connexions Markup Language » CNXML 0.5 » Upgrading to CNXML 0.5

Upgrading to CNXML 0.5

To Convert a CNXML 0.4 module to CNXML 0.5 follow the following steps:

  1. 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">

  2. 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">

  3. Change the closing end tag from

    </module>

    to:

    </document>

There are a few tags which require modification throughout the document:

  1. Any <codeline> tag must be changed to: <code type="inline"> or <code>(inline is the default)
  2. Any <codeblock> tag must be changed to: <code type="block">
  3. 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/">