skip to main content
10.1145/1030397.1030436acmconferencesArticle/Chapter ViewAbstractPublication PagesdocengConference Proceedingsconference-collections
Article

On modular transformation of structural content

Published:28 October 2004Publication History

ABSTRACT

We show that an XML DTD (Document Type Definition) can be viewed as the fixed point of a parametric content model. Based on the parametric content model, we develop a model of modular transformation of XML documents. A fold operator is used to capture a class of functions that consume valid XML document trees in a bottom-up matter. Similarly, an unfold operator is used to generate valid XML document trees in a top-down fashion. We then show that DTD-aware XML document transformation, which consumes a document of one DTD and generates a document of another DTD, can be thought as both a fold operation and an unfold operation.

This leads us to model certain DTD-aware document transformations by mappings from the source content models to the target content models. From these mappings, we derive DTD-aware XML document transformational programs. Benefits of such derived programs include automatic validation of the target documents (no invalid document will be generated) and modular property in the composition of these programs (intermediate results from successive transformations can be eliminated).

References

  1. Document Object Model (DOM) Level 1 Specification. http://www.w3.org/TR/REC-DOM-Level-1/.]]Google ScholarGoogle Scholar
  2. RELAX NG Specification. http://www.oasis-open.org/committees/relax-ng/spec-20011203.html.]]Google ScholarGoogle Scholar
  3. The Caml Language. http://caml.inria.fr.]]Google ScholarGoogle Scholar
  4. XML Schema Part 0: Primer. http://www.w3.org/TR/xmlschema-0/.]]Google ScholarGoogle Scholar
  5. Extase Akpotsui, Vincent Quint, and Cécile Roisin. Type modelling for document transformation in structured editing systems. Mathematical and Computer Modelling, 25(4):1--19, 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Roland Backhouse, Patrick Jansson, Johan Jeuring, and Lambert Meertens. Generic programming: An introduction. In Advanced Functional Programming, 3rd Int'l School. 1999.]]Google ScholarGoogle Scholar
  7. Richard Bird. An introduction to the theory of lists. In Logic of Programming and Calculi of Discrete Design. Springer--Verlag, 1987.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Richard Bird and Oege de Moor. Algebra of Programming. Prentice Hall, 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Don Chamberlin, Jonathan Robie, and Daniela Florescu. Quilt: An XML query language for heterogeneous data source. In Proc. of the 3rd Int'l Workshop on the Web and Databases. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Tyng--Ruey Chuang. Generic validation of structural content with parametric modules. In Proc. of the 2001 ACM SIGPLAN Int'l Conference on Functional Programming. 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Tyng--Ruey Chuang and Jan--Li Lin. On modular transformation of structural content. Technical Report TR-IIS-003-007, Institute of Information Science, Academia Sinica. 2003.]]Google ScholarGoogle Scholar
  12. Mary Fernandez, Jerome Simeon, and Philip Wadler. An algebra for XML query. In Foundations of Software Technology and Theoretical Computer Science: 20th Conference. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Haruo Hosoya and Benjamin C. Pierce. XDuce: A typed XML processing language. In Proc. of 3rd Int'l Workshop on the Web and Databases. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Haruo Hosoya, Jérôme Vouillon, and Benjamin C. Pierce. Regular expression types for XML. In Proc. of the Int'l Conference on Functional Programming. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Eila Kuikka, Paul Leinonen, and Martti Penttonen. Towards automating of document structure transformations. In 2nd ACM Int'l Conference on Document Engineering. 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Eila Kuikka and Martti Penttonen. Transformation of structured documents. Technical Report CS-95-46, Department of Computer Science, University of Waterloo, Canada, 1995.]]Google ScholarGoogle Scholar
  17. Saunders Mac Lane. Categories for The Working Mathematician. Springer-Verlag, 1971.]]Google ScholarGoogle ScholarCross RefCross Ref
  18. Lambert Meertens. Algorithmics --- towards programming as a mathematical activity. In Proc. of the CWI Symposium on Mathematics and Computer Science. 1986.]]Google ScholarGoogle Scholar
  19. Erik Meijer, Maarten Fokkinga, and Ross Paterson. Functional programming with bananas, lenses, envelopes and bared wire. In Functional Programming Languages and Computer Architecture. 1991.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Tova Milo, Dan Suciu, and Victor Vianu. Typechecking for xml transformers. In Proc. of the 19th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems. 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Makoto Murata. Transformation of documents and schemas by patterns and contextual conditions. In 3rd Int'l Workshop on Principles of Document Processing. 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Makoto Murata. Data models for document transformation and assembly. In Workshop on Principles of Digital Document Processing. 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Emmanuel Pietriga, Jean-Yves Vion-Dury, and Vincent Quint. VXT: A visual approach to xml transformations. In 1st ACM Int'l Conference on Document Engineering. 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Philip Wadler. Theorems for free. In Functional Programming Languages and Computer Architecture. 1989.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. On modular transformation of structural content

        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
          DocEng '04: Proceedings of the 2004 ACM symposium on Document engineering
          October 2004
          252 pages
          ISBN:1581139381
          DOI:10.1145/1030397

          Copyright © 2004 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: 28 October 2004

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • Article

          Acceptance Rates

          Overall Acceptance Rate178of537submissions,33%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader