<!-- SQUARE function -->
<xsp:variable name="square" type="node">
<xsp:processing-instruction>
<xsp:text value="{node() * node()}"/>
</xsp:processing-instruction>
</xsp:variable>
This is a one-liner in python and you can guess what it does without knowing python.