Loading TOC...

view:collection-view-scope

view:collection-view-scope(
   $collection as xs:string
) as element(*, view:view-scope)

Summary

This function constructs a new collection-style view scope specification.

For details on view scoping, see Defining View Scope in the SQL Data Modeling Guide.

Parameters
collection The name of the collection to define the view scope.

Example

  xquery version "1.0-ml"; 
 
  import module namespace view = "http://marklogic.com/xdmp/view" 
      at "/MarkLogic/views.xqy";
 
  view:collection-view-scope("http://marklogic.com/xdmp/view/songs")

  (: Returns a collection-style view scope specification. :)
     

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