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

namespace-uri-from-QName

namespace-uri-from-QName

The namespace-uri-from-QName function in XQuery returns the namespace URI part of a given QName value. This allows extracting the namespace URI component from an
xs:QName
.

Syntax

fn:namespace-uri-from-QName(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Optional
The QName from which to extract the namespace URI. Returns empty sequence if
$arg
is empty or omitted.

Return Value

  • Returns the namespace URI for
    $arg
    as an
    xs:string
    .
  • Returns the
    xs:anyURI
    representing the namespace URI of the QName argument.
  • Returns the zero-length string is returned, if
    $arg
    is no namespace.
  • Returns an empty sequence if the input is empty or omitted.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:namespace-uri-from-QName(QName("", "bar"))
""
(empty string)
fn:namespace-uri-from-QName(())
()

Additional information

  • The input must be a valid QName.
  • This function complements
    local-name-from-QName()
    which returns the local part.
  • It can be used to determine namespace URIs dynamically when working with QName values.

0 COMMENTS

We’d like to hear from you!