Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Expressing dynamics in XML ?

From: Mayeul <mayeul.marguet@----.-->
To: NULL
Date: 8/11/2009 2:45:00 PM
mathieu wrote:
> On Aug 10, 6:19 pm, "Steve W. Jackson" <stevewjack...@knology.net>
> wrote:
>> In article
>> <10e1b9c8-e9d5-4c55-8fe1-badbb86fe...@d23g2000vbm.googlegroups.com>,
>>
>>  mathieu <mathieu.malate...@gmail.com> wrote:
>>> Hi there,
>>>   I am looking at a way to express dynamic in XML. For example let say
>>> I have :
>>> ...
>>> <person name="John Doe" Age="30">
>>> ...
>>>   How can I say that every year Age should be increased by 1 ? Has
>>> anyone work on integrating language and storing it as XML ?
>>> thanks
>> A person's date of birth doesn't change.  Include that and then the
>> "age" information will always be accurate when calculated from a
>> specified date.
> 
> Excellent. So I now have:
> 
> <person name="John Doe" Bday="197001001">

I suggest a more standard date format, for instance 1970-01-01 (yyyy-mm-dd)

> How do I express the rule Age is computed from Bday using current
> date ?

I suggest you programmatically do that in whatever program will ever use 
your XML as input. XML is meant to represent, and therefore exchange, 
data. It is rarely meant to apply data computing.

> I am looking at MathML, but it is missing a for-each which may
> come handy when I'd like to define more complex rules.

As far as I know MathML's purpose is to represent mathematic formulas, 
not to calculate them.
In other words it is a method to put math sentences in a web page or 
likewise, it is not a programming language.
In other other words, MathML is not what you're looking for.

It seems to me you are trying to use XML as a programming language, 
which is rarely meant to be, aside from XSL transformation (which is not 
meant for the kind of programming you want to do.)

> Are RuleML and SMRL being used ?

Can't comment on these, don't know them.

--
Mayeul


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent