- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Thu, 12 Jul 2018 13:20:13 +0200
- To: public-xformsusers@w3.org
A recurring use case I have is initialising an instance from an external resource, and if that resource doesn't exist using a template. The way to do it now is to initialise the instance: <instance id="list"> <list xmlns=""> <item>Enter data here</item> </list> </instance> and then attempt to replace it on startup: <submission id="init" resource="list.xml" replace="instance" instance="list"> <action ev:event="xforms-submit-error" ev:propagate="stop" ev:defaultAction="cancel"/> </submission> <action ev:event="xforms-ready"> <send submission="init"/> </action> How much easier would life be if we could include fallback in the instance: <instance src="list.xml"> <list xmlns=""> <item>Enter data here</item> </list> </instance> (I think it would have to be @src, since that has priority over inline content) Steven
Received on Thursday, 12 July 2018 11:20:40 UTC