Should I be able to do the following?

for $doc in doc()//some-root-element
let $try := try { validate strict { $doc } } catch ( $e ) { $e }
return $try

The offending line is the second one, and I suspect it is the validate 
statement. But the error message is:

XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected 
ElementContentChars_

Not sure how to read it, but it behaves as if a validate statement is not 
allowed in a FLWOR expression.


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to