[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XML Query Test Suite version 0.8.4

David Carlisle davidc at nag.co.uk
Wed Jan 11 14:49:26 PST 2006


optional axis queries

> Try calling the Saxon method 
> configuration.setHostLanguage(Configuration.XQUERY)

Thanks for this, but on reflection I think I won't do that and will
either do nothing or write some code to explictly convert the xslt codes
to xquery ones.

Doing as you suggest would clearly be more efficient, but it is taking
advantage of the fact that saxon has an xquery implementation, and
if I wanted to take advantage of that, I'd just evaluate the xquery in 
saxon directly:-)

Currently I think the main point of the xq2xsl xquery implementation is
as an explicit, implemented, mapping between the two languages, and for
that purpose some boring code mapping one bunch of 8 character strings
to another is probably as much a part of the mapping as some code
mapping FLWOR to xsl:for-each.

xq2xsl is in some ways just a largish example of more general
transformations-on-queries that one might want to do, another smaller
example in the same distribution being the transformation to rewrite any
of the optional axis steps.


xq2xsl tries to produce reasonable xslt code from a given xquery and so
it may prove yet to be a feasible implementation of Xquery in
environments where XSLT2 is supported but XQuery is not, but currently I
don't know of any such environments. Currently if I want to execute an
Xquery for real I use your implementation not mine...

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.