Re: itemset/@copy

On Thu, 14 Mar 2019 16:19:36 +0100, Steven Pemberton  
<> wrote:

> I don't think we illustrate well enough how @copy works (copying a whole  
> subtree). I propose we use a better example that shows a subtree being  
> copied. I'll think about a better example.
> (Also the description of the copy attribute is weak).
> Steven

Something like this?

   <model xmlns="">
       <transaction xmlns="">
     <instance id="contacts">
       <contacts xmlns="">
   <name>John Smith</name>
   <street>11 Main Street</street>
   <postcode>W1 1AA</postcode>
   <name>Jane Bond</name>
   <street>7 License Lane</street>
   <name>Frederick Angel</name>
   <street>123 Marks Street</street>
   <city>New York</city>

   <group xmlns="">
     <select1 ref="addressee">
       <label>Choose address</label>
       <itemset ref="instance('contacts')/address"><label ref="name"/><copy  
     <group ref="addressee/address">
       <output ref="street"/>
       <output ref="city"/>
       <output ref="postcode"/>
       <output ref="land"/>


Received on Monday, 18 March 2019 14:40:38 UTC