StaXML: Static Typing of XML Document Fragments for Imperative Web Scripting Languages


Autoria(s): Kfoury, Assaf J.; Bradley, Adam D.; Bestavros, Azer
Data(s)

20/10/2011

20/10/2011

13/02/2004

Resumo

We present a type system, StaXML, which employs the stacked type syntax to represent essential aspects of the potential roles of XML fragments to the structure of complete XML documents. The simplest application of this system is to enforce well-formedness upon the construction of XML documents without requiring the use of templates or balanced "gap plugging" operators; this allows it to be applied to programs written according to common imperative web scripting idioms, particularly the echoing of unbalanced XML fragments to an output buffer. The system can be extended to verify particular XML applications such as XHTML and identifying individual XML tags constructed from their lexical components. We also present StaXML for PHP, a prototype precompiler for the PHP4 scripting language which infers StaXML types for expressions without assistance from the programmer.

National Science Foundation (ANI-9986397, CCR-9988529, ITR-0113193, ANI-0205294, EIA-0202067)

Identificador

http://hdl.handle.net/2144/1535

Idioma(s)

en_US

Publicador

Boston University Computer Science Department

Relação

BUCS Technical Reports;BUCS-TR-2004-007

Tipo

Technical Report