Norman Walsh <[email protected]> writes:
> FWIW, I cut and paste the following prolog into all my queries.
>
>   xquery version "1.0-ml";
>
>   declare default function namespace "http://www.w3.org/2005/xpath-functions";;
>
>   declare option xdmp:mapping "false"; 
>
> The first line assures I'm using standard XQuery (with useful extensions :-),
> the second assures that function names in no namespace will be the functions
> I expect, and the third assures that I don't trip over this, uh, feature:
> https://lists.marklogic.com/thread/b37nfkh6exdyf5li

Oh, bother. I thought I was pointing into the archives of the public
list, but apparently I wasn't. Mea culpa.

Function mapping, which that third line disables, is described in Section
3.11 of the release notes for MarkLogic Server V4.0,
http://developer.marklogic.com/pubs/4.0/books/relnotes.pdf

  3.11 Function Mapping 

  Function mapping is an extension to XQuery that allows you to pass a
  sequence to a function parameter that is typed to take a singleton
  item, and it will invoke that function once for each item in the
  sequence. Function mapping is enabled by default in 1.0-ml, and can
  be enabled with a prolog declaration in 1.0 (or disabled with a
  prolog declaration in 1.0-ml). Function mapping is not available in
  0.9-ml.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Principal Technologist
Mark Logic Corporation
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to