Revision 997
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xpath.py | ||
---|---|---|
96 | 96 |
tree[0].is_positive = is_positive |
97 | 97 |
|
98 | 98 |
# Value |
99 |
if parser.str_('='): set_value(tree, _value()) |
|
99 |
if parser.str_('='): |
|
100 |
if parser.str_('$'): value = _path() |
|
101 |
else: value = _value() |
|
102 |
set_value(tree, value) |
|
100 | 103 |
|
101 | 104 |
# Expand * abbrs |
102 | 105 |
for i in reversed(xrange(len(tree))): |
Also available in: Unified diff
xpath.py: Added parser support for attribute values that are references to another part of the XML tree