Skip to content

Rhaptos Software Development

Personal tools
You are here: Home » Documentation » Architecture » Component Design » CNXML » CNXML0.4To0.5
Views

CNXML0.4To0.5

Document Actions
last edited 1 year ago by jenn

Converting CNXML 0.4 Modules to CNXML 0.5 Modules

To convert CNXML 0.4 module to CNXML 0.5 follow the following [sic]? 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 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 attribute such as:

    <cnxn module='m1000'>

    should be changed to:

    <cnxn document='m1000'>