MarkLogic 10 Product Documentation
cts:valid-index-path

cts:valid-index-path(
   $string as xs:string,
   $ignorens as xs:boolean
) as xs:boolean

Summary

Parses path expressions and resolves namespaces based on the server run-time environment. Returns true if the argument is permissible as a path for indexing.

Parameters
string The path to be tested as a string.
ignorens Ignore namespace prefix binding errors.

Example

  cts:valid-index-path("/aaa:a/bbb:b[1]/ccc:c",fn:false())
  => true

Example

  cts:valid-index-path("/a/b[c=/a/b/d]/p",fn:true())
  => false
Powered by MarkLogic Server | Terms of Use | Privacy Policy