Attribute Grammars for Scalable Query Processing on XML Streams

  • Christoph Koch
  • Stefanie Scherzinger
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 2921)


We introduce the new notion of XML Stream Attribute Grammars (XSAGs). XSAGs are the first scalable query language for XML streams (running strictly in linear time with bounded memory consumption independent of the size of the stream) that allows for actual data transformations rather than just document filtering. XSAGs are also relatively easy to use for humans. Moreover, the XSAG formalism provides a strong intuition for which queries can or cannot be processed scalably on streams. We introduce XSAGs together with the necessary language-theoretic machinery, study their theoretical properties such as their expressiveness and complexity, and discuss their implementation.


Regular Expression Query Language Parse Tree Attribute Grammar Attribution Function 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Aho, V., Sethi, R., Ullman, J.D.: Compilers – Principles, Techniques, and Tools. Addison-Wesley, Reading (1986)Google Scholar
  2. 2.
    Aho, V., Ullman, J.D.: The Theory of Parsing, Translation, and Compiling. I: Parsing, vol. 1. Prentice-Hall, Englewood Cliffs (1972)Google Scholar
  3. 3.
    Benedikt, M., Chan, C.Y., Fan, W., Freire, J., Rastogi, R.: Capturing both Types and Constraints in Data Integration. In: Proceedings of the 2003 ACM SIGMOD International Conference on Management of Data (SIGMOD 2003), pp. 277–288 (2003)Google Scholar
  4. 4.
    Benedikt, M., Chan, C.Y., Fan, W., Rastogi, R., Zheng, S., Zhou, A.: DTD Directed Publishing with Attribute Translation Grammars. In: CAiSE 2002 and VLDB 2002, pp. 838–849 (2002)Google Scholar
  5. 5.
    Bray, T., Paoli, J., Sperberg-McQueen, C.: Extensible Markup Language (XML) 1.0. Technical report, W3C (February 1998)Google Scholar
  6. 6.
    Brüggemann-Klein, A., Wood, D.: One-Unambiguous Regular Languages. Information and Computation 142(2), 182–206 (1998)zbMATHCrossRefMathSciNetGoogle Scholar
  7. 7.
    Fegaras, L., Levine, D., Bose, S., Chaluvadi, V.: Query Processing of Streamed XML Data. In: Proc. 11th ACM International Conference on Information and Knowledge Management (CIKM), pp. 126–133 (2002)Google Scholar
  8. 8.
    Green, T.J., Miklau, G., Onizuka, M., Suciu, D.: Processing XML Streams with Deterministic Automata. In: Calvanese, D., Lenzerini, M., Motwani, R. (eds.) ICDT 2003. LNCS, vol. 2572, pp. 173–189. Springer, Heidelberg (2002)CrossRefGoogle Scholar
  9. 9.
    Hopcroft, J.E., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation. Addison-Wesley Publishing Company, Reading (1979)zbMATHGoogle Scholar
  10. 10.
    Koch, C.: Efficient Processing of Expressive Node-Selecting Queries on XML Data in Secondary Storage: A Tree Automata-based Approach. In: Proceedings of the 29th International Conference on Very Large Data Bases (VLDB 2003), Berlin, Germany (2003)Google Scholar
  11. 11.
    Lee, D., Mani, M., Murata, M.: Reasoning about XML Schema Languages using Formal Language Theory. Technical Report RJ 10197 Log 95071, IBM Research (November 2000)Google Scholar
  12. 12.
    Ludäscher, B., Mukhopadhyay, P., Papakonstantinou, Y.: A Transducer-Based XML Query Processor. In: CAiSE 2002 and VLDB 2002, pp. 227–238 (2002)Google Scholar
  13. 13.
    Neven, F.: Extensions of Attribute Grammars for Structured Document Queries. In: Proc. 8th International Workshop on Database Programming Languages (DBPL), pp. 99–116 (1999)Google Scholar
  14. 14.
    Neven, F., van den Bussche, J.: Expressiveness of Structured Document Query Languages Based on Attribute Grammars. Journal of the ACM 49(1), 56–100 (2002)CrossRefMathSciNetGoogle Scholar
  15. 15.
    Olteanu, D., Kiesling, T., Bry, F.: An Evaluation of Regular Path Expressions with Qualifiers against XML Streams. In: Proceedings of the 19th IEEE International Conference on Data Engineering (ICDE), Bangalore (March 2003) (poster session)Google Scholar
  16. 16.
    World Wide Web Consortium. XML Query,

Copyright information

© Springer-Verlag Berlin Heidelberg 2004

Authors and Affiliations

  • Christoph Koch
    • 1
  • Stefanie Scherzinger
    • 2
  1. 1.LFCSUniversity of EdinburghEdinburghUK
  2. 2.Lehrstuhl für Dialogorientierte Systeme, FMIUniversität PassauPassauGermany

Personalised recommendations