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

prefix-from-QName

prefix-from-QName

The prefix-from-QName function in XQuery returns the namespace prefix part of a given QName value. If the QName has no prefix, the function returns an empty sequence.

Syntax

fn:prefix-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 prefix. Returns empty sequence if input is empty or omitted.

Return Value

  • Returns the namespace prefix (
    xs:string
    ) of the input QName.
  • Returns the empty sequence if the QName has no prefix or the input is empty.

Examples

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

Additional information

  • This function complements
    local-name-from-QName()
    and
    namespace-uri-from-QName()
    .
  • It is useful when needing to handle or inspect namespace prefixes dynamically.

0 COMMENTS

We’d like to hear from you!