Diff for /Amaya/doc/languages.html between versions 1.41 and 1.42

version 1.41, 2002/01/14 17:06:27 version 1.42, 2002/01/21 08:45:48
Line 16 Line 16
   
 <h4>Translated from French by Ethan Munson</h4>  <h4>Translated from French by Ethan Munson</h4>
   
 <h4>Version of June 30, 2001</h4>  <h4>Version of January 14, 2002</h4>
   
 <p>© 1996-2001 INRIA</p>  <p>© 1996-2002 INRIA</p>
 <hr />  <hr />
 </div>  </div>
   
Line 129 Line 129
             <ul>              <ul>
               <li><small><a href="#sectd42141">Conditions based on the                <li><small><a href="#sectd42141">Conditions based on the
                 logical position of the element</a></small></li>                  logical position of the element</a></small></li>
                 <li><small><a href="#sectd421411">Conditions based on the
                   element type</a></small></li>
               <li><small><a href="#sectd42142">Conditions on                <li><small><a href="#sectd42142">Conditions on
                 references</a></small></li>                  references</a></small></li>
               <li><small><a href="#sectd42143">Conditions on logical                <li><small><a href="#sectd42143">Conditions on logical
Line 3725  rules</a></h3> Line 3727  rules</a></h3>
 certain presentation rules to apply only in certain cases. These conditions  certain presentation rules to apply only in certain cases. These conditions
 can be based on the structural position of the element. They can be based on  can be based on the structural position of the element. They can be based on
 whether the element has references, and what type of references, whether the  whether the element has references, and what type of references, whether the
 element has attributes, whether the element is empty or not, whether the  element has attributes, possibly with certains values, whether the element is
 element is the root of its document or not. They can also be based on the  empty or not, whether the element is the root of its document or not. They
 value of a counter.</p>  can also be based on the value of a counter.</p>
   
 <p>It is possible to specify several conditions which must all be true for  <p>It is possible to specify several conditions which must all be true for
 the rules to apply.</p>  the rules to apply.</p>
Line 3736  the rules to apply.</p> Line 3738  the rules to apply.</p>
 is followed by the sequence of conditions, separated by the <tt>AND</tt>  is followed by the sequence of conditions, separated by the <tt>AND</tt>
 keyword. Each condition is specified by a keyword which defines the condition  keyword. Each condition is specified by a keyword which defines the condition
 type. In some cases, the keyword is followed by other data, which specify the  type. In some cases, the keyword is followed by other data, which specify the
 condition more precisely.</p>  condition more precisely. The keyword is not present if the condition depends
   on the element type or an attribute associated with the element.</p>
   
 <p>An elementary condition can be negative; it is then preceded by the  <p>An elementary condition can be negative; it is then preceded by the
 <tt>NOT</tt> keyword.</p>  <tt>NOT</tt> keyword.</p>
Line 3755  condition type.</p> Line 3758  condition type.</p>
                      ElemID /                       ElemID /
                     'Referred' / 'FirstRef' / 'LastRef' /                      'Referred' / 'FirstRef' / 'LastRef' /
                     'ExternalRef' / 'InternalRef' / 'CopyRef' /                      'ExternalRef' / 'InternalRef' / 'CopyRef' /
                        AttrID [ '=' Value ] /
                     'AnyAttributes' / 'FirstAttr' / 'LastAttr' /                      'AnyAttributes' / 'FirstAttr' / 'LastAttr' /
                     'UserPage' / 'StartPage' / 'ComputedPage' /                      'UserPage' / 'StartPage' / 'ComputedPage' /
                     'Empty' / 'Root' /                      'Empty' / 'Root' /
Line 3764  condition type.</p> Line 3768  condition type.</p>
      GreaterLess   ='&gt;' / '&lt;' .       GreaterLess   ='&gt;' / '&lt;' .
      NParent       = NUMBER.       NParent       = NUMBER.
      ExtStruct     ='(' ElemID ')' .       ExtStruct     ='(' ElemID ')' .
        Value         = [ '-' ] IntegerVal / TextVal / AttrValue .
      CounterCond   ='&lt;' MaxCtrVal / '&gt;' MinCtrVal /       CounterCond   ='&lt;' MaxCtrVal / '&gt;' MinCtrVal /
                     '=' EqCtrVal /                       '=' EqCtrVal / 
                     'IN' '[' ['-'] MinCtrBound '.' '.'                      'IN' '[' ['-'] MinCtrBound '.' '.'
Line 3810  or zero. It can be preceded by <tt>&lt;< Line 3815  or zero. It can be preceded by <tt>&lt;<
 maximum or minimum number of ancestors. If these symbols are missing, the  maximum or minimum number of ancestors. If these symbols are missing, the
 condition is satisfied only if it exists exactly <i>n</i> ancestors. When  condition is satisfied only if it exists exactly <i>n</i> ancestors. When
 this number is missing, it is equivalent to &gt; 0.</p>  this number is missing, it is equivalent to &gt; 0.</p>
   </div>
   
   <div class="subsubsection">
   <h4><a name="sectd421411" id="sectd421411">Conditions based on the element
   type</a></h4>
   
 <p>If the condition applies to presentation rules associated with an  <p>If the condition applies to presentation rules associated with an
 attribute, in the <tt>ATTRIBUTES</tt> section of the presentation schema, the  attribute, in the <tt>ATTRIBUTES</tt> section of the presentation schema, the
Line 3850  attributes</a></h4> Line 3860  attributes</a></h4>
 associated with the element, no matter what the attributes or their values.  associated with the element, no matter what the attributes or their values.
 The <tt>AnyAttributes</tt> keyword expresses this condition.</p>  The <tt>AnyAttributes</tt> keyword expresses this condition.</p>
   
   <p>A condition can also be based on the presence or absence of a given
   attribute associated with the element. This condition is simply expressed by
   the name of the attribute.</p>
   
   <p>The condition can be based on the value of a given attribute. It is then
   expressed by the name of the attribute, followed by the '=' sign and the
   value to be tested. Depending on the type of attribute, the value is simply
   an integer (possibly negative), the name of one of the possible values of the
   attribute or a quoted character string.</p>
   
 <p>If the condition appears in the presentation rules of an attribute, the  <p>If the condition appears in the presentation rules of an attribute, the
 <tt>FirstAttr</tt> and <tt>LastAttr</tt> keywords can be used to indicate  <tt>FirstAttr</tt> and <tt>LastAttr</tt> keywords can be used to indicate
 that the rules must only be applied if this attribute is the first attribute  that the rules must only be applied if this attribute is the first attribute
Line 7946  ConditionElem   = 'First' / 'Last' / Line 7966  ConditionElem   = 'First' / 'Last' /
                    ElemID /                     ElemID /
                   'Referred' / 'FirstRef' / 'LastRef' /                    'Referred' / 'FirstRef' / 'LastRef' /
                   'ExternalRef' / 'InternalRef' / 'CopyRef' /                    'ExternalRef' / 'InternalRef' / 'CopyRef' /
                      AttrID [ '=' Value ] /
                   'AnyAttributes' / 'FirstAttr' / 'LastAttr' /                    'AnyAttributes' / 'FirstAttr' / 'LastAttr' /
                   'UserPage' / 'StartPage' / 'ComputedPage' /                    'UserPage' / 'StartPage' / 'ComputedPage' /
                   'Empty' / 'Root' /                    'Empty' / 'Root' /

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


Webmaster