################################ # Sample TDL (Experimental) # # DDL1 Dictionary to HTML # ################################ data_pack _context_type PACK loop_ _item_type _item_select _item_apply . . ; Cif Dictionary ; BLOCK 'on_this_dictionary' block_otd . . ;
List of Entries
Details
; BLOCK * block_def . . ;
; data_block_otd loop_ _item_type _item_select _item_apply . . ;
Cif Dictionary [$_dictionary_name]
version: $_dictionary_version ($_dictionary_update)
; data_block_toc_entry _context_type BLOCK loop_ _test_item_type _test_item_select _test_eval_left _test_eval_right _test_action_success _test_action_failure PRIMITIVE '_name' . . @ ! loop_ _item_type _item_select _item_apply . . ;
  • _$name
  • ; data_block_def _context_type BLOCK loop_ _test_item_type _test_item_select _test_eval_left _test_eval_right _test_action_success _test_action_failure PRIMITIVE '_name' . . @ ! loop_ _item_type _item_select _item_apply . . ;
    ***
    ; # LOOP '(_name)' def_names PRIMITIVE '_name' '
    $value
    $nl' LOOP '_name' def_names PRIMITIVE '_definition' '

    ${(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 . . ;
    TOP
    ; data_def_names _context_type LOOP loop_ _item_type _item_select _item_apply . . ; ; ROW * def_names_entry . . ;
    ; data_def_names_entry _context_type LOOPROW loop_ _item_type _item_select _item_apply FIELD '_name' ' $value$nl' data_def_examples _context_type LOOP loop_ _item_type _item_select _item_apply . . ;

    Examples:

    ; ROW * def_examples_entry . . ;
    ExampleDetail
    ; data_def_examples_entry _context_type LOOPROW loop_ _item_type _item_select _item_apply FIELD '_example' '
    $nl${(html_escape value)}$nl
    $nl' # '
    $nl${(cif_markup_to_html value 2)}$nl
    $nl' FIELD '_example_detail' ' $value$nl' data_def_enums _context_type LOOP loop_ _item_type _item_select _item_apply . . ;

    Enumeration values:

    ; ROW * def_enums_entry . . ;
    ValueDetail
    ; data_def_enums_entry _context_type LOOPROW loop_ _item_type _item_select _item_apply FIELD '_enumeration' '
    $value
    $nl' FIELD '_enumeration_detail' ' $value$nl' data_def_conds _context_type LOOP loop_ _item_type _item_select _item_apply . . ;

    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'