I am working on the MarkLogic Query Console. My XQuery file is not working properly and I am facing this error MarkLogic Xquery request error:
XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Dollar_"
This is the code that I am executing:
declare function fill:getA() as node()* {
for $projectId in /cf:Project/@Id/string()
$s := fill:getS($projectId)
$t := fill:getT($projectId)