admin:database-path-field( $field-name as xs:string, $field-paths as element(db:field-path)+ ) as element(db:field)
This function constructs a field specification that has field paths.
Parameters | |
---|---|
field-name | The name of the field. |
field-paths | The field paths specification, typically the result of one or more calls for admin:database-field-path. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $field-name := "myField" let $field-paths := admin:database-field-path("/a/b", xs:double(2.0)) return admin:database-path-field($field-name,$field-paths)