W3C home > Mailing lists > Public > www-forms@w3.org > February 2004

RE: A note on <bind /> (similar to <group />)

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Thu, 5 Feb 2004 09:45:02 -0000
To: "'Klotz, Leigh'" <Leigh.Klotz@pahv.xerox.com>
Cc: <www-forms@w3c.org>
Message-ID: <006801c3ebcc$ba1af350$6b01a8c0@W100>

Hello Leigh,

> Just as <group /> can be used as a container, so can <bind />.
> I believe that <bind /> is legal and useful, just like <group />,
> and want to make sure that implementations aren't tripped up on the
> base case.

This is actually how formsPlayer works; everything that could take a
binding attribute (@model/@ref/@nodeset/@bind) will use the current
context if none is present.

So this:

    <bind readonly="true()" />

would set the root node of the first instance in the current model to
read only.

As a result of this, I have often thought we should drop the fact that
submission/@ref explicitly defaults to "/", since that is already
implied by these same rules for context. The following would still use
the root node of the first instance, even if we removed this explicit

      <submission action="http://..." method="post" />

Of course, much more controversial would be to continue the consistency,
and allow @ref to be optional on form controls!:

        <label ref="." /

    <output />



Mark Birbeck
x-port.net Ltd.
Received on Thursday, 5 February 2004 04:45:20 UTC

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