xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
declare variable $totalhosts := xdmp:host-name(xdmp:group-
hosts(xdmp:group()));
for $h in $totalhosts
let $ind := fn:index-of($h, 2)
return $h[$ind]
如果我在某处输入代码
let $ind :=2
然后我
return $h[$ind]
它应该返回值index ind=2
请帮助我该怎么做