W3C home > Mailing lists > Public > www-forms@w3.org > January 2002

Add XSLT transform element to head element set

From: Werner Donné <werner.donne@re.be>
Date: Thu, 10 Jan 2002 18:16:31 +0100
Message-ID: <3C3DCC6F.8030103@re.be>
To: www-forms@w3.org

A simple but powerful extension would be to add the XSLT transform element to the head
element set. The stylesheet in it would be executed on the instance data during the validate
operation, right before the actual validation is done.

A use case is for example to filter out "work elements" in a "work namespace" which are
scattered through the instance data. A "work space" could also be created through the ref
attribute of submitinfo. Anything next to the tree which will be submitted can be considered
a work space.

This doesn't work in all cases though. In a repeating structure, for example, it is not possible
to maintain a work space node-set which maps one-to-one to the bound node-set of the
repeat element. The work space elements could be inserted and deleted, together with the
main elements, but not addressed. That is because the XPath expression to do that would have
to use the root context instead of the normal evaluation context. In that expression the value
of the position() function in the normal evaluation context is not available, unless there would
have been (local) variables. That variable could be set starting from the normal evaluation
context and evaluated starting from the root context.

As a consequence, if one needs work elements in a repeating structure, they have to be
maintained in the instance data, next to the actual elements the structure is supposed to

The transform element would make it easier to create self-contained forms for already
existing XML messaging applications.


Werner Donné  --  Re BVBA
Engelbeekstraat 8		Papenhof 15
B-3300 Tienen			B-3583 Beringen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Thursday, 10 January 2002 12:17:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:42 UTC