Project

Profile

Help

parcel function in XQuery 4 not found: license issue or query issue?

Added by Martin Honnen over 2 years ago

My first attempt to use the parcel function in XQuery version 4.0 with SaxonCS EE fails with an error

Static error on line 8 column 33 of parcel-as-context-item1.xq: XPST0017 Cannot find a 1-argument function named Q{http://www.w3.org/2005/xpath-functions}parcel() Cannot find a 1-argument function named Q{http://www.w3.org/2005/xpath-functions}parcel()

xquery version "4.0";

declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";

declare option output:method 'adaptive';
declare option output:indent 'yes';

declare context item := parcel(1 to 3);

[.]

I am currently not sure whether that is a general restriction of the current SaxonCS release or whether it is related to running it with a valid but specialized Saxon EE-T license.

Any thoughts?


Replies (1)

RE: parcel function in XQuery 4 not found: license issue or query issue? - Added by Michael Kay over 2 years ago

This was essentially the same problem as https://saxonica.plan.io/issues/5117 and is now resolved.

For example:

query
  -qs:"parcel(1 to 3)"
  --allowSyntaxExtensions:on
  -qversion:4.0
  !method=adaptive
    (1-1/1)

    Please register to reply