The ref::
axis is an addition xpath axis that can be specified on
any STM instruction that has an xpath attribute. It provides a level of indirection,
allowing the xpath used by the instruction to be obtained dynamically from the
body of the instruction.
Example
This example deletes all elements in the operand document of
the path /entrypoints/entrypoint filtered by a given Predicate obtained
from the text at the path /nvp/xpath in the parameter document.
<stm:group xmlns:stm="http://1060.org/stm">
<stm:delete xpath="ref::xpath">
<xpath>/entrypoints/entrypoint[
<stm:param xpath="/nvp/xpath/text()" />]
</xpath>
</stm:delete>
</stm:group>