|
next
|
Subject: Re: XQuery Author: (Deleted User) Date: 03 Oct 2006 03:14 PM
|
Hi David,
anySimpleType is a type defined in the XMLSchema namespace, so you
can use whatever prefix has been associated to that namespace (XQuery
automatically associate "xs" with that namespace, so xs:anySimpleType
is always correct).
So I guess the error you were getting was caused by the context in
which the type was used; can you post the query so that we can
understand the real error?
As for anyAtomicType, it was initially defined in a XQuery-specific
namespace that was automatically associated with the "xdt" prefix;
however, in the latest version of the specs it has been decided to
move it to the XMLSchema namespace, so now you could also use
xs:anyAtomicType (in order to help users, several XQuery
implementation decided to keep defining the "xdt" prefix, making it
an alias for "xs").
Coming to your final question, the underlying problem is that the
XQuery specs have not yet reached the Recommendation status, so all
the material published until now has been based on Working Draft
documents; for example, the "XQuery from the experts" book is aligned
with the May 2003 release.
The good news is that the XQuery specs have now reached the Candidate
Recommendation phase, and that means that there will be no more
changes in the syntax; both Saxon and the built-in processor
implement this version, so you directly use the official W3C
documents to learn the syntax.
XQuery 1.0 language: http://www.w3.org/TR/xquery/
XPath 2.0/XQuery 1.0 functions: http://www.w3.org/TR/xpath-functions/
Hope this helps,
Alberto
|
|
|
|