W3C home > Mailing lists > Public > www-forms@w3.org > April 2005

Re: does xforms:instance() change context?

From: David Landwehr <DLandwehr@novell.com>
Date: Fri, 15 Apr 2005 08:22:15 +0200
Message-Id: <s25f6bbb.035@emea1-mh.id2.novell.com>
To: <adrian.r.baker@gmail.com>,<www-forms@w3.org>

Hi Adrian,

/code will point to a node in the document which is used for context for the expression. E.g. the document will be determined by the node from instance('observations')/data, so if you expected that /code would always go to the default instance then that would not be true. You must in such a case move the context back to the default instance using the instance() function, e.g. 

instance('observations')/data[instance('default') != 'foo']

Best regards,

>>> Adrian Baker <adrian.r.baker@gmail.com> 04/14/05 7:15 am >>>

Does the instance() function change the context node?

eg, if I have the following xpath expression

instance('observations')/data[/code != 'foo']

What should /code within the predicate be evaulated against ?

Received on Friday, 15 April 2005 06:22:43 UTC

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