A document() function

From W3C XForms Group Wiki (Public)

Allows XPaths to access the containing document, not just instance data.

(Erik's note: XPath 2.0 already has doc() function)