cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dles...@apache.org
Subject cvs commit: xml-stylebook/styles/apachexml/stylesheets document2html.xsl
Date Fri, 04 May 2001 20:30:09 GMT
dleslie     01/05/04 13:30:08

  Modified:    styles/apachexml/stylesheets document2html.xsl
  Log:
  New document2html.xsl, which adds
  <br clear="all> after images.
  
  Revision  Changes    Path
  1.11      +20 -20    xml-stylebook/styles/apachexml/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-stylebook/styles/apachexml/stylesheets/document2html.xsl,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- document2html.xsl	2000/07/14 18:29:49	1.10
  +++ document2html.xsl	2001/05/04 20:30:05	1.11
  @@ -13,7 +13,6 @@
     <xsl:template match="s1">
       <html>
         <head>
  -        <meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
           <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
           <title><xsl:value-of select="@title"/></title>
         </head>
  @@ -97,7 +96,7 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="document|faqs|changes|group|container">
  +  <xsl:template match="document|faqs|changes|group">
       <xsl:if test="@id=$id">
         <img src="graphics/{@id}-label-1.jpg" width="120" height="12" hspace="0" vspace="0"
border="0" alt="{@label}"/>
       </xsl:if>
  @@ -154,7 +153,7 @@
               </tr>
             </table>
           </td>
  -      </tr>
  +      </tr>  
         <tr>
           <td width="10">&#160;</td>
           <td width="484">
  @@ -162,7 +161,7 @@
               <xsl:apply-templates/>
             </font>
           </td>
  -      </tr>
  +      </tr>  
       </table>
       <br/>
     </xsl:template>
  @@ -194,7 +193,7 @@
             </tr>
             </table>
           </td>
  -      </tr>
  +      </tr>  
         <tr>
           <td width="10">&#160;</td>
           <td width="474">
  @@ -202,7 +201,7 @@
               <xsl:apply-templates/>
             </font>
           </td>
  -      </tr>
  +      </tr>  
       </table>
       <br/>
     </xsl:template>
  @@ -234,7 +233,7 @@
             </tr>
             </table>
           </td>
  -      </tr>
  +      </tr>  
         <tr>
           <td width="10">&#160;</td>
           <td width="464">
  @@ -242,7 +241,7 @@
               <xsl:apply-templates/>
             </font>
           </td>
  -      </tr>
  +      </tr>  
       </table>
       <br/>
     </xsl:template>
  @@ -267,7 +266,7 @@
               </i>
             </font>
           </td>
  -      </tr>
  +      </tr>  
       </table>
     </xsl:template>
   
  @@ -282,13 +281,13 @@
     <xsl:template match="li">
       <li><xsl:apply-templates/></li>
     </xsl:template>
  -
  +  
       <!--Definition lists: gloss, term, label, item -->
     <xsl:template match="gloss">
       <dl><xsl:apply-templates/></dl>
     </xsl:template>
  -   <!-- <term> contains a single-word, multi-word or symbolic
  -       designation which is regarded as a technical term. -->
  +   <!-- <term> contains a single-word, multi-word or symbolic 
  +       designation which is regarded as a technical term. --> 
     <xsl:template match="term">
       <dfn><xsl:apply-templates/></dfn>
     </xsl:template>
  @@ -344,7 +343,7 @@
     </xsl:template>
   
     <xsl:template match="td">
  -    <td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top" align="{@align}">
  +    <td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top" align="left">
         <font color="#000000" size="-1" face="arial,helvetica,sanserif">
           <xsl:apply-templates/>&#160;
         </font>
  @@ -367,15 +366,15 @@
     <xsl:template match="ref">
       <i><xsl:apply-templates/></i>
     </xsl:template>
  -
  +  
     <xsl:template match="code">
       <code><font face="courier, monospaced"><xsl:apply-templates/></font></code>
     </xsl:template>
  -
  +  
     <xsl:template match="br">
       <br/>
     </xsl:template>
  -
  +  
   <!-- ###################################################################### -->
   <!-- links -->
   
  @@ -409,10 +408,11 @@
   
     <xsl:template match="img">
       <img src="images/{@src}" border="0" vspace="4" hspace="4" align="right"/>
  +    <br clear="all"/>
     </xsl:template>
   
     <xsl:template match="resource-ref">
  -    <xsl:variable name="resourceFile"
  +    <xsl:variable name="resourceFile" 
             select="document($stylebook.project)/book/resources/@source"/>
       <xsl:variable name="xref" select="@idref"/>
       <xsl:variable name="href"
  @@ -423,13 +423,13 @@
     </xsl:template>
   
     <xsl:template match="human-resource-ref">
  -    <xsl:variable name="resourceFile"
  -          select="document($stylebook.project)/book/resources/@source"/>
  +    <xsl:variable name="resourceFile" 
  +          select="document($stylebook.project)/book/resources/@source"/>  
       <xsl:variable name="ref"  select="@idref"/>
       <xsl:variable name="mailto"
             select="document($resourceFile)/resources/human-resource[@id=$ref]/@mailto"/>
      <xsl:variable name="name"
  -          select="document($resourceFile)/resources/human-resource[@id=$ref]/@name"/>
  +          select="document($resourceFile)/resources/human-resource[@id=$ref]/@name"/>
                         
       <A href="mailto:{$mailto}"><xsl:value-of select="$name"/></A>
     </xsl:template>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message