MarkLogic 9 Product Documentation
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. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy