1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! A focused XPath 2.0 evaluator over `roxmltree` documents, for the
//! Schematron rules TEI schemas embed (`queryBinding="xslt2"`).
//!
//! It covers path expressions on every axis except `namespace`, predicates,
//! general/value/node comparisons, arithmetic, `if`, `for`, `some`/`every`,
//! `instance of`, `cast`/`castable` to the string, boolean, numeric, date,
//! time and duration types, sequences, and most of the XPath 2.0 string,
//! sequence, numeric, node, date and duration functions (plus XSLT's
//! `current()` and `document()`), with XPath regular expressions translated
//! for the `regex` crate. `doc()`, `document()` and `doc-available()` read
//! local files and, for `http(s)` URIs, the schema store, never the network
//! (see `resources`). As Saxon runs XSLT 2.0 stylesheets as XSLT 3.0, it
//! also accepts the XPath 3.0 operators `!`, `||`, `let` and `=>`, a few
//! XPath 3.0 functions (`has-children()`, `innermost()`, `outermost()`,
//! `path()`), and XSLT 3.0 match patterns with parenthesised unions as
//! steps. Anything else — schema types, back-references in regular
//! expressions, other XPath 3 syntax and functions — is rejected when the
//! expression is compiled, so callers can report it as unsupported instead
//! of guessing.
//!
//! Values follow XPath 2.0 typing, simplified: no schema types (node values
//! are `xs:untypedAtomic`), and `xs:decimal`/`xs:float` are approximated
//! by doubles. Dates follow XML Schema 1.1 as Saxon does (there is a year
//! 0), the implicit timezone is UTC, and `current-dateTime()` is read once
//! per document. `base-uri()` is the document's URI resolved against any
//! `xml:base`. A regular expression that isn't valid XPath is an error when
//! it is evaluated, as in Saxon.
use fmt;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
/// A dynamic error raised while evaluating an expression.
pub