W3C home > Mailing lists > Public > public-forms@w3.org > February 2009

Question about xforms:instance @src/@resource and inline instance

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Mon, 16 Feb 2009 19:23:10 -0800
Message-Id: <56F1F03C-DCF2-4EE0-9138-B15E99274E01@orbeon.com>
To: Forms WG <public-forms@w3.org>
All,

I seem to be missing something.

Checkin the 03 February 2009 version, it seems that XForms 1.1, allows
both @src and an inline instance, or an inline instance and @resource,
or possibly all three, at the same time.

Now I am puzzled as to the reason we need @resource at all, or both an
inline instance and @src/@resource.

The spec says in "1.5.1 Model and Instance" [1]:

"The instance element now has a resource attribute that allows
  instance data to be obtained from a URI only if the instance does not
  already contain data. By contrast, the src attribute overrides the
  inline content in an instance. The resource attribute is more useful
  in systems that must support save and reload of XForms-based
  documents."

Since an error while handling @src causes form processing to halt, why
would anyone put an inline instance then?

Similarly, if an inline instance is present, why would anyone put the
@resource attribute in, since the inline instance will be used and
therefore @resource ignored?

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com
Received on Tuesday, 17 February 2009 03:24:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:50 UTC