joerg       2003/11/27 12:52:16

  Modified:    src/documentation/stylesheets site2xhtml.xsl
                        document2html.xsl
  Log:
  indentation, little clean up
  
  Revision  Changes    Path
  1.2       +73 -87    cocoon-2.1/src/documentation/stylesheets/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/documentation/stylesheets/site2xhtml.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- site2xhtml.xsl    9 Mar 2003 00:07:31 -0000       1.1
  +++ site2xhtml.xsl    27 Nov 2003 20:52:16 -0000      1.2
  @@ -1,19 +1,19 @@
   <?xml version="1.0"?>
   
  -<xsl:stylesheet
  -    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  -    version="1.0">
  -
  -     <xsl:param name="header"/>
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  +     
  +  <xsl:param name="header"/>
   
  -<xsl:template match="/">
  -<html>
  +  <xsl:template match="/">
  +    <html>
         <head>
  -        <title><xsl:value-of select="/site/document/title"/></title>
  -<STYLE type="text/css">
  +        <title>
  +          <xsl:value-of select="/site/document/title"/>
  +        </title>
  +        <style type="text/css">
   a.menu {
        color: #FFFFFF;
  -    text-align:left;               
  +    text-align:left;
       font-size:12px;
       font-family: Verdana, Arial, Helvetica, sans-serif;
       font-weight:plain;
  @@ -21,14 +21,13 @@
       padding-left: 14px
   }
   
  -A.menu:hover {
  +a.menu:hover {
        color: #FFCC00
   }
   
  -
   .menutitle {
        color: #000000;
  -    text-align:left;               
  +    text-align:left;
       font-size:10px;
       font-family: Verdana, Arial, Helvetica, sans-serif;
       font-weight:bold;
  @@ -36,121 +35,108 @@
   }
   .menuselected {
        color: #FFCC00;
  -    text-align:left;               
  +    text-align:left;
       font-size:12px;
       font-family: Verdana, Arial, Helvetica, sans-serif;
       font-weight:bold;
       padding-left: 14px
   }
  -</STYLE>     
  +        </style>
         </head>
   
  -      <body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000"
  -            topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
  -            bgcolor="#ffffff">
  +      <body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000" 
topmargin="4" leftmargin="4" marginwidth="4" marginheight="4" bgcolor="#ffffff">
           <!-- THE TOP BAR (HEADER) -->
           <table width="100%" cellspacing="0" cellpadding="0" border="0">
             <tr>
               <td width="135" height="60" rowspan="3" valign="top" 
align="left">
                 <img width="135" height="60" src="images/logo.gif" hspace="0" 
vspace="0" border="0"/>
               </td>
  -            <td width="100%" height="0" valign="top" align="left" 
colSpan="2" rowspan="1" background="images/line.gif">
  -            </td>
  -            <td width="29" height="60"  rowspan="3" valign="top" 
align="left">
  +            <td width="100%" height="0" valign="top" align="left" 
colSpan="2" rowspan="1" background="images/line.gif"></td>
  +            <td width="29" height="60" rowspan="3" valign="top" align="left">
                 <img width="29" height="60" src="images/right.gif" hspace="0" 
vspace="0" border="0"/>
               </td>
             </tr>
             <tr>
               <td width="100%" height="35" valign="top" align="right" 
colspan="2" bgcolor="#0086b2">
  -              <font size="5" face="Verdana, Arial, Helvetica, sans-serif" 
color="#ffffff"><xsl:value-of select="/site/document/title"/></font>
  +              <font size="5" face="Verdana, Arial, Helvetica, sans-serif" 
color="#ffffff">
  +                <xsl:value-of select="/site/document/title"/>
  +              </font>
               </td>
             </tr>
             <tr>
               <td align="right" bgcolor="#0086b2" height="20" valign="top" 
width="100%" colspan="2" background="images/bottom.gif">
  -               <table border="0" cellpadding="0" cellspacing="0" width="288">
  +              <table border="0" cellpadding="0" cellspacing="0" width="288">
                   <tr>
                     <td width="96" height="20" valign="top" align="left">
                       <a href="http://xml.apache.org/"; target="new">
  -                      <img alt="http://xml.apache.org/"; width="96" 
height="20"
  -                           src="images/button-xml-lo.gif"
  -                           name="xml" hspace="0" vspace="0" border="0"/>
  +                      <img alt="http://xml.apache.org/"; width="96" 
height="20" src="images/button-xml-lo.gif" name="xml" hspace="0" vspace="0" 
border="0"/>
                       </a>
                     </td>
                     <td width="96" height="20" valign="top" align="left">
                       <a href="http://www.apache.org/"; target="new">
  -                      <img alt="http://www.apache.org/"; width="96" 
height="20"
  -                           src="images/button-asf-lo.gif"
  -                           name="asf" hspace="0" vspace="0" border="0"/>
  +                      <img alt="http://www.apache.org/"; width="96" 
height="20" src="images/button-asf-lo.gif" name="asf" hspace="0" vspace="0" 
border="0"/>
                       </a>
                     </td>
                     <td width="96" height="20" valign="top" align="left">
                       <a href="http://www.w3.org/"; target="new">
  -                      <img alt="http://www.w3.org/"; width="96" height="20"
  -                           src="images/button-w3c-lo.gif"
  -                           name="w3c" hspace="0" vspace="0" border="0"/>
  +                      <img alt="http://www.w3.org/"; width="96" height="20" 
src="images/button-w3c-lo.gif" name="w3c" hspace="0" vspace="0" border="0"/>
                       </a>
                     </td>
                   </tr>
  -              </table>              
  +              </table>
               </td>
             </tr>
           </table>
   
  -<table border="0" cellpadding="0" cellspacing="0" width="100%">
  -     <tr width="100%">
  -     
  -
  -            
  +        <table border="0" cellpadding="0" cellspacing="0" width="100%">
  +          <tr width="100%">
                <!-- THE SIDE BAR -->
  -                     <td width="120" valign="top" align="left"> 
  -                     <table bgcolor="#a0a0a0" border="0" cellpadding="0" 
cellspacing="0" width="120">
  -                           <tr>
  -                                     <td align="left" valign="top">
  -                                             <img border="0" height="14" 
hspace="0" src="images/join.gif" vspace="0" width="120"/>
  -                                             <br/>
  -                                     </td>
  -                             </tr>
  -                             <xsl:copy-of select="/site/menu/node()|@*"/>
  -                             <tr>
  -                                     <td valign="top" align="left">
  -                                             <img border="0" height="14" 
hspace="0" src="images/close.gif" vspace="0" width="120"/>
  -                                             <br/>
  -                                     </td>
  -                             </tr>
  -                     </table>
  -             </td>
  -
  -             
  -         <!-- THE CONTENTS -->
  -             <td>
  -                     <table border="0" cellpadding="0" cellspacing="15">
  -                             <tr><td><xsl:copy-of 
select="/site/document/body/node()|@*"/></td></tr>
  -                     </table>
  -             </td>
  -             
  -             
  -     </tr>
  -</table>
  - 
  - 
  -            
  -<table border="0" cellpadding="0" cellspacing="0" width="100%">
  -  <tr>
  -    <td bgcolor="#0086b2">
  -      <img height="1" src="images/dot.gif" width="1"/>
  -    </td>
  -  </tr>
  -  <tr>
  -    <td align="center">
  -      <font color="#0086b2" face="arial,helvetica,sanserif" size="-1">
  -        <i>Copyright &#169; 1999-2003 The Apache Software Foundation. All 
Rights Reserved.</i>
  -      </font>
  -    </td>
  -  </tr>
  -</table>
  -</body>
  +            <td width="120" valign="top" align="left">
  +              <table bgcolor="#a0a0a0" border="0" cellpadding="0" 
cellspacing="0" width="120">
  +                <tr>
  +                  <td align="left" valign="top">
  +                    <img border="0" height="14" hspace="0" 
src="images/join.gif" vspace="0" width="120"/>
  +                    <br/>
  +                  </td>
  +                </tr>
  +                <xsl:copy-of select="/site/menu/node()"/>
  +                <tr>
  +                  <td valign="top" align="left">
  +                    <img border="0" height="14" hspace="0" 
src="images/close.gif" vspace="0" width="120"/>
  +                    <br/>
  +                  </td>
  +                </tr>
  +              </table>
  +            </td>
  +            <!-- THE CONTENTS -->
  +            <td>
  +              <table border="0" cellpadding="0" cellspacing="15">
  +                <tr>
  +                  <td>
  +                    <xsl:copy-of select="/site/document/body/node()"/>
  +                  </td>
  +                </tr>
  +              </table>
  +            </td>
  +          </tr>
  +        </table>
   
  +        <table border="0" cellpadding="0" cellspacing="0" width="100%">
  +          <tr>
  +            <td bgcolor="#0086b2">
  +              <img height="1" src="images/dot.gif" width="1"/>
  +            </td>
  +          </tr>
  +          <tr>
  +            <td align="center">
  +              <font color="#0086b2" face="arial,helvetica,sanserif" 
size="-1">
  +                <i>Copyright &#169; 1999-2003 The Apache Software 
Foundation. All Rights Reserved.</i>
  +              </font>
  +            </td>
  +          </tr>
  +        </table>
   
  -</html>
  -</xsl:template>
  +      </body>
  +    </html>
  +  </xsl:template>
   </xsl:stylesheet>
  
  
  
  1.2       +304 -306  
cocoon-2.1/src/documentation/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/documentation/stylesheets/document2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl 9 Mar 2003 00:07:31 -0000       1.1
  +++ document2html.xsl 27 Nov 2003 20:52:16 -0000      1.2
  @@ -1,309 +1,307 @@
   <?xml version="1.0"?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  -     <!-- 
====================================================================== -->
  -     <!-- document section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="/">
  -             <!-- checks if this is the included document to avoid 
neverending loop -->
  -             <xsl:if test="not(book)">
  -                     <document>
  -                             <xsl:choose>
  -                                     <xsl:when test="document/header/title">
  -                                             <title>
  -                                                     <xsl:value-of 
select="document/header/title"/>
  -                                             </title>
  -                                     </xsl:when>
  -                                     <xsl:otherwise>
  -                                             <title>NO TITLE</title>
  -                                     </xsl:otherwise>
  -                             </xsl:choose>
  -                             <body text="#000000" link="#039acc" 
vlink="#0086b2" alink="#cc0000" topmargin="4" leftmargin="4" marginwidth="4" 
marginheight="4" bgcolor="#ffffff">
  -                                     <xsl:apply-templates/>
  -                             </body>
  -                     </document>
  -             </xsl:if>
  -             <xsl:if test="book">
  -                     <xsl:apply-templates/>
  -             </xsl:if>
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- header section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="header">
  -             <!-- ignore on general document -->
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- body section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="s1">
  -             <font color="#0086b2" size="+2" face="verdana, helvetica, sans 
serif">
  -                     <xsl:value-of select="@title"/>
  -             </font>
  -             <hr size="1" style="color: #0086b2"/>
  -             <xsl:apply-templates/>
  -     </xsl:template>
  -     <xsl:template match="s2">
  -             <font color="#0086b2" size="+1" face="verdana, helvetica, sans 
serif">
  -                     <b><xsl:value-of select="@title"/></b>
  -             </font>
  -             <xsl:apply-templates/>
  -     </xsl:template>
  -     <xsl:template match="s3">
  -             <font color="#0086b2" size="+1" face="verdana, helvetica, sans 
serif">
  -                     <xsl:value-of select="@title"/>
  -             </font>
  -             <xsl:apply-templates/>
  -     </xsl:template>
  -     <xsl:template match="s4">
  -             <font color="#0086b2" face="verdana, helvetica, sans serif">
  -                     <b><xsl:value-of select="@title"/></b>
  -             </font>
  -             <xsl:apply-templates/>
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- footer section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="footer">
  -             <!-- ignore on general documents -->
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- paragraph section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="p">
  -             <p><font face="verdana,helvetica,sanserif" color="black">
  -                     <xsl:apply-templates/>
  -             </font></p>
  -     </xsl:template>
  -     <xsl:template match="note">
  -             <p>
  -                     <table width="100%" cellspacing="3" cellpadding="0" 
border="0">
  -                             <tr>
  -                                     <td width="28" valign="top">
  -                                             <img src="images/note.gif" 
width="28" height="29" vspace="0" hspace="0" border="0" alt="Note"/>
  -                                     </td>
  -                                     <td valign="top">
  -                                             <font size="-1" 
face="verdana,helvetica,sanserif" color="black">
  -                                                     <i>
  -                                                             
<xsl:apply-templates/>
  -                                                     </i>
  -                                             </font>
  -                                     </td>
  -                             </tr>
  -                     </table>
  -             </p>
  -     </xsl:template>
  -     <xsl:template match="source">
  -             <div align="center">
  -                     <table cellspacing="4" cellpadding="0" border="0">
  -                             <tr>
  -                                     <td bgcolor="#0086b2" width="1" 
height="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                                     <td bgcolor="#0086b2" height="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                                     <td bgcolor="#0086b2" width="1" 
height="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                             </tr>
  -                             <tr>
  -                                     <td bgcolor="#0086b2" width="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                                     <td bgcolor="#ffffff">
  -                                             <pre>
  -                                                     <xsl:apply-templates/>
  -                                             </pre>
  -                                     </td>
  -                                     <td bgcolor="#0086b2" width="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                             </tr>
  -                             <tr>
  -                                     <td bgcolor="#0086b2" width="1" 
height="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                                     <td bgcolor="#0086b2" height="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                                     <td bgcolor="#0086b2" width="1" 
height="1">
  -                                             <img src="images/void.gif" 
width="1" height="1" vspace="0" hspace="0" border="0"/>
  -                                     </td>
  -                             </tr>
  -                     </table>
  -             </div>
  -     </xsl:template>
  -     <xsl:template match="fixme">
  -             <!-- ignore on documentation -->
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- list section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="ul|ol">
  -             <blockquote>
  -                     <xsl:copy>
  -                             <xsl:apply-templates/>
  -                     </xsl:copy>
  -             </blockquote>
  -     </xsl:template>
  -     <xsl:template match="li">
  -             <xsl:copy><font face="verdana, helvetica, sans serif">
  -                     <xsl:apply-templates/>
  -             </font>
  -                </xsl:copy>
  -        </xsl:template>
  -     <xsl:template match="sl">
  -             <ul>
  -                     <xsl:apply-templates/>
  -             </ul>
  -     </xsl:template>
  -        
  -        <xsl:template match="dl">
  -             <blockquote>
  -             <font face="verdana, helvetica, sans serif">
  -                <dl>
  -                    <xsl:apply-templates/>
  -                </dl>
  -                </font>
  -                </blockquote>
  -        </xsl:template>
  -        
  -        <xsl:template match="dt">
  -                <dt>
  -             <strong>
  -                     <xsl:apply-templates/>
  -             </strong>
  -             <xsl:text> - </xsl:text>
  -                </dt>
  -        </xsl:template>
  -        <xsl:template match="dd">
  -                <dd>
  -                        <xsl:apply-templates/>
  -                </dd>
  -        </xsl:template>
  -        
  -     <!-- 
====================================================================== -->
  -     <!-- table section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="table">
  -             <table width="100%" border="0" cellspacing="2" cellpadding="2">
  -                     <caption><font face="verdana,helvetica,sanserif">
  -                             <xsl:value-of select="caption"/>
  -                     </font></caption>
  -                     <xsl:apply-templates/>
  -             </table>
  -     </xsl:template>
  -     <xsl:template match="tr">
  -             <tr>
  -                     <xsl:apply-templates/>
  -             </tr>
  -     </xsl:template>
  -     <xsl:template match="th">
  -             <td bgcolor="#039acc" colspan="[EMAIL PROTECTED]" 
rowspan="[EMAIL PROTECTED]" valign="center" align="center">
  -                     <font color="white" size="-1" 
face="verdana,helvetica,sanserif">
  -                             <b>
  -                                     <xsl:apply-templates/>
  -                             </b>
  -                     </font>
  -             </td>
  -     </xsl:template>
  -     <xsl:template match="td">
  -             <td bgcolor="#a0ddf0" colspan="[EMAIL PROTECTED]" 
rowspan="[EMAIL PROTECTED]" valign="top" align="left">
  -                     <font color="black" size="-1" 
face="verdana,helvetica,sanserif">
  -                             <xsl:apply-templates/>
  -                     </font>
  -             </td>
  -     </xsl:template>
  -     <xsl:template match="tn">
  -             <td bgcolor="#ffffff" colspan="[EMAIL PROTECTED]" 
rowspan="[EMAIL PROTECTED]">&#160;</td>
  -     </xsl:template>
  -     <xsl:template match="caption">
  -             <!-- ignore since already used -->
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- markup section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="strong">
  -             <b>
  -                     <xsl:apply-templates/>
  -             </b>
  -     </xsl:template>
  -     <xsl:template match="em">
  -             <i>
  -                     <xsl:apply-templates/>
  -             </i>
  -     </xsl:template>
  -     <xsl:template match="code">
  -             <code>
  -                     <font face="courier, monospaced">
  -                             <xsl:apply-templates/>
  -                     </font>
  -             </code>
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- images section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="figure">
  -             <p align="center">
  -                     <xsl:choose>
  -                             <xsl:when test="string(@width) and 
string(@height)">
  -                                     <img src="[EMAIL PROTECTED]" 
alt="[EMAIL PROTECTED]" width="[EMAIL PROTECTED]" height="[EMAIL PROTECTED]" 
border="0" vspace="4" hspace="4"/>
  -                             </xsl:when>
  -                             <xsl:otherwise>
  -                                     <img src="[EMAIL PROTECTED]" 
alt="[EMAIL PROTECTED]" border="0" vspace="4" hspace="4"/>
  -                             </xsl:otherwise>
  -                     </xsl:choose>
  -             </p>
  -     </xsl:template>
  -     <xsl:template match="img">
  -             <img src="[EMAIL PROTECTED]" alt="[EMAIL PROTECTED]" border="0" 
vspace="4" hspace="4" align="right"/>
  -     </xsl:template>
  -     <xsl:template match="icon">
  -             <img src="[EMAIL PROTECTED]" alt="[EMAIL PROTECTED]" border="0" 
align="absmiddle"/>
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- links section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="link">
  -          <xsl:choose>
  -            <xsl:when test="starts-with(@href, 'mailto:') and 
contains(@href, '@')">
  -              <xsl:variable name="mailto-id"
  -                  select="substring-before(@href,'@')"/>
  -              <xsl:variable name="mailto-domain"
  -                  select="substring-after(@href,'@')"/>
  -                <a href="{$mailto-id}.at.{$mailto-domain}">
  -                  <xsl:apply-templates/>
  -                </a>
  -             </xsl:when>
  -             <xsl:otherwise>
  -                <a href="[EMAIL PROTECTED]">
  -                  <xsl:apply-templates/>
  -                </a>
  -            </xsl:otherwise>
  -          </xsl:choose>
  -     </xsl:template>
  -     <xsl:template match="connect">
  -             <xsl:apply-templates/>
  -     </xsl:template>
  -     <xsl:template match="jump">
  -             <a href="[EMAIL PROTECTED]@anchor}">
  -                     <xsl:apply-templates/>
  -             </a>
  -     </xsl:template>
  -     <xsl:template match="fork">
  -             <a href="[EMAIL PROTECTED]" target="_blank">
  -                     <xsl:apply-templates/>
  -             </a>
  -     </xsl:template>
  -     <xsl:template match="anchor">
  -             <a name="[EMAIL PROTECTED]">
  -                     <xsl:comment>anchor</xsl:comment>
  -             </a>
  -     </xsl:template>
  -     <!-- 
====================================================================== -->
  -     <!-- specials section -->
  -     <!-- 
====================================================================== -->
  -     <xsl:template match="br">
  -             <br/>
  -     </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- document section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="/document">
  +    <document>
  +      <title>
  +        <xsl:choose>
  +          <xsl:when test="normalize-space(header/title)">
  +            <xsl:value-of select="header/title"/>
  +          </xsl:when>
  +          <xsl:otherwise>Cocoon - No Title</xsl:otherwise>
  +        </xsl:choose>
  +      </title>
  +      <body>
  +        <xsl:apply-templates/>
  +      </body>
  +    </document>
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- header section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="header">
  +    <!-- ignore on general document -->
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- body section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="s1">
  +    <font color="#0086b2" size="+2" face="verdana, helvetica, sans serif">
  +      <xsl:value-of select="@title"/>
  +    </font>
  +    <hr size="1" style="color: #0086b2"/>
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +  <xsl:template match="s2">
  +    <font color="#0086b2" size="+1" face="verdana, helvetica, sans serif">
  +      <b>
  +        <xsl:value-of select="@title"/>
  +      </b>
  +    </font>
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +  <xsl:template match="s3">
  +    <font color="#0086b2" size="+1" face="verdana, helvetica, sans serif">
  +      <xsl:value-of select="@title"/>
  +    </font>
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +  <xsl:template match="s4">
  +    <font color="#0086b2" face="verdana, helvetica, sans serif">
  +      <b>
  +        <xsl:value-of select="@title"/>
  +      </b>
  +    </font>
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- footer section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="footer">
  +    <!-- ignore on general documents -->
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- paragraph section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="p">
  +    <p>
  +      <font face="verdana,helvetica,sanserif" color="black">
  +        <xsl:apply-templates/>
  +      </font>
  +    </p>
  +  </xsl:template>
  +  <xsl:template match="note">
  +    <p>
  +      <table width="100%" cellspacing="3" cellpadding="0" border="0">
  +        <tr>
  +          <td width="28" valign="top">
  +            <img src="images/note.gif" width="28" height="29" vspace="0" 
hspace="0" border="0" alt="Note"/>
  +          </td>
  +          <td valign="top">
  +            <font size="-1" face="verdana,helvetica,sanserif" color="black">
  +              <i>
  +                <xsl:apply-templates/>
  +              </i>
  +            </font>
  +          </td>
  +        </tr>
  +      </table>
  +    </p>
  +  </xsl:template>
  +  <xsl:template match="source">
  +    <div align="center">
  +      <table cellspacing="4" cellpadding="0" border="0">
  +        <tr>
  +          <td bgcolor="#0086b2" width="1" height="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +          <td bgcolor="#0086b2" height="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +          <td bgcolor="#0086b2" width="1" height="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +        </tr>
  +        <tr>
  +          <td bgcolor="#0086b2" width="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +          <td bgcolor="#ffffff">
  +            <pre>
  +              <xsl:apply-templates/>
  +            </pre>
  +          </td>
  +          <td bgcolor="#0086b2" width="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +        </tr>
  +        <tr>
  +          <td bgcolor="#0086b2" width="1" height="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +          <td bgcolor="#0086b2" height="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +          <td bgcolor="#0086b2" width="1" height="1">
  +            <img src="images/void.gif" width="1" height="1" vspace="0" 
hspace="0" border="0"/>
  +          </td>
  +        </tr>
  +      </table>
  +    </div>
  +  </xsl:template>
  +  <xsl:template match="fixme">
  +    <!-- ignore on documentation -->
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- list section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="ul|ol">
  +    <blockquote>
  +      <xsl:copy>
  +        <xsl:apply-templates/>
  +      </xsl:copy>
  +    </blockquote>
  +  </xsl:template>
  +  <xsl:template match="li">
  +    <xsl:copy>
  +      <font face="verdana, helvetica, sans serif">
  +        <xsl:apply-templates/>
  +      </font>
  +    </xsl:copy>
  +  </xsl:template>
  +  <xsl:template match="sl">
  +    <ul>
  +      <xsl:apply-templates/>
  +    </ul>
  +  </xsl:template>
  +
  +  <xsl:template match="dl">
  +    <blockquote>
  +      <font face="verdana, helvetica, sans serif">
  +        <dl>
  +          <xsl:apply-templates/>
  +        </dl>
  +      </font>
  +    </blockquote>
  +  </xsl:template>
  +
  +  <xsl:template match="dt">
  +    <dt>
  +      <strong>
  +        <xsl:apply-templates/>
  +      </strong>
  +      <xsl:text> - </xsl:text>
  +    </dt>
  +  </xsl:template>
  +  <xsl:template match="dd">
  +    <dd>
  +      <xsl:apply-templates/>
  +    </dd>
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- table section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="table">
  +    <table width="100%" border="0" cellspacing="2" cellpadding="2">
  +      <caption>
  +        <font face="verdana,helvetica,sanserif">
  +          <xsl:value-of select="caption"/>
  +        </font>
  +      </caption>
  +      <xsl:apply-templates/>
  +    </table>
  +  </xsl:template>
  +  <xsl:template match="tr">
  +    <tr>
  +      <xsl:apply-templates/>
  +    </tr>
  +  </xsl:template>
  +  <xsl:template match="th">
  +    <td bgcolor="#039acc" colspan="[EMAIL PROTECTED]" rowspan="[EMAIL 
PROTECTED]" valign="center" align="center">
  +      <font color="white" size="-1" face="verdana,helvetica,sanserif">
  +        <b>
  +          <xsl:apply-templates/>
  +        </b>
  +      </font>
  +    </td>
  +  </xsl:template>
  +  <xsl:template match="td">
  +    <td bgcolor="#a0ddf0" colspan="[EMAIL PROTECTED]" rowspan="[EMAIL 
