instance @src and @resource

I'm still a little concerned about the difference between @src and  
@resource on <instance>.
https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_instance_Element

1)
<instance src="foo">
    <data xmlns=""><a>0</a></data>
</instance>

@src is used. If it fails, an exception is dispatched.


<instance resource="foo">
    <data xmlns=""><a>0</a></data>
</instance>

The inline content is used, @resource is ignored.

2)
<instance src="foo"/>
@src is used. If it fails, an exception is dispatched.

<instance resource="foo"/>
@resource is used. If it fails, an exception is dispatched.

<instance src="foo" resource="foo"/>
@src is used. If it fails, an exception is dispatched. @resource is  
ignored.

So who can explain to me the point?

(On a related note, it might be useful to let the inline content be a  
fallback for @src, and only dispatch an exception if there is no inline  
content:

 <instance src="saved-data.xml">
  <data xmlns="">
   ... initial data ...
  </data>
 </instance>
)

Steven

Received on Wednesday, 8 October 2014 11:05:57 UTC