Re: scope of id() (was: recalculating several models)

> The XPath expressions apply to instance data, not the containing document.
> Since the instance data, which is a copy of everything between
> <xforms:instance>...</xforms:instance>, doesn't contain an id of "i1",
> there's no match on the function id().

So:
1/ This means that function id() is almost useless in XForms, right ?
2/ What's the point of the first sentence of chapter 4.2 ?
3/ I'm affraid this also means that you can't have any kind of dependencies
between instances, which is a must IMHO.

Is this correct ?

> P.P.S. If the recalculate event applied to all models, to which element
> would the event be targeted?

As I suggested, this event could be targeted:

1/ to the head section of the containing document (where is supposed to be
the model elements, see chapter 4.3.1), but I don't like this idea very much
cause it's very dependent on the presence of such a section and the type of
the document (XHTML, ...);

2/ or to a new element that could be called models:
<xsd:element name="models">
  <xsd:complexType>
    <xsd:sequence maxOccurs="unbounded">
      <xsd:element ref="xforms:model"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

Jérôme

Received on Tuesday, 8 January 2002 03:59:29 UTC