################################ # Sample TDL (Experimental) # # DDL1 Dictionary to HTML # ################################ data_pack _context_type PACK loop_ _item_type _item_select _item_apply . . ;
$value |
${(cif_markup_to_html value 2)}
$nl' PRIMITIVE '_category' 'Category: $value
$nl' PRIMITIVE '_type' 'Type: $value
$nl' PRIMITIVE '_type_construct' 'Type construct: $value
$nl' PRIMITIVE '_type_conditions' 'Type conditions: $value
$nl' LOOP '_type_conditions' def_conds PRIMITIVE '_units' 'Units: $value
$nl' PRIMITIVE '_units_detail' 'Units detail: $value
$nl' PRIMITIVE '_list' 'List: $value
$nl' PRIMITIVE '_list_mandatory' 'List mandatory: $value
$nl' PRIMITIVE '_list_reference' 'List reference: $value
$nl' # LOOP PRIMITIVE '_list_uniqueness' 'List uniqueness: $value
$nl' # LOOP PRIMITIVE '_list_link_parent' 'Link parent: $value
$nl' # LOOP PRIMITIVE '_list_link_child' 'Link child: $value
$nl' LOOP '_list_link_child' def_children PRIMITIVE '_related_item' 'Related item: $value' PRIMITIVE '_related_function' ' ($value)
$nl' LOOP '_related_item' def_related PRIMITIVE '_enumeration_default' 'Default value: $value
$nl' PRIMITIVE '_enumeration_range' 'Range: [$value]
$nl' # LOOP LOOP '_enumeration' def_enums PRIMITIVE '_example' ;Example:
${(html_escape value)}; PRIMITIVE '_example_detail' ;
$value
; LOOP '_example' def_examples . . ;Examples:
Example | Detail |
---|
$nl${(html_escape value)}$nl
$nl${(cif_markup_to_html value 2)}$nl
Enumeration values:
Value | Detail |
---|
$value
Type conditions: ; ROW * def_conds_entry . . ;
; data_def_conds_entry _context_type LOOPROW loop_ _item_type _item_select _item_apply FIELD '_type_conditions' ' $value$nl' data_def_related _context_type LOOP loop_ _item_type _item_select _item_apply . . ;Related items: ; ROW * def_related_entry . . ;
; data_def_related_entry _context_type LOOPROW loop_ _item_type _item_select _item_apply FIELD '_related_item' ' $value$nl' FIELD '_related_function' ' ($value)$nl' data_def_children _context_type LOOP loop_ _item_type _item_select _item_apply . . ;Link children: ; ROW * def_children_entry . . ;
; data_def_children_entry _context_type LOOPROW loop_ _item_type _item_select _item_apply FIELD '_list_link_child' ' $value$nl'