W3C home > Mailing lists > Public > www-forms@w3.org > October 2001

Evaluation context for <bind> expressions

From: Josef Dietl <josef@mozquito.com>
Date: Mon, 29 Oct 2001 12:15:48 +0100
Message-ID: <D0F1529EE943B3449F755CA1A40887464E103C@winserver.windomain.mozquito.com>
To: <www-forms@w3.org>
Dear all

my appologies: I have overlooked to forward the following to you from
the XForms Working Group. Thanks to Mikko Honkala who has prepared that
response, blame on me for letting it sit for a diproportionate long
time. We don't know yet how this is going to work out in the spec, but
it should give you an idea how we intend this to be worked out.


given the instance:


and bind:

<bind nodeset="/items/item/total" calculate="../price * ../units"/>

The following happens in calculations:

for each node n in nodeset do:
	calculate "../price * ../units" using
		n as the XPath context node
		the 'bind' element as the namespace context

So the effect is the same as having two binds:

<bind ref="/items/item[1]/total" calculate="../price * ../units"/>
<bind ref="/items/item[2]/total" calculate="../price * ../units"/>
Received on Monday, 29 October 2001 06:16:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:05 UTC