The child of <instance>

Section 3.3.2 says "The content of the instance element is arbitrary XML in any namespace." This is not quite true, since it can have at most one child element (tree). (In general, this single-child requirement is somewhat burried in the spec - it would be nice to make it explicit in this section.)

Only form controls, the <model>, and the <submission> can contain action elements, which make it easier to define event handlers for them. That means that to create handlers for <item>, <case>, and <instance>, you have to put the handler somewhere else, right? (Other than directly underneath the target element.)

Actually, since <instance> can contain any XML element, it could contain an action element too. I can imagine someone using an src link to external instance data, and adding an action element as an event handler for the instance node. The spec should probably say whether this is allowed or disallowed.

Alex

Received on Friday, 22 November 2002 11:22:57 UTC