Functions, operators, and data types for XPath 2.0

The doc function is implemented.

The trace function has been changed so that it is never evaluated at compile time, even if both arguments are constants.