view:get-view-scope( $schema-name as xs:string, $view-name as xs:string ) as element(*, view:view-scope)
This function returns the scope of the named view in the named schema.
Parameters | |
---|---|
schema-name | The name of the schema specification containing the view. |
view-name | The name of the view from which to return the scope. |
xquery version "1.0-ml"; import module namespace view = "http://marklogic.com/xdmp/view" at "/MarkLogic/views.xqy"; view:get-view-scope("main", "songs") (: Returns the scope of the 'songs' view in the 'main' schema. :)