MarkLogic 9 Product Documentation
view:get-bindings

view:get-bindings(
   $schema-name as xs:string,
   $view-name as xs:string
) as map:map

Summary

This function generates a binding map suitable for use with cts:parse from the named view.

Parameters
schema-name The name of the schema.
view-name The name of the view.

Example


xquery version "1.0-ml"; 
 
import module namespace view = "http://marklogic.com/xdmp/views" 
      at "/MarkLogic/views.xqy";
 
view:get-bindings("main", "employees")

(: Returns binging map from the "employees" view. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy