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

Dynamic context default values

Martin Probst martin at x-hive.com
Wed Feb 7 19:16:40 PST 2007


  Dynamic context default values
>> Actually X-Hive is failing several tests because it's not possible to
>> run an XQuery that does not have an initial context node.
>
> ..but in that case XPDY0002 should be raised, right? Are you saying  
> that there
> is tests that rely on a context without setting it, or that X-Hive  
> can't
> arbitrarily set the default context which some tests requires?

In X-Hive it's impossible to have an XQuery that does not have a  
context node. You always create an XQuery on a DOM Node, or on a  
Library/Document node, and so all queries have an initial context  
node. This means that a query in XQTS like simply "root()" (which is  
supposed to fail as it doesn't have a context node) will always  
succeed in X-Hive. So the XQTS test cases that expect a failure there  
are not reproducible in X-Hive/DB.

Martin

-- 
Martin Probst
X-Hive Corporation
http://x-query.com/mailman/listinfo/talk




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.