— the global portal for all things SBML

New SBML units attribute on MathML cn element

An idea that has been thrown around in the past is to provide the ability to attach units to numbers in MathML using an attribute codesbml:units/code. It would look like this example:

<math xmlns="" 
        <cn sbml:units="dimensionless"> 5 </cn>  
        <ci> x </ci>  

This is an approach pioneered by CellML. The SBML Editors have been revisiting this issue, and actually, we now think there is no really compelling reason not to adopt this approach for SBML L3. It would certainly make it easier to add units on numbers in models.

Notable implications

One small matter is that the XML namespace prefix (whether called sbml or something else in a given model) would have to be declared somewhere in the XML document. However, this can be done in any of several places, such as in the <sbml> element or the <math> element or even on the <cn> element itself.

Retrieved from ""

This page was last modified 05:03, 17 August 2009.

Please use our issue tracking system for any questions or suggestions about this website. This page was last modified 05:03, 17 August 2009.