Skip to main content

CSP Elements and Mark-Up Language

The following table describes some of the different types of CSP elements and mark-up that you can add to your CSP mark-up file at design time:

CSP Expressions
Element Description

Runtime Expression. Expr is any Caché Basic or ObjectScript expression. The Caché Server evaluates the expression when it executes the page. The result of the evaluation is then inserted into the page's output.


Compile-time Expression. Expr is any ObjectScript expression (note that it cannot be a Caché Basic expression). The Caché Compiler evaluates the expression when it compiles the CSP Page class. When executed, the page inserts the result into its output.

CSP Scripts and Mark-Up Language
Element Description

<script language=("CACHE"|"BASIC") runat="Server">

ObjectScript or Basic Code


CSP Script. You can insert several lines of code into a page between <script></script> tags. The Caché Server executes the code at runtime and the result is included in the page's output.

<script language=("CACHE"|"BASIC") method="" arguments="" returntype="">

ObjectScript or Basic Code


CSP Method. You can use this syntax to define a method within a CSP document. You supply the method name, argument list, and return type. The method can be called elsewhere in the page, for example, by a CSP Expression or CSP Script. The code can be either Caché Basic or ObjectScript.

CSP mark-up language constists of a set of tags that execute code either during generation of the HTML page or compilation of the CSP page. These tags can be used, for example, to control the flow of page execution and provide access to data.

FeedbackOpens in a new tab