[XML-SIG] XPath in Python 2
Dieter Maurer
dieter@handshake.de
Sun, 9 Jul 2000 23:35:15 +0200 (CEST)
Paul Prescod writes:
> My feeling is that implementing 10% of XPath in 10% of the code would
> get us 80% of the benefit. Those that need the rest can download 4XPath.
> I also think that 4XPath should be part of the pyxml distribution.
>
> The 10% that is most interesting:
>
> * a/b/c
> * a//b
> * ../
>
> Actually, that's probably not even 10% and it can be "parsed" mostly
> with a "string.split" on "/". Things like positional predicates can be
> implemented with Python sequence syntax. Attribute access can use DOM
> syntax. All in all, this looks like an afternoon's work, if we agree
> that it should go into Python.
I do not share your preference for tiny little things.
I would not go for such a thing, but directly use 4XPath.
Dieter