Google Search
[ french ]

Table des matières
 Latest News
 An application of the  WCT_NEWS  component
>> Top of page

Data Injection Markup Language Reference

List (or Table) Exploring

Module : Core Groupe : Variables Call

This syntax is very similar to the previous syntax and generates also multiple copies of template-name's content. The automated indexes will roll, just as in the standard vector call. The major difference resides in the control of how many copies will be generated. This statement stands for "as many copies as necessary", wich may stay somewhat confusing.

To determine how many generation will output the effective data in the data arrays used within the template, the processor uses an additional meta variable, such called dimensionning variable. t(his variable has a well-defined key as template-name§C. The dimensionning variable value may be obtained:

  • By explicit affectation within an invoked script (e.g., a script that would extract data from a datastore and calculate how many rows have been retrieved).
  • Transferring value from one of the sub-array dimensionning values, as in the following example:

    <TEMPLATE ID="rows">
    <%set %rows§C% = %table§C% %>

    This assumes the "table" was fully specified.

  • Using explicit DIML affectation (use of the %set or %eval statement).

previous summary next

All material is copyleft V.G. FREMAUX (EISTI France) 1999 to 2003 except explicitly mentioned