This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Collaborative Application Markup Language (CAML) has two major kinds of elements: those for field rendering and schema definition, and those for page (HTML) rendering. The page-rendering CAML elements are designed for use in rendering pages, such as when you need to extract the property of a specific field and render it on a page.
Elements can be used in two ways. Elements such as the Today element are used to generate a text string to be inserted within the page. Other elements are used to modify text generated by their child elements. Elements can also be concatenated to produce a concatenation of their output.
The following table describes some of the prominent CAML HTML-rendering elements.
Used for batch processing of commands within HTTP protocol.
Used inside a Switch or FieldSwitch statement to perform a comparison.
Contains the default value of a field to which new item forms are initialized.
Contains a CAML expression that is evaluated to determine the course of action for a Switch or FieldSwitch statement.
Provides conditional rendering based on the value of a CAML expression.
Provides a basic mechanism for enumerating a collection of views or fields defined in the current list.
Returns a variable in the context of rendering the page.
Returns a string that sets the base element for the current page.
Renders the URL of the virtual server containing the current Web site.
Returns the path to the appropriate OWSSVR.DLL.
Returns the root directory of the current site.
Allows for conditional rendering based on the comparison of two CAML expressions.
Returns the value of a specified column from the database.
Renders the current time.
The top-level element in Onet.xml.
Returns a global property of the current team Web site.
Returns the property from the current ForEach context.
Designates the current list.
Sets variables in the context of rendering the page.
Allows for conditional rendering based on the value of a CAML expression.
Renders today's date.
Renders a URL.
Defines a view in Windows SharePoint Services.
Used as an outer wrapper to denote a section of CAML.