Well, the short answer is that fn:distinct-nodes() was dropped from the
final version of "XQuery 1.0 and XPath 2.0 Functions and Operators", as
you can verify by comparing the version used by MarkLogic 0.9-ml

http://www.w3.org/TR/2003/WD-xpath-functions-20030502/#quickref

with the current version

http://www.w3.org/TR/xpath-functions/

so it's a W3C XQuery thing, not a MarkLogic thing. (And I have no idea
why the function was dropped.) Priscilla Walmsely provides a user
function that looks like a substitute for fn:distinct-nodes():

http://www.xqueryfunctions.com/xq/functx_distinct-nodes.html

On Mon, 1 Jun 2009, Paul Vanderveen wrote:

> There is a reference to the 'distinct-nodes' function in the
> documentation with a comment that it is only supported in XQuery version
> 0.9-ml.   If I try to use this function I get an error saying it's not
> recognized.   I have come across a couple of situations that seem to be
> an ideal fit for this function.  Although I've been able to implement
> them, the result is a rather convoluted use of 'distinct-values'.   I
> also see some references in the archived mailing list that refer to the
> use of this function as well, and those examples are exactly the sort of
> thing I'm trying to solve.   I'm wondering why this function was only in
> 0.9-ml, why it was discontinued, and if there's a good replacement for
> it.
>
>

-- 
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: [email protected]   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to