A document() function
Allows XPaths to access the containing document, not just instance data.
(Erik's note: XPath 2.0 already has doc() function)
Allows XPaths to access the containing document, not just instance data.
(Erik's note: XPath 2.0 already has doc() function)