Loading TOC...

MarkLogic 10 Product Documentation
lnk:from

lnk:from(
   $from as xs:string
) as element(lnk:link)*

Summary

Find and return all the links from the given document to some other. This function will check the properties of the 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.

Example

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

  for $link in lnk:from( "/myDocs/example.xhtml" )
  return $link/@to
  

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