Google Search
[ french ]

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

Data Injection Markup Language Reference

Variable Call In A Vector

Module : Core Group : Variables Call

Syntax 1


Syntax 2

<%%implicit-list-name[] scalar-formatters%%>

A DIML variable can be considered as a vector if data it contains are stored into scalar variables which key adopt the following syntax:

variable-name§n, variable-name§n-1 ... , variable-name§0

e.g. :

<%set %MONTH§0%="January" %>
<%set %MONTH§1%="February" %>
<%set %MONTH§2%="March" %>
<%set %MONTH§11%="December" %>

Such a vector is associated by the DIML to metavariables that may have automated behaviour:

  • The automated index associated to this vector: variable-name§I.
  • The dimensionning variable (that gives the upper range for valid data), variable-name§C, optional.

The above syntax retrieves the value corresponding to the actual value of the automate dindex associated to the vector. the general form for this call is:

variable_name[]  variable_name[ variable_name§I ]

Although this kind of statement can be called in the "mian sequence" of a DIML document, it will have more utility in a template definition, that will further be called iteratively. Very short and concises forms of tabular data exploration can be achieved.

scalar-formatters: This statement has scalar resolution, formatting attributes of the basic scalar call are applicable.

previous summary next

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