Loading TOC...

cts.validIndexPath

cts.validIndexPath(
   $string as String,
   $ignorens as Boolean
) as 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.validIndexPath("/aaa:a/bbb:b[1]/ccc:c", false);
  => true

Example

  cts.validIndexPath("/a/b[c=/a/b/d]/p", true);
  => false

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy