skip to main content
10.1145/351240.351242acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
Article
Free Access

Regular expression types for XML

Authors Info & Claims
Published:01 September 2000Publication History

ABSTRACT

We propose regular expression types as a foundation for XML processing languages. Regular expression types are a natural generalization of Document Type Definitions (DTDs), describing structures in XML documents using regular expression operators (i.e., *, ?, |, etc.) and supporting a simple but powerful notion of subtyping.The decision problem for the subtype relation is EXPTIME-hard, but it can be checked quite efficiently in many cases of practical interest. The subtyping algorithm developed here is a variant of Aiken and Murphy's set-inclusion constraint solver, to which are added several optimizations and two new properties: (1) our algorithm is provably complete, and (2) it allows a useful "subtagging" relation between nodes with different labels in XML trees.

References

  1. 1.A. Aiken and B. R. Murphy. Implementing regular tree expressions. In J. Hughes, editor, Functional Programming Languages and Computer Architecture1991, volume 523 of Lecture Notes in Computer Science. Springer-Verlag, 1991.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2.A. Aiken and E. L. Wimmers. Solving systems of set constraints (extended abstract). In Proceedings, Seventh Annual IEEE Symposium on Logic in Computer Science, pages 329{340, Santa Cruz, California, 22-25 June 1992. IEEE Computer Society Press.]]Google ScholarGoogle ScholarCross RefCross Ref
  3. 3.R. M. Amadio and L. Cardelli. Subtyping recursive types. ACM Transactions on Programming Languages and Systems, 15(4):575-631, 1993. Preliminary version in POPL '91 (pp. 104-118); also DEC Systems Research Center Research Report number 62, August 1990.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4.Amy Felty, Elsa Gunter, John Hannan, Dale Miller, Gopalan Nadathur and A. Scedrov. Lambda prolog: An extended logic programming language. In E. L. R. Overbeek, editor, Proceedings on the 9th International Conference onAutomated Deduction, volume 310 of LNCS, pages 754-755, Berlin, May 1988. Springer.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.L. Augustsson. Cayenne | a language with dependent types. In Proceedings of the ACM SIGPLAN International Conference onFunctional Programming (ICFP '98), volume 34(1) of ACM SIGPLAN Notices, pages 239-250. ACM, June 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6.M. Brandt and F. Henglein. Coinductive axiomatization of recursive type equality and subtyping. In R. Hindley, editor, Proc. 3d Int'l Conf. on Typed Lambda Calculi and Applications (TLCA), Nancy, France, April 2-4, 1997, volume 1210 of Lecture Notes in Computer Science (LNCS), pages 63-81. Springer-Verlag, Apr. 1997. Full version in Fundamenta Informaticae, Vol. 33, pp. 309-338, 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7.P. Buneman and B. Pierce. Union types for semistructured data. In Proceedings of the International Database Programming Languages Workshop, Sept. 1999. Also available as University of Pennsylvania Dept. of CIS technical report MS-CIS-99-09.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8.S. S. Chawathe. Comparing hierarchical data in external memory. InProceedings of the Twenty-~fth International Conference onVery Large Data Bases, pages 90-101, Edinburgh, Scotland, U.K., Sept. 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.S. Cluet and J. Simeon. Using YAT tobuildaweb server. In Intl. Workshop on the Web and Databases (WebDB), 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10.H. Common, M. Dauchet, R. Gilleron, F. Jacquemard, D. Lugiez, S. Tison, and M. Tommasi. Tree automata techniques and applications. Draft book; available electronically on http:// www.grappa.univ-lille3.fr/tata.]]Google ScholarGoogle Scholar
  11. 11.M. Fahndrich and A. Aiken. Making set-constraint program analyses scale. Technical Report CSD-96-917, University of California, Berkeley, Sept. 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12.V. Gapeyev, M. Levin, and B. Pierce. Recursive subtyping revealed. In Proceedings of the International Conference onFunctional Programming (ICFP), 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. 13.J. E. Hopcroft and J. D. Ullman. Introduction to Automata Theory, Languages, and Computation. Addison-Wesley, 1979.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. 14.H. Hosoya and B. Pierce. Tree automata and pattern matching, July 2000. Available through http:// www.cis.upenn.edu/~hahosoya/papers/ tapat-full.ps.]]Google ScholarGoogle Scholar
  15. 15.H. Hosoya and B. C. Pierce. XDuce: A typed XML processing language. In Proceedings of Third International Workshop on the Web and Databases (WebDB2000), May 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. 16.H. Hosoya, J. Vouillon, and B. C. Pierce. Regular expression types for XML. Technical report, University ofPennsylvania, 2000.]]Google ScholarGoogle Scholar
  17. 17.X. Leroy, J. Vouillon, D. Doligez, et al. The Objective Caml system. Software and documentation available on the Web, http://pauillac.inria.fr/ocaml/, 1996.]]Google ScholarGoogle Scholar
  18. 18.E. Meijer and M. Shields. XMLambda: A Functional Programming Language for Constructing and Manipulating XML Documents. page 13. Submitted to USENIX 2000 Technical Conference.]]Google ScholarGoogle Scholar
  19. 19.T. Milo, D. Suciu, and V. Vianu. Typechecking for XML transformers. In Proceedings of the Nineteenth ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, pages 11-22. ACM, May 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. 20.H. Seidl. Deciding equivalence of ~nite tree automata. SIAM Journal of Computing, 19(3):424-437, June 1990.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. 21.M. Wallace and C. Ranciman. Haskell and XML: Generic combinators or type-based translation? In Proceedings of the Fourth ACM SIGPLAN International Conference onFunctional Programming (ICFP`99), volume 34-9 of ACM Sigplan Notices, pages 148-159, N.Y., Sept. 27-29 1999. ACM Press.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. 22.Extensible markup language (XMLTM). http://www.w3.org/XML/.]]Google ScholarGoogle Scholar
  23. 23.XML Schema Part 0: Primer, W3C Working Draft. http://www.w3.org/TR/xmlschema-0/, 2000.]]Google ScholarGoogle Scholar

Index Terms

  1. Regular expression types for XML

      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
        ICFP '00: Proceedings of the fifth ACM SIGPLAN international conference on Functional programming
        September 2000
        294 pages
        ISBN:1581132026
        DOI:10.1145/351240

        Copyright © 2000 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: 1 September 2000

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        ICFP '00 Paper Acceptance Rate24of110submissions,22%Overall Acceptance Rate333of1,064submissions,31%

        Upcoming Conference

        ICFP '24

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader