C. Koch, S. Scherzinger: "Attribute grammars for scalable query processing on XML streams"; VLDB Journal, 16 (2007), 3; 317 - 342.
http://publik.tuwien.ac.at/files/pub-inf_5403.pdf