University Trier
Abstract:
XML is originally designed for the use in document processing. Every classical document processing system supports a mechanism which is called macro. In general, a macro is a named collection of actions. These actions are executed whenever the name of the macro appears in a document instance. We describe a very small but powerful macro language for XML. The presented language supports macros with arguments. As a main result we will show that for a macro expansion H and a recognizable set R the set H-1(R) of trees t, whose macro expansion H(t) are in R, is recognizable. This implies that the typechecking problem for macro expansion is decidable. A major drawback of this approach is the time complexity. Therefore we designed a practical typechecking discipline. We equip every macro definition with a type expression describing the input forests. On the basis of this type information the macro processor computes an output type for the macro. Having inferred this output type, we aim at extending the given output DTD to a DTD for admissible input possibly containing
Citations
| 2770 | Introduction to Automata Theory, Language, and Computation – Hopcroft, Ullman - 1979 |
| 491 | The Definition of Standard ML (Revised – Milner, Tofte, et al. - 1997 |
| 335 | ML for the working programmer – Paulson - 1991 |
| 53 | Semistructured Data and XML – Suciu - 1998 |
| 40 | XMλ: A Functional Language for Constructing and Manipulating XML Documents – Meijer, Shields - 1999 |
| 17 | Format Evolution – Lämmel, Lohmann - 2001 |
| 15 | Extensible Markup Language (XML) 1.0 (Second Edition – W3C - 2000 |
| 10 | Parsing and Querying XMLDocuments in SML – Neumann - 1999 |
| 1 | Suciu and Victor Vianu. Typechecking for XML Transformers – Milo, Dan - 2002 |
| 1 | löp and Heiko Vogler. Syntax-Directed Semantics -- Formal Models Based on Tree Transducers – Zoltán - 1998 |
| 1 | E-mail Explained Available online http://www.sendmail.org/email-explained.html – Beck |
| 1 | fxmacro Available online http://www.informatik.uni-trier.de/~perst/fxmacro – Perst |
| 1 | SXML as a higher-order markup language – Kiselyov - 2001 |

