There are some things in XPath that I really like. For example `x = ( a, b, c )' means: `(x == a or x == b or x == c)' which is quite handy sometimes. Also `(a,default)[1]' makes it easy to provide a default if a is null.
That is very cool, indeed! =)
I'm stuck with XPath 1.0 still, because XPath 2.0 hasn't found its way to lxml yet -- it seems to be quite a lot of work to implement it.
5 comments
[ 4.2 ms ] story [ 29.3 ms ] threaddata: <data attr="1" />
xsl:
gives: <one>false</one><two>2</two>