admin:database-fragment-parent( $namespace as xs:string?, $localname as xs:string ) as element(db:fragment-parent)
This function constructs a fragment parent specification.
Parameters | |
---|---|
namespace | The namespace URI. Specify an empty string if the element is in no namespace. |
localname | The local name for the node. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $namespace := "my/namespace" let $localname := "some-element-name" return admin:database-fragment-parent($namespace, $localname ) (: returns the fragments parent specification :)