Acta Informatica

, Volume 42, Issue 6–7, pp 515–539 | Cite as

Equivalences and optimizations in an expressive XSLT subset

  • Alberto Trombetta
  • Danilo Montesi
Original Article


XML is the standard data interchange format and XSLT is the W3C proposed standard for transforming and restructuring XML documents. It turns out that XSLT has very powerful query capabilities as well. Hovewer, due to its complex syntax and lack of formal specification, it is not a trivial task to decide whether two XSLT stylesheets yield the same result, even if for an XSLT subset. We isolate such fragment, powerful enough for expressing several interesting queries and for manipulating XML documents and show how to translate them into queries expressed in a properly extended version of TAX, a powerful XML query algebra, for which we provide a collection of equivalence rules. It is then possible to reason about XSLT equivalences, by translating XSLT stylesheets into XTAX expressions and then statically verifying their equivalence, by means of the mentioned equivalence rules.


Pattern Tree Template Match Equivalence Rule Translation Rule Terminal Symbol 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Bex, G.J., Maneth, S., Neven, F.: A formal model for an expressive fragment of XSLT. In: Proc. of Int'l Conf. on Computational Logic. London (2000)Google Scholar
  2. 2.
    Boag, S., Chamberlin, D., Fernandez, M.F., Florescu, D., Robie, J., Siméon, J.: XQuery 1.0. An XML Query Language. (2003)
  3. 3.
    Bray, T., Paoli, J., Sperberg-MCQueen, C. M., Maler, E.: Extensible Markup Language (XML) Specification 1.0 (second edition). (2000)
  4. 4.
    Chamberlin, D., Fankhauser, P., Florescu, D., Marchiori, M., Robie, J.: XML Query Use Cases. (2002)
  5. 5.
    Clark, J.: XSL Transformations (XSLT). 116/ (1999)
  6. 6.
    Comon, H., Dauchet, M., Gilleron, R., Jacquemard, F., Lugiez, D., Tison, S., Tommasi, M.: Tree Automata Techniques and Applications, available at (2002)
  7. 7.
    Jagadish, H.V., Lakshmanan, L.V.S., Srivastava, D., Thompson, K.: TAX: a tree algebra for XML. In: Proc. of DBPL 2001, pp. 149–164. Rome (2001)Google Scholar
  8. 8.
    Katz, H., Chamberlin, D., Draper, D. et al.: XQuery from the Experts: A Guide to the W3C XML Query Language. Addison Wesley (2003)Google Scholar
  9. 9.
    Kirchner, C., Qian, Z., Singh, P.K., Stuber, J.: Xemantics: a rewriting calculus-based semantics of XSLT. Loria rapport de recherche A01-R-386 (2002)Google Scholar
  10. 10.
    Liu, J., Vincent, M.: Query translation from XSLT to SQL. In: Proc. IDEAS'03, pp. 87–96. Hong Kong (2003)Google Scholar
  11. 11.
    Tidwell, D.: XSLT. O'Reilly & Associates (2001)Google Scholar
  12. 12.
    Trombetta, A., Montesi, D.: Equivalences and optimizations in an expressive XSLT fragment. In Proc. IDEAS'04, pp. 171–182. Coimbra (2004)Google Scholar
  13. 13.
    Wadler, P.: A Formal Semantics of Patterns in XSLT. Markup Languages. MIT Press (2001)Google Scholar

Copyright information

© Springer-Verlag 2005

Authors and Affiliations

  1. 1.Dipartimento di Informatica e ComunicazioneUniversità degli Studi dell'InsubriaVareseItaly
  2. 2.Dipartimento di InformaticaUniversità degli Studi di BolognaBolognaItaly

Personalised recommendations