Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

document-uri

document-uri

The document-uri function in XQuery returns the document URI associated with a given document node. It helps identify the URI of the document from which the node originates.

Syntax

fn:document-uri(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The document node whose document URI is to be retrieved.

Return Value

  • Returns the URI of the document as an
    xs:anyURI
    .
  • Returns an empty sequence if the input node is not a document node or if no URI is available.
  • Returns an empty sequence for empty input.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:document-uri(fn:doc("http://example.com/sample.xml"))
"http://example.com/sample.xml"
fn:document-uri(())
()
fn:document-uri(<root/>)
()

Additional information

  • The parameter should be a document node, typically obtained from
    fn:doc()
    or similar functions.
  • Useful for retrieving the source URI of a loaded document.

0 COMMENTS

We’d like to hear from you!