Example 1: Append a fragment
This example appends the text entity to the food attribute of the first <c> element.
<idoc> <seq> <instr> <type>stm</type> <operand>doc.xml</operand> <operator> <stm:group xmlns:stm="http://1060.org/stm"> <stm:append-text select="." xpath="/a/b[1]/c/@food">stack</stm:append-text> </stm:group> </operator> <target>this:response</target> </instr> </seq> </idoc>
Try it
 |