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

QName

QName

The QName function in XQuery constructs a QName (Qualified Name) from a namespace URI and a local part (local name). It is used to create a QName value dynamically in XQuery.

Syntax

fn:QName(paramURI, paramQName)
The following table describes the argument for this command:
Argument
Required/Optional
Description
paramURI
Optional
The namespace URI part of the QName. It can be empty or
""
if no namespace is desired.
paramQName
Required
The local part or the local name of the QName. It must be a valid non-colonized name (NCName).

Return Value

  • Returns an
    xs:QName
    constructed from the provided namespace URI and local name.
  • Raises an error if the local name is not a valid NCName.
  • If the namespace URI is empty or
    ""
    , the QName is in no namespace.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:QName("http://example.com/ns", "name")
QName("{http://example.com/ns}name")
fn:QName("", "name")
QName("name")
fn:QName((), "name")
QName("name")
fn:QName("http://example.com/ns", "1invalid")
Error

Additional information

  • The
    $localName
    must conform to NCName syntax. Colons are not allowed.
  • The function is useful when constructing QNames programmatically.
  • It can be used where element or attribute names need to be dynamically generated.

0 COMMENTS

We’d like to hear from you!