XSLT and XPath function reference in alphabetical order
(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers, chapter 5, translated from German)
Node names, identifiers and URI information
A xs:string string which corresponds to the absolute URI of the document node passed on.
A document node whose absolute URI shall be determined. If there is no corresponding absolute URI, the function returns the empty sequence.
Purpose of use:
The absolute URI of a document node passed on is determined according to the accessor function dm:document-uri of the XPath/XQuery data model:
dm:document-uri($node as document-node()) as xs:string?
This accessor function, and thus fn:document-uri(), returns as xs:anyURI URI string the absolute URI of the document node passed on.
In case the empty sequence has been passed on as argument, but a document node passed on has no document-URI property or it only contains one relative URI, the fn:document-uri() function returns the empty sequence.
The function is not available.
fn:document-uri($arg as node()?) as xs:anyURI?
|<< back||next >>|
Copyright © Galileo Press, Bonn 2008
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "XSLT 2.0 & XPath 2.0" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn, Germany