Skip to main content

Module bind

Module bind 

Source
Expand description

XPath AST binding phase.

This module provides the bind_node() function which performs static analysis on a parsed XPath AST. During binding:

  • Function calls are resolved to FunctionId via the global registry
  • Variable references are resolved to slot indices via NameBinder
  • Namespace prefixes are resolved to namespace URIs
  • Name tests are resolved to interned QNames
  • Type expressions are resolved to interned atomic type QNames

Binding must complete successfully before evaluation can proceed.

Functionsยง

bind_node
Bind an AST node and all its children.