It is important to note that
..element.( list.key.@attr == "val")
May fail if the nodes not everyone is @attr .
The safest (albeit in my experience, not 100% successful) method for retrieving a node list.
..element.(list.key.attribute("attr") == "val")
However, I had problems with e4x and conditional expressions (AS3 implementation, Mozilla seems better.), But it seems to be down to the xml source.
ocodo source share