title: How to assert that an element value is of certain type?
body: <p>Is there a good way to assert that the value of the current element must be of a certain type (e.g. xs:integer), and thrown an exception if it's not? Using XSL 2.0</p>