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

local-name

The local-name function in XQuery returns the local part (local name) of the expanded QName of the node provided as input. This excludes the namespace prefix and namespace URI.

Syntax

fn:local-name(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Optional
The node from which to extract the local name. If omitted or empty, the context item is used.

Return Value

  • Returns the
    xs:string
    representing the local name of the input node's QName.
  • Returns an empty string if the input is an empty sequence or the node does not have a name. For example, text nodes.
  • Raises an error if no context item is provided and the argument is omitted.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:local-name(<a:book xmlns:a="http://example.com"/> )
"book"
fn:local-name(text{"Hello"})
""
fn:local-name(())
""
fn:local-name()
(with context node
<ex:item>
in scope)
"item"

Additional information

  • The function works with element, attribute, processing-instruction, comment, or document nodes.
  • For nodes without a QName, such as text or comment nodes. It returns an empty string.
  • It optionally uses the context item if no argument is passed.

0 COMMENTS

We’d like to hear from you!