OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Comparing XSL and XQuery

[ Lists Home | Date Index | Thread Index ]

XSLT doesn't "compare itself" with XQuery or anything else, but people may
compare the two languages: I did so, for example, in my chapter of "XQuery
from the Experts" published by Addison-Wesley.

In terms of functionality, XQuery 1.0 is essentially XSLT 1.0 without the
template rules. Comparing XQuery 1.0 with XSLT 2.0, XSLT has many additional
features in areas such as regular expression handling, grouping, date
formatting, number formatting, and so on.

In terms of usability, some people find the XML-based syntax of XSLT 1.0
useful and others find it verbose. (And some find it both...)

In terms of performance, the restricted functionality of XQuery relative to
XSLT undoubtedly makes it easier to optimize queries that are intended to
extract small quantities of data from large persistent XML databases. If you
try to use XQuery in XSLT's area of application, namely transformation of
individual in-memory XML documents, then there is no intrinsic reason to
believe that either language will perform better than the other. With
perhaps one exception: XSLT allows you to specify keys, which are in
invaluable aid to speeding up a transformation "by hand"; XQuery has no
equivalent, so it relies much more heavily on the optimizer.

At present on the xsl-list there is a thread discussing an XSLT stylesheet
that demonstrates dramatic differences between one XSLT processor and
another (two orders of magnitude), depending on which optimizations are
applied. It's not going to be easy to identify which performance differences
are due to differences between implementations, and which are attributable
to differences in the two languages.

Michael Kay

# -----Original Message-----
# From: Ram Menon [mailto:menon_dev@hotmail.com] 
# Sent: 21 March 2004 09:30
# To: xml-dev@lists.xml.org
# Subject: [xml-dev] Comparing XSL and XQuery
# 
# I needed to know how XSLT compares itself against XQuery in 
# terms of features, semantics, performance etc...
# Can anybody please point me some information on this.
# 
# - Ram
# 
# _________________________________________________________________
# Join BharatMatrimony.com. 
# http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?72 
# Unmarried? Join Free.
# 
# 
# -----------------------------------------------------------------
# The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
# initiative of OASIS <http://www.oasis-open.org>
# 
# The list archives are at http://lists.xml.org/archives/xml-dev/
# 
# To subscribe or unsubscribe from this list use the subscription
# manager: <http://www.oasis-open.org/mlmanage/index.php>
# 
# 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS