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

local-name-from-QName

local-name-from-QName

The local-name-from-QName function in XQuery returns the local part of a QName value. It extracts only the local name without namespace prefix or URI from the given
xs:QName
.

Syntax

fn:local-name-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 local name. If empty or omitted, returns an empty sequence.

Return Value

  • Returns the
    xs:string
    representing the local name part of the QName.
  • 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:local-name-from-QName(QName("", "bar"))
"bar"
fn:local-name-from-QName(())
()

Additional information

  • The input must be a valid QName.
  • The function is complementary to
    fn:namespace-uri-from-QName()
    which returns the namespace part.
  • It is useful when working with QName values where you need the local name alone.

0 COMMENTS

We’d like to hear from you!