geirm       02/04/17 12:44:24

  Modified:    xdocs    Tag: VEL_1_3_BRANCH user-guide.xml
               docs     Tag: VEL_1_3_BRANCH user-guide.html
  Log:
  Update to 1.3 branch, doc fix
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.62.2.1  +3 -40     jakarta-velocity/xdocs/user-guide.xml
  
  Index: user-guide.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/xdocs/user-guide.xml,v
  retrieving revision 1.62
  retrieving revision 1.62.2.1
  diff -u -r1.62 -r1.62.2.1
  --- user-guide.xml    15 Mar 2002 00:07:46 -0000      1.62
  +++ user-guide.xml    17 Apr 2002 19:44:23 -0000      1.62.2.1
  @@ -675,8 +675,8 @@
   <source><![CDATA[
   foo
   $email
  +\foo
   \$email
  -\\$email
   ]]></source>
   
     <p>
  @@ -1841,8 +1841,8 @@
   
     <p>
       When a division operation is performed, the result will be an
  -    integer. Any remainder can be obtained by using the remainder
  -    (<em>%</em>) operand.
  +    integer. Any remainder can be obtained by using the modulus
  +    (<em>%</em>) operator.
     </p>
   
   <source><![CDATA[
  @@ -1853,43 +1853,6 @@
       Only integers (...-2, -1, 0, 1, 2...) are permissible when
       performing mathematical equations in Velocity; when a non-integer is
       used, it is logged and a null will be returned as the output.
  -  </p>
  -
  -  <p>
  -    Velocity has a built-in way of dealing with division by zero. In the
  -    following example:
  -  </p>
  -
  -<source><![CDATA[
  -#set( $foo = 5 )
  -#set( $bar = $foo - 5 )
  -#set( $uhoh = $foo / $bar )
  -$uhoh
  -]]></source>
  -
  -  <p>
  -    The reference <em>$uhoh</em> is assigned the value of five divided
  -    by zero. When Velocity renders this template, the output will be:
  -  </p>
  -
  -<source><![CDATA[
  -$uhoh
  -]]></source>
  -
  -  <p>
  -    Designers should note that <em>set</em> produces strings, which
  -    must be converted to integers to be used by the range operator.
  -    This example shows such a conversion:
  -  </p>
  -
  -<source><![CDATA[
  -#set($a = "7")
  -#set($b = $int.valueOf($a) + 10)
  -$b
  -]]></source>
  -
  -  <p>
  -    Yields the result <em>17</em>.
     </p>
   
     </subsection>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.69.2.1  +3 -87     jakarta-velocity/docs/user-guide.html
  
  Index: user-guide.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/user-guide.html,v
  retrieving revision 1.69
  retrieving revision 1.69.2.1
  diff -u -r1.69 -r1.69.2.1
  --- user-guide.html   15 Mar 2002 00:07:45 -0000      1.69
  +++ user-guide.html   17 Apr 2002 19:44:23 -0000      1.69.2.1
  @@ -1191,8 +1191,8 @@
         <td bgcolor="#ffffff"><pre>
   foo
   $email
  +\foo
   \$email
  -\\$email
   </pre></td>
         <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
       </tr>
  @@ -3282,8 +3282,8 @@
       </div>
                                                   <p>
       When a division operation is performed, the result will be an
  -    integer. Any remainder can be obtained by using the remainder
  -    (<em>%</em>) operand.
  +    integer. Any remainder can be obtained by using the modulus
  +    (<em>%</em>) operator.
     </p>
                                                       <div align="left">
       <table cellspacing="4" cellpadding="0" border="0">
  @@ -3310,90 +3310,6 @@
       Only integers (...-2, -1, 0, 1, 2...) are permissible when
       performing mathematical equations in Velocity; when a non-integer is
       used, it is logged and a null will be returned as the output.
  -  </p>
  -                                                <p>
  -    Velocity has a built-in way of dealing with division by zero. In the
  -    following example:
  -  </p>
  -                                                    <div align="left">
  -    <table cellspacing="4" cellpadding="0" border="0">
  -    <tr>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#ffffff"><pre>
  -#set( $foo = 5 )
  -#set( $bar = $foo - 5 )
  -#set( $uhoh = $foo / $bar )
  -$uhoh
  -</pre></td>
  -      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    </table>
  -    </div>
  -                                                <p>
  -    The reference <em>$uhoh</em> is assigned the value of five divided
  -    by zero. When Velocity renders this template, the output will be:
  -  </p>
  -                                                    <div align="left">
  -    <table cellspacing="4" cellpadding="0" border="0">
  -    <tr>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#ffffff"><pre>
  -$uhoh
  -</pre></td>
  -      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    </table>
  -    </div>
  -                                                <p>
  -    Designers should note that <em>set</em> produces strings, which
  -    must be converted to integers to be used by the range operator.
  -    This example shows such a conversion:
  -  </p>
  -                                                    <div align="left">
  -    <table cellspacing="4" cellpadding="0" border="0">
  -    <tr>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#ffffff"><pre>
  -#set($a = &quot;7&quot;)
  -#set($b = $int.valueOf($a) + 10)
  -$b
  -</pre></td>
  -      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" 
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    </table>
  -    </div>
  -                                                <p>
  -    Yields the result <em>17</em>.
     </p>
                               </blockquote>
         </td></tr>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to