Re: [xml-dev] Formulas in XML values

From
nico <>
To
, COUTHURES Alain <>
Date
2009-06-26T12:39:11Z
ID
<>
Thread
Re: [xml-dev] Formulas in XML values
> For version 2, rational numbers could be added. I have found Jasymca (http://webuser.hs-furtwangen.de/~dersch/jasymca2/index.html
> ), written in Java for PDAs and it seems pretty fast and light :
>                 rat(3/5)+rat(1/3) gives 14/15 as answer !
>
> I wouldn't say that XPath can't perform rational arithmetic but rather that rational arithmetic is not yet implemented for XPath. Benefits > for scientists, financials,... Integrating this with XForms will permit users to set fields in web applications without a calculator always > at hand.

If you put formulas like that in the data fields of XML, then you are coming back to raw text data that you will have to parse, losing the power of XML ? Why not use MathML and tools associated ?

Regards
Nico
http://debeissat.nicolas.free.fr/