skip to main content
10.1145/1065167.1065203acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article

XML type checking with macro tree transducers

Authors Info & Claims
Published:13 June 2005Publication History

ABSTRACT

MSO logic on unranked trees has been identified as a convenient theoretical framework for reasoning about expressiveness and implementations of practical XML query languages. As a corresponding theoretical foundation of XML transformation languages, the "transformation language" TL is proposed. This language is based on the "document transformation language" DTL of Maneth and Neven which incorporates full MSO pattern matching, arbitrary navigation in the input tree using also MSO patterns, and named procedures. The new language generalizes DTL by additionally allowing procedures to accumulate intermediate results in parameters. It is proved that TL -- and thus in particular DTL - despite their expressiveness still allow for effective inverse type inference. This result is obtained by means of a translation of TL programs into compositions of top-down finite state tree transductions with parameters, also called (stay) macro tree transducers.

References

  1. S. Abiteboul, P. Buneman, and D. Suciu. Data on the Web. Morgan Kaufmann, 2000.]]Google ScholarGoogle Scholar
  2. V. Benzaken, G. Castagna, and A. Frisch. CDuce: An XML-Centric General-Purpose Language. In Proc. ICFP'03, pages 51--63. ACM Press, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. A. Berglund and S. Boag et. al., editors. XML Path Language (XPath) 2.0. W3C Working Draft, World Wide Web Consortium, November 2003. Available online http://www.w3.org/TR/xpath20.]]Google ScholarGoogle Scholar
  4. A. Berlea and H. Seidl. fxt - A Transformation Language for XML Documents. Journal of Computing and Information Technology, 10(1):19--35, 2002.]]Google ScholarGoogle ScholarCross RefCross Ref
  5. R. Bloem and J. Engelfriet. Monadic Second Order Logic and Node Relations on Graphs and Trees. pages 144--161. LNCS 1261, Springer-Verlag, 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. S. Boag and D. Chamberlin et. al., editors. XQuery 1.0: An XML Query Language. W3C Working Draft, World Wide Web Consortium, November 2003. Available online http://www.w3.org/TR/xquery/.]]Google ScholarGoogle Scholar
  7. J. Clark and S. DeRose, editors. XML Path Language (XPath) 1.0. W3C Recommendation, World Wide Web Consortium, November 1999. Available online http://www.w3.org/TR/xpath.]]Google ScholarGoogle Scholar
  8. J. Clark and M. Murata et al. RelaxNG Specification. OASIS. Available online http://www.oasis-open.org/committees/relax-ng.]]Google ScholarGoogle Scholar
  9. J. Clark, editor. XSL Transformations (XSLT) 1.0. W3C Recommendation, World Wide Web Consortium, November 1999. Available online http://www.w3.org/TR/xslt.]]Google ScholarGoogle Scholar
  10. J. Engelfriet and S. Maneth. Macro Tree Transducers, Attribute Grammars, and MSO Definable Tree Translations. Inform. and Comput., 154:34--91, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. J. Engelfriet and S. Maneth. A Comparison of Pebble Tree Transducers with Macro Tree Transducers. Acta Inf., 39:613--698, 2003.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. J. Engelfriet and S. Maneth. Macro Tree Translations of Linear Size Increase are MSO Definable. SIAM J. Comput., 32:950--1006, 2003.]]Google ScholarGoogle ScholarCross RefCross Ref
  13. J. Engelfriet and B. Samwel. Personal communication (work in progress). 2004.]]Google ScholarGoogle Scholar
  14. J. Engelfriet and H. Vogler. Macro Tree Transducers. J. of Comp. Syst. Sci., 31:71--146, 1985.]]Google ScholarGoogle ScholarCross RefCross Ref
  15. J. Engelfriet and H. Vogler. Pushdown Machines for the Macro Tree Transducer. Theoret. Comp. Sci., 42:251--368, 1986.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. D.C. Fallside, editor. XML Schema. W3C Recommendation, World Wide Web Consortium, 2 May 2001. Available online http://www.w3.org/TR/xmlschema-0/.]]Google ScholarGoogle Scholar
  17. M.J. Fisher. Grammars with Macro-like Productions. PhD thesis, Harvard University, Massachusetts, 1968.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. A. Frisch. Regular Tree Language Recognition with static Information, 2004. PLAN-X 2004.]]Google ScholarGoogle Scholar
  19. Z. Fülöp and H. Vogler. Syntax-Directed Semantics; Formal Models Based on Tree Transducers. Springer-Verlag, 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. H. Hosoya and B. C. Pierce. XDuce: A Statically Typed XML Processing Language. ACM Trans. Inter. Tech., 3(2):117--148, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. M. Kay, editor. XSL Transformations (XSLT) 2.0. W3C Working Draft, World Wide Web Consortium, November 2003. Available online http://www.w3.org/TR/xslt20.]]Google ScholarGoogle Scholar
  22. A. Kühnemann and H. Vogler. Synthesized and Inherited Functions. A new Computational Model for Syntax-Directed Semantics. Acta Inf., 31:431--477, 1994.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. S. Maneth. The Macro Tree Transducer Hierarchy Collapses for Functions of Linear Size Increase. In Proc. FSTTCS'03, pages 326--337. LNCS 2914, Springer-Verlag, 2003.]]Google ScholarGoogle ScholarCross RefCross Ref
  24. S. Maneth and F. Neven. Structured Document Transformations Based on XSL. In Proc. DBPL'99, pages 80--98. LNCS 1949, Springer-Verlag, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. W. Martens and F. Neven. Frontiers of Tractability for Typechecking Simple XML Transformations. In Proc. PODS'04, pages 23--34. ACM Press, 2004.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. E. Meijer and M. Shields. XML: A Functional Language for Constructing and Manipulating XML Documents. 1999. Available online http://www.cse.ogi.edu/~mbs/pub/xmlambda/.]]Google ScholarGoogle Scholar
  27. T. Milo, D. Suciu, and V. Vianu. Typechecking for XML Transformers. J. of Comp. Syst. Sci., 66:66--97, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. A. Møller and M. I. Schwartzbach. The Design Space of Type Checkers for XML Transformation Languages. In Proc. ICDT'05, 2005. To appear.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. M. Murata, D. Lee, and M. Mani. Taxonomy of XML Schema Languages using Formal Language Theory. In Proc. Extreme Markup Languages 2000, 2000.]]Google ScholarGoogle Scholar
  30. A. Neumann and A. Berlea. fxgrep 4.0. Source Code, 2004.]]Google ScholarGoogle Scholar
  31. F. Neven. Automata Theory for XML Researchers. SIGMOD Record, 31(3):39--46, 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. T. Perst and H. Seidl. Macro Forest Transducers. Information Processing Letters, 89:141--149, 2004.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. J. W. Thatcher and J. B. Wright. Generalized Finite Automata with an Application to a Decision Problem of Second Order Logic. Mathematical Systems Theory, 2:57--82, 1968.]]Google ScholarGoogle ScholarCross RefCross Ref
  34. A. Tozawa. Towards Static Type Inference for XSLT. In ACM Symp. on Document Engineering, pages 18--27, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    PODS '05: Proceedings of the twenty-fourth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
    June 2005
    388 pages
    ISBN:1595930620
    DOI:10.1145/1065167
    • General Chair:
    • Georg Gottlob,
    • Program Chair:
    • Foto Afrati

    Copyright © 2005 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 13 June 2005

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • Article

    Acceptance Rates

    Overall Acceptance Rate642of2,707submissions,24%

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader