1. An apparatus comprising: a parse circuit coupled to receive a document, wherein the parse circuit is configured to parse the document and generate events corresponding to the parsing; and an expression processor coupled to receive the events and to apply nodes identified by the events to one or more expression trees derived from a plurality of expressions in a stylesheet, the expression processor identifying nodes that satisfy the expressions represented in the one or more expression trees as a result of applying the nodes to the one or more expression trees.