Expand description
XPath 1.0 Runtime Types (§25).
Internal Rust representation of XPath values: node-sets, strings, numbers, booleans, and conversions between them.
§UPSTREAM-PARITY
XPath 1.0 type system with exact IEEE 754 floating-point semantics: NaN, infinity, negative zero, rounding behavior.
§Courts
XPATH-TYPES-*
Structs§
Enums§
- XPath
Type - XPath type.
- XPath
Value - XPath runtime value.
Functions§
- compare_
document_ ⚠order - Compare two nodes in document order.
- node_
string_ value - Get the string value of a node (XPath 1.0 §5.1).
- number_
to_ string - Convert a number to a string (XPath 1.0 §4.7.2) — a faithful port of
upstream
xmlXPathCastNumberToString/xmlXPathFormatNumber(xpath.c, R-000166): the integer shortcut, the 1e9/1e-5 scientific threshold, and the DBL_DIG=15 fraction-digit computation reproduce the oracle’s exact digits, including exponent formatting (e+20,e-05) and trailing-zero trimming. - string_
bytes_ to_ number - Port of upstream xpath.c
xmlXPathStringEvalNumber(R-000166): the oracle accumulates digits directly (ret = ret * 10 + d), caps the fraction at MAX_FRAC=20 digits after any leading zeros, applies the exponent withpow(10.0, exp)(underflowing to 0 below the smallest subnormal, e.g.5e-324), accepts XML whitespace around the number, and returns NaN for anything else — including a leading ‘+’. - string_
to_ number - Convert a string to a number (XPath 1.0 §4.7.1) — upstream
xmlXPathStringEvalNumbersemantics.