Views
CNXML0.4To0.5
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:
- 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 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 attribute such as:
<cnxn module='m1000'>
should be changed to:
<cnxn document='m1000'>