PROTECTED]" valign="top" align="left">
  +      <font color="black" size="-1" face="verdana,helvetica,sanserif">
  +        <xsl:apply-templates/>
  +      </font>
  +    </td>
  +  </xsl:template>
  +  <xsl:template match="tn">
  +    <td bgcolor="#ffffff" colspan="[EMAIL PROTECTED]" rowspan="[EMAIL 
PROTECTED]">&#160;</td>
  +  </xsl:template>
  +  <xsl:template match="caption">
  +    <!-- ignore since already used -->
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- markup section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="strong">
  +    <b>
  +      <xsl:apply-templates/>
  +    </b>
  +  </xsl:template>
  +  <xsl:template match="em">
  +    <i>
  +      <xsl:apply-templates/>
  +    </i>
  +  </xsl:template>
  +  <xsl:template match="code">
  +    <code>
  +      <font face="courier, monospaced">
  +        <xsl:apply-templates/>
  +      </font>
  +    </code>
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- images section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="figure">
  +    <p align="center">
  +      <xsl:choose>
  +        <xsl:when test="string(@width) and string(@height)">
  +          <img src="[EMAIL PROTECTED]" alt="[EMAIL PROTECTED]" width="[EMAIL 
PROTECTED]" height="[EMAIL PROTECTED]" border="0" vspace="4" hspace="4"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <img src="[EMAIL PROTECTED]" alt="[EMAIL PROTECTED]" border="0" 
vspace="4" hspace="4"/>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </p>
  +  </xsl:template>
  +  <xsl:template match="img">
  +    <img src="[EMAIL PROTECTED]" alt="[EMAIL PROTECTED]" border="0" 
