Hi everyone,

 

let $facet := cts:element-values(xs:QName("Lookup"), "",
("item-frequency",
"collation=http://marklogic.com/collation/en/S1/AS/T0020";),
cts:element-attribute-range-query(xs:QName("Lookup"),xs:QName("minorType
"),"=","scientificTags",('collation=http://marklogic.com/collation/en/S1
/AS/T0020')))

return

for $i in $facet 

let $count := cts:frequency($i) 

where fn:not(fn:replace($i, ' ','') = '') 

order by $count descending 

return $i

 

The above code returns everything with the element "Lookup," but how can
I filter based on if the attribute, "minorType" equals the word
"scientificTags"?

 

Thanks in advance

Dj

 

Djaun Maclin

Product Manager

WATT Knowledge * Solutions * Success

Office: 815-966-5539

Mobile: 815-608-7653

Email: dmac...@wattnet.net <mailto:dmac...@wattnet.net> 

Web: www.wattnet.com <http://www.wattnet.com> 

 

This e-mail and any attachment may contain confidential and privileged
material intended for the addressee only. If you are not the addressee,
you are notified that no part of the e-mail or any attachment may be
disclosed, copied or distributed, and that any other action related to
this e-mail or attachment is strictly prohibited, and may be unlawful.
If you have received this e-mail by error, please notify the sender
immediately by return e-mail, and delete this message. WATT Publishing
Co. and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt. 

 

_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to