Project

General

Profile

« Previous | Next » 

Revision 997

xpath.py: Added parser support for attribute values that are references to another part of the XML tree

View differences:

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