MarkLogic 10 Product Documentation
view:field

view:field(
   $name as xs:string
) as element(view:field)

Summary

This function constructs a new element-style field specification for the named field.

Parameters
name The name of the field.

Example


xquery version "1.0-ml"; 
 
import module namespace view = "http://marklogic.com/xdmp/views" 
      at "/MarkLogic/views.xqy";
 
view:field("Employee")

(: Constructs and element field specification for the "Employee" field. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy