Add functions/types for XPath support.

What does this have to do with the general topic of this commit?