xcopy is similar to copy, but copies
all nodes in the first node-list
expression to all
destinations determined by the
location directive relative
to the second node-list expression.
See copy for detailed description of
is used, then the target node-list expression
is evaluated in the context of the source node
--preserve-order|:p option can be
used to ensure that the copied nodes are in the same
relative order as the corresponding source nodes.
Otherwise, if location is
the relative order of the copied nodes will be reversed,
because source nodes are placed to the target location one
Example 57. Copy all middle-earth creatures within the document $a into every world of the document $b.
xcopy $a/middle-earth/creature into $b//world