- From: Klotz, Leigh <Leigh.Klotz@pahv.xerox.com>
- Date: Thu, 3 Oct 2002 11:55:38 -0700
- To: "'Peter V. Mikhalenko'" <xml-dev@sigent.ru>, "'www-forms@w3.org'" <www-forms@w3.org>
You can use <bind ref=".." calculate="..."/> if there is a programmatic relationship you can express between the <message> and the <author> elements that doesn't violate the dynamic predicates rule. (As expressed in your fragment below, it's not clear what the relationship is; is it XPath following-sibling, or are the two elements in different parts of the document?) See http://www.w3.org/TR/2002/WD-xforms-20020821/slice6.html#model-prop-calculat e I'll re-write your markup to make it an easier example for me (and omit namespaces). I believe something like the following will work, bit I haven't run it through a test: <model> <instance> <bboard> <threads> <thread> <author>I am</author> <message> <author>I am</author> </message> </thread> </threads> </bboard> </instance> <bind nodeset="/bboard/threads/thread/message/author" calculate="../../author"/> </model> If the relationship is between message and threads is different, you will have to use different markup, but bear in mind the dynamic predicates rule (see spec). -----Original Message----- From: Peter V. Mikhalenko [mailto:xml-dev@sigent.ru] Sent: Saturday, September 28, 2002 7:04 AM To: www-forms@w3.org Subject: Doubling instance data Hello! Suppose I have a form input element and want it to be in two different places in the instance, for example I want <thread> <author>I am</author> </thread> <message> <author>I am</author> </message>, for the author being inserted from only one input. Is it possible anyway? __ Peter V. Mikhalenko Lead Developer Sigent Interactive Agency peter@sigent.ru
Received on Thursday, 3 October 2002 14:56:27 UTC