Error Functions

error(fn:QName('http://www.example.com/HR', 'myerr:toohighsal')) raises an error which may be caught in a try-catch construct in XQuery or XSLT. trace($v, 'the value of $v is:') reports the value of $v.