Diff for /Amaya/amaya/HTML.trans between versions 1.9 and 1.10

version 1.9, 1997/10/09 12:36:57 version 1.10, 1997/12/10 15:24:43
Line 24 Line 24
 ! The pattern gives of a specific organization of the elements  ! The pattern gives of a specific organization of the elements
 ! to be transformed: it contains HTML tags and SGML-like syntax  ! to be transformed: it contains HTML tags and SGML-like syntax
 ! for the composition operators:  ! for the composition operators:
 !     | for choice  !     e1 | e2   for a choice between elements e1 and e2
 !     , for sibling  !     e1 , e2   for a sequence e1 followed by e2
 !     + for sequence  !     e+        for a sequence of one or more elements e
 !     ? for option  !     ?e        for an optional element e
 !     ( ) for grouping nodes  !     ( )       for grouping nodes
 ! The braces "{" "}" define the content of a node.  ! The braces "{" "}" define the content of a node.
 ! The symbol "*" is a token that matches any element type  ! The symbol "*" is a token that matches any element type
 ! It is possible to rename a tag by preceeding it with a name  ! It is possible to rename a tag by preceeding it with a name
 ! followed by a colon ":"  ! followed by a colon ":"
 !  !
 ! A rule expresses transformations to be applied to the elements   ! A rule expresses transformations to be applied to the elements 
 ! identified in the pattern.  ! identified in the pattern. They have two parts :
 ! A rule has two parts separated by the symbol ">":  !        - a source identifier: a tag or a name which occurs in
 !     - a source tag  !          the pattern and links the rule to the pattern nodes
   !        -  a rule body: drives the transformation
   !  Each rule end with a symbol ";"
   !
   ! there are two kinds of rule bodies:
   ! - A discard rule body is slash and express that the correspoding
   !    pattern node does not occurin the transformation result
   !
   ! - A generation rule begins with
   !     - a symbol ">"
 !     - and a target tag list. This list is itself divided into  !     - and a target tag list. This list is itself divided into
 !       two parts separated by a colon":":   !       two parts separated by a colon":": 
 !         * the generation location path  !         * the generation location path
Line 46 Line 55
 ! if the special token star "*" ends the list of tags to be   ! if the special token star "*" ends the list of tags to be 
 ! generated, the source elment tag is not changed but this element  ! generated, the source elment tag is not changed but this element
 ! can be moved in a different place in the destination.   ! can be moved in a different place in the destination. 
   !
   ! The rules are applied in the order the identifeiers are met when
   ! (depth first) traversing the source structure.
   ! Several rules may have the same identifier, in that case, the rules
   ! are applied in the order they are defined.
   
 ! Transformation rules   ! Transformation rules 
 !!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!
Line 406  DistrThot: BODY{*+} Line 419  DistrThot: BODY{*+}
         BODY > :<TABLE border=0 with="100%">.TBODY.TR.<TD with="30%">.H2.<A href="Index.html">."Home";          BODY > :<TABLE border=0 with="100%">.TBODY.TR.<TD with="30%">.H2.<A href="Index.html">."Home";
         * > TABLE.TBODY.TR:TD.*;          * > TABLE.TBODY.TR:TD.*;
         }          }
   

Removed from v.1.9  
changed lines
  Added in v.1.10


Webmaster