[MarkLogic Dev General] Problem with default XQuery version
Danny Sokolsky
dsokolsky at marklogic.com
Mon Jan 26 14:31:29 PST 2009
Is it possible that your XCC/Java program is running some other query
(maybe one that is expecting to run as 0.9-ml, but is defaulting to
1.0-ml in your setup)? What does your XCC program look like?
-Danny
-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of David
Sewell
Sent: Monday, January 26, 2009 1:58 PM
To: General XQZone Discussion
Subject: [MarkLogic Dev General] Problem with default XQuery version
Just discovered something odd, running MarkLogic on a system where we
have upgraded from ML 3.2 to ML 4.0.
I created a new XDBC server, and instead of using our previous default
XQuery version of 0.9-ml, I set the default version to 1.0-ml.
Now any query I run against the server, even "Hello world", throws an
error:
XDMP-UNDTYP: (err:XPTY0004) Undefined type xdt:untypedAtomic
This happens no matter what "xquery version" I declare in the query
prologue.
If I change the server setting to use default version 0.9-ml, no
problem, and I can run 1.0-ml syntax queries by declaring that version
in the query.
So... something is happening before my code is even evaluated to throw
an error. Anyone know what's going on? (Clearly this is connected to the
namespace change from xdt: to xs: for the untypedAtomic datatype in
XQuery 1.0, but how?)
--
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: dsewell at virginia.edu Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
More information about the General
mailing list