W3C home > Mailing lists > Public > public-forms@w3.org > October 2014

instance @src and @resource

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Wed, 08 Oct 2014 13:05:21 +0200
To: public-forms@w3.org
Message-ID: <op.xnerq7bcsmjzpq@steven-ux21a>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:14:10 UTC