}</context>,
<error-code>{
try { context:to-int('abc')} } catch * { 'Error in line', $err:code line-number }
}</error-code>
</pre>
}
}
</pre>
The result will look as follows:
<pre class="brush:xml">
<context>http://www.w3.org/2005/xpath-functions</context>
<to-int>Error in line 6</to-int>
</pre>