Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Expressing dynamics in XML ? [Thread Next] Re: Expressing dynamics in XML ?To: NULL Date: 8/11/2009 6:11:00 PM mathieu wrote: > On Aug 11, 2:45 pm, Mayeul <mayeul.marg...@free.fr> wrote: >> 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. > > Just like XML is meant to exchange data, I am looking for a standard > to exchange rules and dynamics. Looks like w3c is working on it: > > http://www.w3.org/2005/rules/wiki/RIF_Working_Group > > I'll see if this is a good entry point. My mistake, so this really is what you want to do. I'm sure a lot of standard recommendations and drafts were made, and are being done, in this area. I'm not even close to start understanding their point, though. Good luck with your research. -- Mayeul | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
