Example 2: Replace multiple elements
This example replaces all the <b> elements with
the /i/j[1] fragment from the parameter substitution.
<idoc> <seq> <instr> <type>stm</type> <operand>doc.xml</operand> <operator> <stm:group xmlns:stm="http://1060.org/stm"> <stm:replace xpath="/a/b"> <stm:param xpath="/i/j[1]" /> </stm:replace> </stm:group> </operator> <param>param.xml</param> <target>this:response</target> </instr> </seq> </idoc>
Try it
 |