crossley    2003/10/03 18:51:58

  Modified:    src/blocks/chaperon/samples/stylesheets quote2page.xsl
  Log:
  Add line numbers to output.
  Tweak the description to show the expected number of lines.
  
  Revision  Changes    Path
  1.2       +8 -6      
cocoon-2.1/src/blocks/chaperon/samples/stylesheets/quote2page.xsl
  
  Index: quote2page.xsl
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/chaperon/samples/stylesheets/quote2page.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- quote2page.xsl    7 May 2003 16:50:40 -0000       1.1
  +++ quote2page.xsl    4 Oct 2003 01:51:58 -0000       1.2
  @@ -15,27 +15,28 @@
        <title>Stock quote</title>
   
        <p>
  -      The Comma-Separated Values (CSV) file is three months of end-of-day
  +      The example Comma-Separated Values (CSV) file is three months of 
end-of-day
         data for one particular stock symbol (data such as that obtained from
         <a href="http://finance.yahoo.com/";>Yahoo Finance</a>).
  -      Here are the first five lines of input ...
        </p>
  -     <pre>
  ---------------------------------------------
  +     <p>
  +      Here are the first 5 lines (total 64) of the input file ...
  +     </p>
  +     <pre>--------------------------------------------
   20021101,0.11,0.11,0.11,0.11,74000
   20021104,0.11,0.11,0.1,0.105,1166900
   20021105,0.1,0.105,0.1,0.105,759670
   20021106,0.1,0.105,0.1,0.105,101000
   20021107,0.105,0.105,0.097,0.097,808230
   ...
  ---------------------------------------------
  -     </pre>
  +--------------------------------------------</pre>
        <p>
         After processing with the Lexer Transformer and the Parser Transformer,
         here is the result ...
        </p>
        <table cellpadding="3" border="1">
         <tr>
  +       <th>Line #</th>
          <th>Date</th>
          <th>Open</th>
          <th>High</th>
  @@ -52,6 +53,7 @@
   
    <xsl:template match="st:row">
     <tr>
  +   <td><xsl:number/></td>
      <xsl:apply-templates select="st:Value"/>
     </tr>
    </xsl:template>
  
  
  

Reply via email to