W3C home > Mailing lists > Public > www-math@w3.org > May 2002

Specifying variable type in MathML

From: Kamlesh Pandey, Noida <kamleshp@noida.hcltech.com>
Date: Fri, 3 May 2002 01:58:37 -0400 (EDT)
Message-ID: <E04CF3F88ACBD5119EFE00508BBB212102949649@exch-01.noida.hcltech.com>
To: www-math@w3.org
I'm writing a  quation evaluator which takes equations in form of MathML
content markup. 
It can operate on java objects,functions and constants. 

I have some confusion regarding specifying a data type to a external
variable.
Can I extends types defined in MathML?

For example I have a variable 'd' of type "Date" and I want to check if date
is equal to some other date.
Assuming I can process <eq/> correctly depending on data type, is the
following representation correct?
<apply>
<eq/>
<ci type="Date" definitionURL="URI of definition of Date">d</ci>
<cn type="Date" definitionURL="URI of definition of Date">03-05-2002</cn>
<apply>

or I should declare the variable to  be of "Date" type?
<declare type="Date" definitionURL="URI of definition of Date">
<ci> d </ci>
</declare>


Regards
Kamlesh
Received on Sunday, 5 May 2002 15:34:25 GMT

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