admin:database-element-reference( $scalar-type as xs:string, $namespace as xs:string?, $localname as xs:string, $collation as xs:string? ) as element(db:element-reference)
This function greated a db:element-reference specification.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:database-element-reference("int", "", "element-name", "") => <element-reference xmlns="http://marklogic.com/xdmp/database"> <scalar-type>int</scalar-type> <namespace-uri/> <localname>element-name</localname> <collation/> </element-reference>