Diff for /Amaya/amaya/Template.S between versions 1.41 and 1.42

version 1.41, 2009/08/17 15:28:52 version 1.42, 2009/08/18 14:33:16
Line 20  CONST Line 20  CONST
   
 STRUCT  STRUCT
   
   Template ( ATTR version = TEXT; templateVersion = TEXT ) = LIST OF (TemplateObject);    Template (ATTR version = TEXT; templateVersion = TEXT) = LIST OF (Declaration) + (head);
     Declaration = CASE OF
   DOCTYPE = LIST OF (DOCTYPE_line = TEXT);      component;
       union;
       import;
       Comment\240;
       XMLPI;
       END;
   
   TemplateObject = CASE OF    TemplateObject = CASE OF
       head;      repeat;
       repeat;      useEl;
       {option;}      useSimple;
       useEl;      bag;
       useSimple;      attribute;
       bag;  
       attribute;  
     END + (Comment\240, XMLPI);      END + (Comment\240, XMLPI);
   
   head ( ATTR version; templateVersion ) =     head ( ATTR version; templateVersion ) = LIST OF (Declaration);
     LIST OF ( Declaration = CASE OF  
       component;  
       union;  
       import;  
     END  
    );  
   
   Comment\240 = LIST OF (Comment_line = TEXT) - (Comment\240);    DOCTYPE = LIST OF (DOCTYPE_line = TEXT);
       Comment\240 = LIST OF (Comment_line = TEXT);
   XMLPI (ATTR is_css = Text) = LIST OF (PI_line = TEXT);    XMLPI (ATTR is_css = Text) = LIST OF (PI_line = TEXT);
   
   component ( ATTR name = TEXT ) = ANY - ( head, union, import );    component (ATTR name = TEXT) = ANY - (head, union, import);
   union ( ATTR name; includeAt = TEXT; exclude = TEXT ) = CONSTANT C_CR; {It is always empty}    union (ATTR name; includeAt = TEXT; exclude = TEXT)
   import ( ATTR src = TEXT ) = CONSTANT C_CR; {It is always empty}          = CONSTANT C_CR; {It is always empty}
     import (ATTR src = TEXT) = CONSTANT C_CR; {It is always empty}
   repeat ( ATTR title = TEXT; minOccurs = TEXT; maxOccurs = TEXT) =  
         LIST OF ( Repetition =    repeat ( ATTR title = TEXT; minOccurs = TEXT; maxOccurs = TEXT) = LIST OF (Repetition);
                   CASE OF    Repetition = TemplateObject - (repeat);
                     useEl;  
         useSimple;    useEl (ATTR option = option_set, option_unset; title; types = TEXT;
                 {option;}           currentType = TEXT;  prompt = Yes_)
                     repeat;          = ANY - (head, union, import, component);
                     bag;  
                     END);    useSimple (ATTR option; title; types; currentType; prompt) = ANY - (head, union, import, component);
   
     bag (ATTR title; types) = LIST OF (ANY) - (head, union, import, component);
   {option ( ATTR title )  
         = ANY - ( head, union, import, component );}    attribute (ATTR ref_name = TEXT; type = number, string, listVal; 
                  useAt = required, optional, prohibited; defaultAt = TEXT; 
   useEl ( ATTR option = option_set, option_unset; title; types = TEXT; currentType = TEXT;  prompt = Yes_ )               fixed = TEXT; values = TEXT)
      = ANY - ( head, union, import, component );              = CONSTANT C_CR; {It is always empty}
   
   useSimple ( ATTR option; title; types; currentType; prompt)  
      = ANY - ( head, union, import, component );  
   
   bag ( ATTR title; types )   
      =  LIST OF (ANY) - ( head, union, import, component );  
   
   attribute ( ATTR   
     ref_name = TEXT;   
     type = number, string, listVal;   
     useAt = required, optional, prohibited;  
     defaultAt = TEXT;   
     fixed = TEXT;   
     values = TEXT;  
     ) = CONSTANT C_CR; {It is always empty}  
   
 EXCEPT  EXCEPT
   XMLPI:             ReturnCreateNL, NoSpellCheck, NoReplicate, NotAnElementNode;    XMLPI:             ReturnCreateNL, NoSpellCheck, NoReplicate, NotAnElementNode;

Removed from v.1.41  
changed lines
  Added in v.1.42


Webmaster