MarkLogic 10 Product Documentation
view:element-view-scope

view:element-view-scope(
   $localname as xs:QName
) as element(*, view:view-scope)

Summary

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

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

Parameters
localname The name of the element on which 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:element-view-scope(xs:QName("SONG"))

  (: Returns the view scope specification for the element, 'SONG'. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy