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) StevenReceived on Thursday, 12 July 2018 11:20:40 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:50 UTC