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

in-scope-prefixes

in-scope-prefixes

The in-scope-prefixes function returns the sequence of namespace prefixes that are in scope for a given element node. This helps identify what namespace prefixes can be used for that element and its sub-elements.

Syntax

fn:in-scope-prefixes(element)
The following table describes the argument for this command:
Argument
Required/Optional
Description
element
Required
The element node whose in-scope prefixes are to be returned.

Return Value

  • Returns a sequence of strings representing the namespace prefixes in scope for the given element.
  • The sequence may contain the empty string
    ""
    representing the default namespace prefix.
  • Returns an empty sequence if the argument is empty or not an element node.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:in-scope-prefixes(<a xmlns="http://ns1" xmlns:x="http://ns2"/>)
("", "x")
fn:in-scope-prefixes(())
Validation error. Empty sequence is not allowed as first argument to in-scope-prefixes function.

Additional information

  • The empty string
    ""
    in the result denotes the default namespace prefix.
  • The function only works with element nodes; other node types return empty.
  • It reflects the namespaces visible due to declarations on the element or inherited from ancestors.

0 COMMENTS

We’d like to hear from you!