MarkLogic - Retrieve documents

declare namespace cms = "http://data.bangtech.com/cms"

default collation="http://marklogic.com/collation/codepoint"

doc("/meta/config.xml")

doc()//cms:meta//cms:case

declare namespace cms = "http://data.bangtech.com/cms"

default collation="http://marklogic.com/collation/codepoint"

define variable $case_id as xs:string external
 
let $case_id := "101"

return
doc()//cms:case[contains(./@id, $case_id)]