lnk:remove

lnk:remove(
   $from as xs:string,
   $to as xs:string
) as element(lnk:link)

Summary

Remove the link between the two given documents and return the removed link. An error is raised if no such link exists.

Parameters
from The URI of the document at the tail of the link.
to The URI of the document at the head of the link.

Example

  xquery version "1.0-ml";
  import module namespace lnk = "http://marklogic.com/cpf/links" 
		  at "/MarkLogic/cpf/links.xqy";

  lnk:remove( "/myDocs/example.xhtml", "/myDocs/example.doc" )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy