Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Expressing dynamics in XML ?

From: mathieu <mathieu.malaterre@-----.--->
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


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