Loading TOC...

MarkLogic Server 11.0 Product Documentation
view:get-column

view:get-column(
   $schema-name as xs:string,
   $view-name as xs:string,
   $column-name as xs:string
) as element(view:column)

Summary

This function returns the named column specification set in 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 containing the column specification.
column-name The name of the column specification to be returned.

Example

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

  view:get-column("main", "songs", "title") 

  (: Returns the 'title' column from the 'songs' view in the 'main' schema. :)
     

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