Expand description
Atomization operations for XPath evaluation.
This module implements XPath 2.0 atomization rules for converting values to their atomic representations.
§Atomization Rules
Atomization extracts atomic values from items:
- For atomic values, returns the value itself
- For nodes, returns the typed value of the node
- For empty sequences, returns None
- For sequences with more than one item, raises XPDY0050
Functions§
- atomize
- Atomize an XmlValue, returning its atomic representation.
- atomize_
node - Atomize a navigator node to its XDM atomic value.
- atomize_
opt - Atomize an optional value.
- atomize_
required - Atomize a value, requiring a non-empty result.
- effective_
type_ code - Get the type code of the underlying atomic value.
- is_
empty_ list - Check if a value is empty (represents an empty sequence).
- is_node
- Check if a value represents a node.
- is_
node_ type - Check if a value is a node (in XPath terms).
- string_
value - Get the string value of an XmlValue.
- string_
value_ opt - Get the string value of an optional value.
- to_
number - Convert a value to a double (numeric).
- to_
number_ opt - Convert an optional value to a double.
- unwrap_
union - Unwrap a union value to its member value.