
view:element-view-scope( $localname as xs:QName ) as element(*, view:view-scope)
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. |
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'. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.