W3C home > Mailing lists > Public > www-math@w3.org > July 2003

Long identifiers allowed? Linking data to MathML identifiers?

From: Roger L. Costello <costello@mitre.org>
Date: Sun, 13 Jul 2003 09:49:31 -0400
Message-ID: <3F11636B.24B9F554@mitre.org>
To: www-math@w3.org, "Costello,Roger L." <costello@mitre.org>

Hi Folks,

I am just learning MathML, so please bear with me if my questions are
naive.  I have two questions.

1. Can MathML identifiers be of more that one character?  For example,
suppose that I wanted to express this formula in MathML:

    kilometers = miles * 1.62

I can imagine two ways to express this (using content markup).

a. Use the full names as identifiers:

    <math>
        <apply>
            <eq/>
            <ci>kilometers</ci>
            <apply>
                <times/>
                <ci>miles</ci>
                <cn>1.62</cn>
            </apply>
        </apply>
    </math>

b. Use the full names as the value of id attributes:

    <math>
        <apply>
            <eq/>
            <ci id="kilometers">k</ci>
            <apply>
                <times/>
                <ci id="miles">m</ci>
                <cn>1.62</cn>
            </apply>
        </apply>
    </math>

- Are both of these acceptable?
- If so, is one form preferred over another?

2. MathML identifiers (ci) are essentially variables.  To evaluate a
MathML formula requires that the variables (identifiers) be replaced
with actual values.  Suppose that there exists a separate XML document
which contains the values that you want plugged in for the variables. 
For example:

    <River id="Yangtze">
        <length units="miles">3914</length>
    </River>

Suppose that I would like to plug in "3914" for "miles" in the above
MathML.  Is there a recommended practice for linking "3914" to the
MathML "miles" identifier?  

/Roger
Received on Sunday, 13 July 2003 09:51:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:55 GMT