Type-based Specialization of Xml Transformations

Kazutaka Matsuda,Zhenjiang Hu,Masato Takeichi
DOI: https://doi.org/10.1145/1480945.1480955
2009-01-01
Abstract:It is often convenient to write a function and apply it to a specific input. However, a program developed in this way may be inefficient to evaluate and difficult to analyze due to its generality. In this paper, we propose a technique of new specialization for a class of XML transformations, in which no output of a function can be decomposed or traversed. Our specialization is type-based in the sense that it uses the structures of input types; types are described by regular hedge grammars and subtyping is defined set-theoretically. The specialization always terminates, resulting in a program where every function is fully specialized and only accepts its rigid input. We present several interesting applications of our new specialization, especially for injectivity analysis.
What problem does this paper attempt to address?