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 ? Re: Expressing dynamics in XML ?To: NULL Date: 8/11/2009 9:51:00 AM On Aug 11, 3:15=A0pm, Joe Kesselman <keshlam.cat.nos...@verizon.net> wrote: > Mayeul wrote: > > 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 no= t > > meant for the kind of programming you want to do.) > > Agree with that analysis. XML itself is pretty close to being raw syntax > for data structures. Those structures certainly *can* express > programming operations (XSLT being the obvious example but not the only > one), but even when that's done the document which describes the > operations is generally separate from the document which describes the > data to be operated on. > > Much the same as the separation of program and data files in any other > syntax(es). I see your point. I'll try to keep that in mind. The word 'rule' might be poorly chosen though, how about 'constrain'. You still want to write your 'rule' in xslt to make your xml goes from one state to the other. Now consider <person name=3D"John Doe" Balance=3D"100"/> <item name=3D"dvd" price=3D"10"/> Each time you buy a dvd, your balance goes down by 10, which can be expressed in your xslt script. However I can see different type of constrain: depending if your bank allows you to have a balance below 0 or not. The constrain -as I see it- are more like 'data', it is defined when you open your account. And you still somehow need to say <bank-account is-valid-if=3D"$balance > $limit"/> I am not sure it actually make sense, but I am just discovering the field. Thx anyway | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
