Advertisement

A Prototype for Translating XQuery Expressions into XSLT Stylesheets

  • Niklas Klein
  • Sven Groppe
  • Stefan Böttcher
  • Le Gruenwald
Part of the Lecture Notes in Computer Science book series (LNCS, volume 3631)

Abstract

The need for a user-friendly query language becomes increasingly important since the introduction of XML. The W3C developed XQuery for the purpose of querying XML data, but XQuery is not available in every tool. Because of historical reasons, many tools only support processing XSLT stylesheets. It is desirable to use tools with XQuery, the design goals of which are, among other goals, to be more human readable and to be less error-prone than XSLT. Instead of implementing XQuery support for every tool, we propose to use an XQuery to XSLT translator. Following this idea, XQuery will be available for all tools, which currently support XSLT stylesheets. In this paper, we propose a translator which transforms XQuery expressions into XSLT stylesheets and we analyze the performance of the translation and XSLT processing in comparison to native XQuery processing.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    apache.org. Cocoon (2004), http://cocoon.apache.org
  2. 2.
    apache.org. Xalan (2004), http://xml.apache.org/xalan-j
  3. 3.
    Fernandez, M., Robie, J. (eds.): XQuery 1.0 and XPath 2.0 Data Model. W3C Working Draft (June 2001), http://www.w3.org/TR/2001/WD-query-datamodel/
  4. 4.
    Hors, A.L., Hegaret, P.L., Nicol, G., Robie, J., Champion, M., Byrne, S. (eds.): Document Object Model (DOM) Level 2 Core Specification Version 1.0. W3C Recommendation (November 2000), http://www.w3.org/TR/DOM-Level-2-Core/
  5. 5.
    Kay, M.H.: Saxon (2004), http://saxon.sourceforge.net
  6. 6.
    Lechner, S., Preuner, G., Schrefl, M.: Translating XQueryinto XSLT. In: Revised Papers from the HUMACS, DASWIS, ECOMO, and DAMA on ER 2001 Workshops, pp. 239–252. Springer, Heidelberg (2002)Google Scholar
  7. 7.
    Lenz, E.: XQuery: Reinventing the Wheel? (2004), http://www.xmlportfolio.com/xquery.html
  8. 8.
    Microsoft. Biztalk (2004), http://www.biztalk.org/
  9. 9.
    qexo.org. Qexo (2004), http://www.gnu.org/software/qexo
  10. 10.
    Schmidt, A., Waas, F., Manolescu, I., Kersten, M., Carey, M.J., Busse, B.: XMark: A benchmark for XML data management. In: Proc. of the 28th International Conference on Very Large Data Bases (VLDB 2002), Hong Kong, China, July 02 (2002)Google Scholar
  11. 11.
    W3C. XSL Transformations (XSLT) (2003), http://www.w3.org/TR/xslt
  12. 12.
    W3C. XML Query (2004), http://www.w3.org/XML/Query

Copyright information

© Springer-Verlag Berlin Heidelberg 2005

Authors and Affiliations

  • Niklas Klein
    • 1
  • Sven Groppe
    • 1
  • Stefan Böttcher
    • 1
  • Le Gruenwald
    • 2
  1. 1.University of PaderbornPaderbornGermany
  2. 2.School of Computer ScienceUniversity of OklahomaNorman, OklahomaU.S.A

Personalised recommendations