cts-search

Checking absence of attribute with cts:query

杀马特。学长 韩版系。学妹 提交于 2020-01-24 08:50:06
问题 I have an XML fragment where I want to have different queries based in the existence of the id attribute: <author order="1" id="99999999" initials="A." given-names="Able" surname="Baker" fullname="Able Baker"/> I have tried: let $first-query := if ($first) then cts:or-query(( cts:element-attribute-word-match(xs:QName("author"), xs:QName("given-names"), $first || "*", ("collation=http://marklogic.com/collation/codepoint")), cts:element-attribute-word-match(xs:QName("author"), xs:QName(

How to search the given text into marklogic XHTML file, like clt+f

一个人想着一个人 提交于 2019-12-13 04:52:41
问题 I have below XHTML file saved in the marklogic with the URI(/54ab8c234f3c8ce1f5c30ddc). I need to search the Marklogic DB based on the string (if it is tag name or attribute name or text in the XHTML). I am able to search only text either attribute. But not able to search at a time all. Note: if I pass "SS_Default"(it is a attribute value) string it will return the URI of marklogic or if I pass the "META" (it is a tag name) it should return the corresponding URIs or if I pass "Narrowed by"(it