xpath questions...
Stefan Behnel
stefan_ml at behnel.de
Sat Aug 23 08:13:26 EDT 2008
Hi,
this is totally not Python related, so this is the wrong list.
bruce wrote:
> form action='foo' name='cat'....
>
> i'm curious, is there a way to select an attribute, only if another
> attribute in the element is set to a given value??
>
> something like
> //form/[@action='foo'][@name]
> which would try to return name, if the action==foo....
//form[@action='foo']/@name
> didn't see this in any of the docs that i reviewed.. nor could i get it to
> work when i was playing around with xpather on firefox..
>
> thoughts/comments/pointers...
Read a good XPath tutorial.
Stefan
More information about the Python-list
mailing list