
admin:database-range-element-attribute-index( $scalar-type as xs:string, $parent-namespace as xs:string?, $parent-localname as xs:string, $namespace as xs:string?, $localname as xs:string, $collation as xs:string?, $range-value-positions as xs:boolean, [$invalid-values as xs:string] ) as element(db:range-element-attribute-index)
This function constructs a range element attribute index specification.
  xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"
		  at "/MarkLogic/admin.xqy";
  admin:database-range-element-attribute-index("string", "/my/namespace",
        "elementname", "", "myAtribute", "http://marklogic.com/collation/",
	fn:false() )
  (: returns the range element attribute-index specification :)
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.