cts.validExtractPath( string as String, [map as Object?] ) as Boolean
Parses path expressions and resolves namespaces using the $map parameter.
Returns true
if the argument is permissible as a path for
extract-path option in extract-document-data
cts.validExtractPath("/foo/bar[@baz = '1']") => true
cts.validExtractPath("/ns1:foo/ns1:bar[@baz = '1']",{ns1:"http://example.org/myns"}) => true
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.