[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

Michael Kay mhk at mhk.me.uk
Mon Jan 9 13:20:05 PST 2006


  XML Query Test Suite version 0.8.4
> I'm hoping
> to improve error code handling before then in the convertor. The main
> problem is not the error raised or the error message given to 
> the user,
> just the pesky error codes which are different (some of the 
> time) between
> XSLT and XQuery, and xq2xsl raises the XSLT ones, since it's 
> running on
> an XSLT engine... 

Try calling the Saxon method 

configuration.setHostLanguage(Configuration.XQUERY)

No guarantees, but this is used almost exclusively for

(a) deciding whether or not a particular condition is an error (e.g. two
attributes with the same name)

(b) deciding whether to generate the XSLT or XQuery error code

Incidentally I have the same problem with my test driver. Because the test
driver is written in XSLT, Saxon thinks it's in XSLT mode and generates XSLT
error codes. I need to fix that by making the language switch more
fine-grained. When I do that, the above trick may no longer be possible...

Michael Kay
http://www.saxonica.com/




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-2011 All Rights Reserved.