|
1 diff -ur xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py |
|
2 --- xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2003-03-11 15:01:34.000000000 +0100 |
|
3 +++ xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2009-05-25 16:32:26.000000000 +0200 |
|
4 @@ -24,8 +24,8 @@ |
|
5 self._rel = rel |
|
6 nt = ParsedNodeTest.ParsedNodeTest('node', '') |
|
7 ppl = ParsedPredicateList.ParsedPredicateList([]) |
|
8 - as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') |
|
9 - self._step = ParsedStep.ParsedStep(as, nt, ppl) |
|
10 + asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') |
|
11 + self._step = ParsedStep.ParsedStep(asp, nt, ppl) |
|
12 return |
|
13 |
|
14 def evaluate(self, context): |
|
15 diff -ur a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py |
|
16 --- xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2003-03-11 15:01:34.000000000 +0100 |
|
17 +++ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2009-05-25 16:27:55.000000000 +0200 |
|
18 @@ -28,8 +28,8 @@ |
|
19 self._right = right |
|
20 nt = ParsedNodeTest.ParsedNodeTest('node','') |
|
21 ppl = ParsedPredicateList.ParsedPredicateList([]) |
|
22 - as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') |
|
23 - self._middle = ParsedStep.ParsedStep(as, nt, ppl) |
|
24 + asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') |
|
25 + self._middle = ParsedStep.ParsedStep(asp, nt, ppl) |
|
26 |
|
27 def evaluate(self, context): |
|
28 res = [] |