When invoking cts:highlight one can reference any of 5 built-in variables. These variables don't need to be declared, but they are currently treated as unresolved in the IDE.
For example:
cts:highlight(doc('foo.xml'),
"Bar",
if (count($cts:queries) gt 1)
then xdmp:set($cts:action, "continue")
else <match position="{ $cts:start }">{ $cts:node }</match>)
To my knowledge, the built-in variables are not available anywhere outside of the immediate context of cts:highlight.
https://docs.marklogic.com/cts:highlight
When invoking
cts:highlight
one can reference any of 5 built-in variables. These variables don't need to be declared, but they are currently treated as unresolved in the IDE.For example:
To my knowledge, the built-in variables are not available anywhere outside of the immediate context of
cts:highlight
.