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

RE: Additions to section 7?

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Tue, 4 Apr 2006 09:04:23 +0100
To: <www-forms@w3.org>
Message-ID: <018b01c657be$62bf8840$0e01a8c0@Jan>

Hi Allan,

All good suggestions:

> 1) Get the default |instance| element when no parameter is
> given to getInstanceDocument()

Yes...good idea.

> 2) Make it possible to iterate over all instance documents

Good idea. And if your next suggestion is added (number 3) then you could
also iterate the instance elements themselves to get all the documents.

> 3) Add "shortcut" for getting the instance document directly
> from the |instance| element.

Just pondering how this might be done. One thought is to go the way that the
SVG group have gone, and just have a 'get' function (they have

Another possibility is a bit more 'abstract', and that is to link this to
the more general notion of 'shadow trees'. I don't know if you have such a
function at the moment for your XBL, but there may be some crossover here;
some general function that applies to other elements too, could be used to
'get the hidden data associated with this element'.

> 4) Make it possible to get from an instance data node to the 
> |instance| element in the form.

That's an interesting one. Wouldn't the interface for DOM nodes have to be
modified? That could get a little tricky.

Out of interest, what sort of use cases are you thinking of for this? Is it
so that you can find out the model? Or do you want to get to other nodes in
the same instance as a node you already have?

One last thing, do you have a way to obtain the instance node that is bound
to a particular control? I'm sure you do, but that might be a useful method
to standardise on. It could even be the same method as used for 'get the
hidden data associated with this element' in number 3, above.



Mark Birbeck
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
b: http://internet-apps.blogspot.com/
w: http://www.formsPlayer.com/

Download our XForms processor from
Received on Tuesday, 4 April 2006 08:06:18 UTC

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