slide 67

XPath Can Be Very Complex

(all that power has a price)

child::slide[attribute::type="overview"]/child::list
[count(descendent::item) > 8]
preceding::slide[descendant::title
             [contains(self::node(), 
'Business')]]

Thanks to Jeni Tennison for:

select="following-sibling::transaction
      [@type = $type and
       substring(@date, 4, 2) != $month]
      [1]"