Loading TOC...

MarkLogic Server 11.0 Product Documentation
view.elementViewScope

view.elementViewScope(
   localname as xs.QName
) as element(*, view.viewScope)

Summary

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

For details on view scoping, see Defining View Scope.

Parameters
localname The name of the element on which to define the view scope.

Example

const view = require('/MarkLogic/views');

view.elementViewScope(xs.QName('SONG'));

// Returns the view scope specification for the element, 'SONG'.
   

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