Loading TOC...

admin:database-fragment-parent

admin:database-fragment-parent(
   $namespace as xs:string?,
   $localname as xs:string
) as element(db:fragment-parent)

Summary

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.

Example


  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 :)
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.