froehlich    01/12/13 17:30:36

  Modified:    webapp/stylesheets simple-samples2html.xsl
  Log:
  Applied patch from Nicola Ken Barozzi [[EMAIL PROTECTED]]
  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 "[EMAIL PROTECTED]" -->
   <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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to