It's a precedence issue -pot the validate expression inside parentheses. John
-------- Original message -------- From: Florent Georges <li...@fgeorges.org> Date: 15/11/2013 02:03 (GMT+08:00) To: MarkLogic General ML <general@developer.marklogic.com> Subject: [MarkLogic Dev General] (no subject) Hi, The following expression evaluates properly in QConsole, provided that there is a schema in scope with a corresponding element declaration: declare namespace e = "http://example.org/"; validate { <e:example>123</e:example> } The following throws an error though: declare namespace e = "http://example.org/"; validate { <e:example>123</e:example> }/* See the extra "/*" at the end? The error is: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Slash_, expecting $end or SemiColon_ Version: 6.0-4. Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general