You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by ab...@locus.apache.org on 2000/07/14 20:29:50 UTC

cvs commit: xml-stylebook/styles/apachexml/stylesheets document2html.xsl

abagchi     00/07/14 11:29:49

  Modified:    styles/apachexml/stylesheets document2html.xsl
  Log:
  Fixed encoding
  
  Revision  Changes    Path
  1.10      +19 -19    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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- document2html.xsl	2000/06/23 21:24:17	1.9
  +++ document2html.xsl	2000/07/14 18:29:49	1.10
  @@ -13,7 +13,7 @@
     <xsl:template match="s1">
       <html>
         <head>
  -        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  +        <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>
  @@ -154,7 +154,7 @@
               </tr>
             </table>
           </td>
  -      </tr>  
  +      </tr>
         <tr>
           <td width="10">&#160;</td>
           <td width="484">
  @@ -162,7 +162,7 @@
               <xsl:apply-templates/>
             </font>
           </td>
  -      </tr>  
  +      </tr>
       </table>
       <br/>
     </xsl:template>
  @@ -194,7 +194,7 @@
             </tr>
             </table>
           </td>
  -      </tr>  
  +      </tr>
         <tr>
           <td width="10">&#160;</td>
           <td width="474">
  @@ -202,7 +202,7 @@
               <xsl:apply-templates/>
             </font>
           </td>
  -      </tr>  
  +      </tr>
       </table>
       <br/>
     </xsl:template>
  @@ -234,7 +234,7 @@
             </tr>
             </table>
           </td>
  -      </tr>  
  +      </tr>
         <tr>
           <td width="10">&#160;</td>
           <td width="464">
  @@ -242,7 +242,7 @@
               <xsl:apply-templates/>
             </font>
           </td>
  -      </tr>  
  +      </tr>
       </table>
       <br/>
     </xsl:template>
  @@ -267,7 +267,7 @@
               </i>
             </font>
           </td>
  -      </tr>  
  +      </tr>
       </table>
     </xsl:template>
   
  @@ -282,13 +282,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 +344,7 @@
     </xsl:template>
   
     <xsl:template match="td">
  -    <td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top" align="left">
  +    <td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top" align="{@align}">
         <font color="#000000" size="-1" face="arial,helvetica,sanserif">
           <xsl:apply-templates/>&#160;
         </font>
  @@ -367,15 +367,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 -->
   
  @@ -412,7 +412,7 @@
     </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>