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