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

id

id

The id function in XQuery returns a sequence of element nodes with unique IDs matching the specified ID value(s). It retrieves elements based on the values of their
ID
attributes, commonly used for referencing elements defined with
xml:id
or DTD
ID
attributes.

Syntax

fn:id(arg, node)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
One or more ID values (space-separated tokens) to locate matching elements.
node
Optional
The node that provides the context for resolving the IDs. Defaults to the root node of the context item if omitted.

Return Value

  • Returns a sequence of element nodes whose IDs match any of the values in
    $arg
    .
  • Returns an empty sequence if no matching IDs are found.
  • Resolves ID values with respect to the
    $contextNode
    or context root node if
    $contextNode
    is omitted.

Additional information

  • The ID attributes must be declared as type
    ID
    in the schema or DTD for ID resolution to work.
  • The
    $arg
    string(s) can contain one or multiple whitespace-separated ID tokens.
  • If the context node has no root or relevant attributes, the result may be empty.

0 COMMENTS

We’d like to hear from you!