You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by fr...@apache.org on 2001/12/14 02:30:36 UTC

cvs commit: xml-cocoon2/webapp/stylesheets simple-samples2html.xsl

froehlich    01/12/13 17:30:36

  Modified:    webapp/stylesheets simple-samples2html.xsl
  Log:
  Applied patch from Nicola Ken Barozzi [barozzi@nicolaken.com]
  stylesheets changed to look good in Mozilla as in IE.
  
  Revision  Changes    Path
  1.4       +22 -3     xml-cocoon2/webapp/stylesheets/simple-samples2html.xsl
  
  Index: simple-samples2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/simple-samples2html.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- simple-samples2html.xsl	2001/09/26 13:12:01	1.3
  +++ simple-samples2html.xsl	2001/12/14 01:30:36	1.4
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -
  +<!-- Author: Nicola Ken Barozzi "barozzi@nicolaken.com" -->
   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
   
    <xsl:template match="/">
  @@ -38,7 +38,12 @@
         <xsl:variable name="current-sample" select="1 + count(../group[position() &lt;= $group-position]/sample)"/>
         <xsl:choose>
          <xsl:when test="$current-sample &lt;= $half-samples">
  -        <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" width="97%" align="center">
  +       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
  +        <tbody>
  +         <tr>
  +          <td>
  +      
  +        <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center" width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><xsl:value-of select="@name"/></font>
  @@ -52,6 +57,12 @@
             </td>
            </tr>
           </table>
  +        
  +          </td>
  +         </tr>        
  +         </tbody>
  +        </table>
  +        
           <br/>
          </xsl:when>
          <xsl:otherwise></xsl:otherwise>
  @@ -64,7 +75,11 @@
         <xsl:variable name="current-sample" select="1 + count(../group[position() &lt;= $group-position]/sample)"/>
         <xsl:choose>
          <xsl:when test="not($current-sample &lt;= $half-samples)">
  -        <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" width="97%" align="center">
  +       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
  +        <tbody>
  +         <tr>
  +          <td>       
  +        <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center" width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><xsl:value-of select="@name"/></font>
  @@ -77,6 +92,10 @@
              </table>
             </td>
            </tr>
  +        </table>
  +         </td>
  +         </tr>        
  +         </tbody>
           </table>
           <br/>
          </xsl:when>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org