bloritsch    01/02/05 21:06:12

  Modified:    webapp/stylesheets Tag: xml-cocoon2 simple-samples2html.xsl
  Log:
  Fixed anoying issue with repeated cell on samples page.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.7   +5 -5      
xml-cocoon/webapp/stylesheets/Attic/simple-samples2html.xsl
  
  Index: simple-samples2html.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/webapp/stylesheets/Attic/simple-samples2html.xsl,v
  retrieving revision 1.1.2.6
  retrieving revision 1.1.2.7
  diff -u -r1.1.2.6 -r1.1.2.7
  --- simple-samples2html.xsl   2000/09/22 20:07:44     1.1.2.6
  +++ simple-samples2html.xsl   2001/02/06 05:06:11     1.1.2.7
  @@ -5,20 +5,20 @@
    <xsl:template match="/">
     <html>
      <head>
  -    <title>Apache Cocoon @version@</title>
  +    <title>Apache Cocoon 2.0a3</title>
      </head>
      <body bgcolor="#ffffff" link="#0086b2" vlink="#00698c" alink="#743e75">
       <p align="center"><font size="+0" face="arial,helvetica,sanserif" 
color="#000000">The Apache Software Foundation is proud to present...</font></p>
   
       <p align="center"><img border="0" src="images/cocoon.gif"/></p>
   
  -    <p align="center"><font size="+0" face="arial,helvetica,sanserif" 
color="#000000"><b>version @version@</b></font></p>
  +    <p align="center"><font size="+0" face="arial,helvetica,sanserif" 
color="#000000"><b>version 2.0a3</b></font></p>
   
       <xsl:apply-templates/>
   
       <p align="center">
        <font size="-1">
  -      Copyright &#169; @year@ <a href="http://www.apache.org";>The Apache 
Software Foundation</a>.<br/>
  +      Copyright &#169; 1999-2000 <a href="http://www.apache.org";>The Apache 
Software Foundation</a>.<br/>
         All rights reserved.
        </font>
       </p>
  @@ -28,7 +28,7 @@
   
    <xsl:template match="samples">
     <xsl:variable name="t-size" select="count(group)"/>
  -  <xsl:variable name="half" select="ceiling($t-size div 2)"/>
  +  <xsl:variable name="half" select="round($t-size div 2)"/>
       
     <table width="100%">
      <tr>
  @@ -61,7 +61,7 @@
        <xsl:for-each select="group">  <!-- [position()<=$half] -->
         <xsl:variable name="here" select="position()"/>
         <xsl:choose>
  -       <xsl:when test="../group[$here>=$half]">
  +       <xsl:when test="../group[$here>$half]">
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" 
width="97%" align="center">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
  
  
  

Reply via email to