vspace="4" hspace="4" align="right"/>
  +  </xsl:template>
  +  <xsl:template match="icon">
  +    <img src="[EMAIL PROTECTED]" alt="[EMAIL PROTECTED]" border="0" 
align="absmiddle"/>
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- links section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="link">
  +    <xsl:choose>
  +      <xsl:when test="starts-with(@href, 'mailto:') and contains(@href, 
'@')">
  +        <xsl:variable name="mailto-id" select="substring-before(@href,'@')"/>
  +        <xsl:variable name="mailto-domain" 
select="substring-after(@href,'@')"/>
  +        <a href="{$mailto-id}.at.{$mailto-domain}">
  +          <xsl:apply-templates/>
  +        </a>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <a href="[EMAIL PROTECTED]">
  +          <xsl:apply-templates/>
  +        </a>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:template>
  +  <xsl:template match="connect">
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +  <xsl:template match="jump">
  +    <a href="[EMAIL PROTECTED]@anchor}">
  +      <xsl:apply-templates/>
  +    </a>
  +  </xsl:template>
  +  <xsl:template match="fork">
  +    <a href="[EMAIL PROTECTED]" target="_blank">
  +      <xsl:apply-templates/>
  +    </a>
  +  </xsl:template>
  +  <xsl:template match="anchor">
  +    <a name="[EMAIL PROTECTED]">
  +      <xsl:comment>anchor</xsl:comment>
  +    </a>
  +  </xsl:template>
  +  <!-- 
====================================================================== -->
  +  <!-- specials section -->
  +  <!-- 
====================================================================== -->
  +  <xsl:template match="br">
  +    <br/>
  +  </xsl:template>
   </xsl:stylesheet>
  
  
  

Reply via email to