I believe that is a query parser bug. I have filed a bug on your behalf, #11472.
Thanks, Mark -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Florent Georges Sent: Friday, August 13, 2010 6:25 AM To: MarkLogic General ML Subject: [MarkLogic Dev General] Bug in the query parser? Hi, On the following query: declare function local:f() as document-node(element(e))* { fn:collection('...') }; local:f() I get the error "(err:XPST0003) Unexpected token syntax error, unexpected Multiply_, expecting External_ or Lbrace_". Note it does occur only with '*' (not with '?', '+' or nothing). Works fine also if I remove the "element(e)" in the NodeKind. xdmp:version() returns 4.1-6. Regards, -- Florent Georges http://fgeorges.org/ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
