0
|
1 |
LocationPath:
|
|
2 |
RelativeLocationPath { '1' reverse}
|
|
3 |
;
|
|
4 |
|
|
5 |
|
|
6 |
RelativeLocationPath:
|
|
7 |
Step
|
|
8 |
{ XMLv2::XPathExpression with: '1' }
|
|
9 |
| Step "/" RelativeLocationPath
|
|
10 |
{ '3' add: '1'; yourself }
|
|
11 |
;
|
|
12 |
|
|
13 |
|
|
14 |
Step:
|
|
15 |
AxisSpecifier NodeTest Predicate*
|
|
16 |
{ XMLv2::XPathLocationStep new
|
|
17 |
axis: '1';
|
|
18 |
nodeTest: '2';
|
|
19 |
predicates: '3' }
|
|
20 |
|
|
21 |
;
|
|
22 |
|
|
23 |
AxisSpecifier:
|
|
24 |
ExplicitAxisSpecifier
|
|
25 |
{ '1' }
|
|
26 |
| "@"
|
|
27 |
{ XMLv2::XPathAxisAttribute new }
|
|
28 |
|
|
|
29 |
{ XMLv2::XPathAxisChild new }
|
|
30 |
;
|
|
31 |
|
|
32 |
ExplicitAxisSpecifier:
|
|
33 |
"ancestor::"
|
|
34 |
{ XMLv2::XPathAxisAncestor new }
|
|
35 |
| "ancestor-or-self::"
|
|
36 |
{ XMLv2::XPathAxisAncestorOrSelf new }
|
|
37 |
| "attribute::"
|
|
38 |
{ XMLv2::XPathAxisAttribute new }
|
|
39 |
| "child::"
|
|
40 |
{ XMLv2::XPathAxisChild new }
|
|
41 |
| "descendant::"
|
|
42 |
{ XMLv2::XPathAxisDescendant new }
|
|
43 |
| "descendant-or-self::"
|
|
44 |
{ XMLv2::XPathAxisDescendantOrSelf new }
|
|
45 |
| "following::"
|
|
46 |
{ XMLv2::XPathAxisFollowing new }
|
|
47 |
| "following-sibling::"
|
|
48 |
{ XMLv2::XPathAxisFollowingSibling new }
|
|
49 |
| "namespace::"
|
|
50 |
{ XMLv2::XPathAxisNamespace new }
|
|
51 |
| "parent::"
|
|
52 |
{ XMLv2::XPathAxisParent new }
|
|
53 |
| "preceding::"
|
|
54 |
{ XMLv2::XPathAxisPreceding new }
|
|
55 |
| "preceding-sibling::"
|
|
56 |
{ XMLv2::XPathAxisPrecedingSibling new }
|
|
57 |
| "self::"
|
|
58 |
{ XMLv2::XPathAxisSelf new }
|
|
59 |
;
|
|
60 |
|
|
61 |
|
|
62 |
NodeTest:
|
|
63 |
NameTest
|
|
64 |
{ '1' }
|
|
65 |
| KindTest
|
|
66 |
{ '1' }
|
|
67 |
;
|
|
68 |
|
|
69 |
NameTest:
|
|
70 |
<NCName>
|
|
71 |
{ XMLv2::XPathNameTest new
|
|
72 |
localName:'1' value }
|
|
73 |
| "*"
|
|
74 |
{ XMLv2::XPathNameTest new
|
|
75 |
localName:'*'; prefix:'*' }
|
|
76 |
| "*" ":" <NCName>
|
|
77 |
{ XMLv2::XPathNameTest new
|
|
78 |
localName:'*'; prefix:'1' value }
|
|
79 |
| <NCName> ":" "*"
|
|
80 |
{ XMLv2::XPathNameTest new
|
|
81 |
localName:'1' value; prefix:'*' }
|
|
82 |
;
|
|
83 |
|
|
84 |
KindTest:
|
|
85 |
| "node" "(" ")"
|
|
86 |
{ XMLv2::XPathAnyKindTest new }
|
|
87 |
| "document-element" "(" ")"
|
|
88 |
{ XMLv2::XPathDocumentTest new }
|
|
89 |
| "element" "(" ")"
|
|
90 |
{ XMLv2::XPathElementTest new }
|
|
91 |
| "attribute" "(" ")"
|
|
92 |
{ XMLv2::XPathAttributeTest new }
|
|
93 |
| "text" "(" ")"
|
|
94 |
{ XMLv2::XPathTextTest new }
|
|
95 |
| "comment" "(" ")"
|
|
96 |
{ XMLv2::XPathCommentTest new }
|
|
97 |
| "processing-instruction" "(" ")"
|
|
98 |
{ XMLv2::XPathProcessingInstructionTest new }
|
|
99 |
;
|
|
100 |
|
|
101 |
|
|
102 |
Predicate:
|
|
103 |
"[" "]"
|
|
104 |
{ XMLv2::XPathPredicate new }
|
|
105 |
;
|