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