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

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

From: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>
Date: Tue, 8 Jan 2002 09:59:03 +0100
Message-ID: <006101c19822$b954d8a0$630aa8c0@fischer>
To: <www-forms@w3.org>
> 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().

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:sequence maxOccurs="unbounded">
      <xsd:element ref="xforms:model"/>

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

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