ComputingComputer ScienceAlgorithmsProgramming LanguagesSoftware EngineeringAbstract Syntax TreesData-flow AnalysisIntermediate RepresentationType CheckingType SystemsData Type InferenceFinite Automata TheorySource DocumentsStatic Type CheckingTree AutomataType InferenceXml Data ModelsXml Parsing
We are concerned about the static type checking problem for XSLT. In the context of XSLT and other XML programming, types are DTDs or schemas, and static type checking is to verify that a program always converts valid source documents into also valid output documents. To achieve static type checking for XSLT, we introduce a subset of XSLT, and an efficient algorithm of backward type inference for that subset. Although our XSLT subset lacks XPath, it includes recursive calls of templates and is powerful enough to capture basic XSLT transformations. Our method is based on Finite Tree Automata (FTA) which provide a rigorous representation of types in XML. Given types of output documents, backward type inference computes types of source documents. The idea of backward type inference is borrowed from Milo et al's work, while we reduce the computational complexity in their framework.
8
Tree automata techniques and applications
Hubert Comon, Max Dauchet, Florent Jacquemard et al. · 1997 · 1.2K citations · Full text
Alternating automata on infinite trees
David E. Muller, Paul E. Schupp · Theoretical Computer Science · 1987 · 242 citations
Typechecking for XML transformers
Tova Milo, Dan Suciu, Victor Vianu · 2000 · 156 citations · Full text
Regular expression pattern matching for XML
Haruo Hosoya, Benjamin C. Pierce · 2001 · 132 citations · Full text