submission vs. load

Writing my tutorial, and explaining that

 <instance id="x" resource="y"/>

is equivalent to

 <submission method="get" resource="y" serialisation="none"  
replace="instance" instance="x"/>

it struck me that

 <load resource="y" show="replace"/>

is equivalent to

 <submission method="get" resource="y" serialisation="none" replace="all"/>

There are two notable differences:

 show("new" | "replace")
vs.
 replace("all"|"instance"|"text"|"none")

replace="all" is the same as show="replace"


Proposal: make load a special case of submission.

1. Add @replace+ to <load/>
2. Deprecate @show
3. Add "new" as a possible value of submission/@replace

Examples

   <load resource="y" replace="all"/>
   <submission resource="y" replace="new"/>

And then why not:
   <load resource="y" replace="instance" instance="z"/>
?

Steven

Received on Tuesday, 6 October 2020 18:42:48 UTC