Loading TOC...

lnk:get

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

Summary

Find and return the link between the two documents, if any. This function will check the properties of link and raise an error if they are inconsistent or incomplete in some way.

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:get( "/myDocs/fr/example.xhtml", "/myDocs/example.xhtml" )
  

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