xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-stylebook/styles/apachexml/stylesheets book2project.xsl document2html.xsl context2document.xsl context2faqs.xsl faq2document1.xsl faq2document2.xsl faqs2document1.xsl faqs2document2.xsl group2title.xsl
Date Wed, 01 Dec 1999 21:09:24 GMT
pier        99/12/01 13:09:24

  Modified:    styles/apachexml/stylesheets book2project.xsl
                        document2html.xsl
  Removed:     styles/apachexml/stylesheets context2document.xsl
                        context2faqs.xsl faq2document1.xsl
                        faq2document2.xsl faqs2document1.xsl
                        faqs2document2.xsl group2title.xsl
  Log:
  Switched stylesets.
  
  Revision  Changes    Path
  1.2       +145 -129  xml-stylebook/styles/apachexml/stylesheets/book2project.xsl
  
  Index: book2project.xsl
  ===================================================================
  RCS file: /home/cvs/xml-stylebook/styles/apachexml/stylesheets/book2project.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2project.xsl	1999/11/15 21:42:47	1.1
  +++ book2project.xsl	1999/12/01 21:09:23	1.2
  @@ -6,188 +6,204 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  +  <!-- match the root book element -->
     <xsl:template match="book">
       <project>
  +
  +      <parameter name="copyright" value="{@copyright}"/>
  +
  +      <!-- copy all resources to the targets -->
  +      <process source="sbk:/style/resources/" producer="directory">
  +        <processor name="xslt">
  +          <parameter name="stylesheet" value="sbk:/style/stylesheets/directory2project.xsl"/>
  +          <parameter name="base" value="resources/"/>
  +        </processor>
  +      </process>
  +
         <xsl:apply-templates/>
  -      <resource source="resources/*.gif" target="images/*.gif"/>
  -      <resource source="resources/*.css" target="*.css"/>
  -      <resource source="resources/*.js"  target="*.js"/>
  +
       </project>
     </xsl:template>
   
  -<!-- ======================================================================= -->
  -<!-- NAMED TEMPLATES                                                         -->
  -<!-- ======================================================================= -->
  +<!-- ********************************************************************** -->
  +<!-- CREATE THE TARGET HTML -->
  +<!-- ********************************************************************** -->
   
  -<!-- THE GENERIC DOCUMENT PIPELINE -->
  -  <xsl:template name="document">
  -    <xsl:param name="href"/>
  -    <xsl:param name="id"  />
  +  <xsl:template match="document">
   
  -    <create source="{$href}" target="{$id}.html" producer="context" printer="html">
  -      <parameter name="id" value="{$id}"/>
  +    <process source="{@source}" producer="parser">
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/context2document.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/any2project.xsl"/>
         </processor>
  -      <processor name="import"/>
  +    </process>
  +
  +    <xsl:call-template name="header">
  +      <xsl:with-param name="id"     select="@id"/>
  +      <xsl:with-param name="source" select="@source"/>
  +      <xsl:with-param name="label"  select="@label"/>
  +    </xsl:call-template>
  +
  +    <xsl:call-template name="labels">
  +      <xsl:with-param name="id" select="@id"/>
  +      <xsl:with-param name="label" select="@label"/>
  +    </xsl:call-template>
  +
  +    <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/document2html.xsl"/>
  +        <parameter name="id" value="{@id}"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
         </processor>
       </create>
     </xsl:template>
   
  -<!-- THE FAQ DOCUMENT PIPELINE -->
  -  <xsl:template name="faq">
  -    <xsl:param name="href"/>
  -    <xsl:param name="id"  />
  +  <xsl:template match="faqs">
   
  -    <create source="{$href}" target="{$id}.html" producer="context" printer="html">
  -      <parameter name="id" value="{$id}"/>
  -      <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/context2document.xsl"/>
  -      </processor>
  -      <processor name="import"/>
  -      <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/faq2document1.xsl"/>
  -      </processor>
  +    <xsl:call-template name="header">
  +      <xsl:with-param name="id"     select="@id"/>
  +      <xsl:with-param name="source" select="@source"/>
  +      <xsl:with-param name="label"  select="@label"/>
  +    </xsl:call-template>
  +
  +    <xsl:call-template name="labels">
  +      <xsl:with-param name="id" select="@id"/>
  +      <xsl:with-param name="label" select="@label"/>
  +    </xsl:call-template>
  +
  +    <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/faq2document2.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/faqs2document.xsl"/>
         </processor>
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/document2html.xsl"/>
  +        <parameter name="id" value="{@id}"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
         </processor>
       </create>
  +
     </xsl:template>
   
  -<!-- THE TITLE IMAGE PIPELINE -->
  -  <xsl:template name="title">
  -    <xsl:param name="href"/>
  -    <xsl:param name="id"  />
  +  <xsl:template match="changes">
   
  -    <create source="{$href}" target="images/{$id}.jpg" producer="parser" printer="image">
  +    <xsl:call-template name="header">
  +      <xsl:with-param name="id"     select="@id"/>
  +      <xsl:with-param name="source" select="@source"/>
  +      <xsl:with-param name="label"  select="@label"/>
  +    </xsl:call-template>
  +
  +    <xsl:call-template name="labels">
  +      <xsl:with-param name="id" select="@id"/>
  +      <xsl:with-param name="label" select="@label"/>
  +    </xsl:call-template>
  +
  +    <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/document2title.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/changes2document.xsl"/>
  +      </processor>
  +      <processor name="xslt">
  +        <parameter name="id" value="{@id}"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
         </processor>
       </create>
  +
     </xsl:template>
   
  -<!-- THE SIDEBAR BUTTONS PIPELINE -->
  -  <xsl:template name="buttons">
  -    <xsl:param name="label"/>
  -    <xsl:param name="id"   />
  +  <xsl:template match="group">
  +    <xsl:apply-templates/>
  +
  +    <xsl:call-template name="header">
  +      <xsl:with-param name="id"     select="@id"/>
  +      <xsl:with-param name="source" select="@source"/>
  +      <xsl:with-param name="label"  select="@label"/>
  +    </xsl:call-template>
   
  -    <create source="{$label}" target="images/{$id}-1.jpg" producer="context" printer="image">
  +    <xsl:call-template name="labels">
  +      <xsl:with-param name="id" select="@id"/>
  +      <xsl:with-param name="label" select="@label"/>
  +    </xsl:call-template>
  +
  +    <create source="" target="{@id}.html" producer="project" printer="html">
  +      <parameter name="id" value="{@id}"/>
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/document2button1.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/book2group.xsl"/>
         </processor>
  -    </create>
  -    <create source="{$label}" target="images/{$id}-2.jpg" producer="context" printer="image">
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/document2button2.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/group2document.xsl"/>
         </processor>
  -    </create>
  -    <create source="{$label}" target="images/{$id}-3.jpg" producer="context" printer="image">
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/document2button3.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
         </processor>
       </create>
  -  </xsl:template>
  -
  -<!-- ======================================================================= -->
  -<!-- TEMPLATE MATCHING RULES                                                 -->
  -<!-- ======================================================================= -->
   
  -<!-- TEMPLATING FOR <chapter> ELEMENT -->
  -  <xsl:template match="chapter">
  -    <xsl:if test="@type='document'">
  -      <xsl:call-template name="document">
  -        <xsl:with-param name="href" select="@href"/>
  -        <xsl:with-param name="id"   select="@id"  />
  -      </xsl:call-template>
  -    </xsl:if>
  +  </xsl:template>
   
  -    <xsl:if test="@type='faq'">
  -      <xsl:call-template name="faq">
  -        <xsl:with-param name="href" select="@href"/>
  -        <xsl:with-param name="id"   select="@id"  />
  -      </xsl:call-template>
  -    </xsl:if>
  +  <xsl:template match="entry">
   
  -    <xsl:call-template name="title">
  -      <xsl:with-param name="href" select="@href"/>
  -      <xsl:with-param name="id"   select="@id"  />
  +    <xsl:call-template name="header">
  +      <xsl:with-param name="id"     select="@id"/>
  +      <xsl:with-param name="source" select="@source"/>
  +      <xsl:with-param name="label"  select="@label"/>
       </xsl:call-template>
   
  -    <xsl:call-template name="buttons">
  -      <xsl:with-param name="label" select="@label"/>
  -      <xsl:with-param name="id"    select="@id"  />
  -    </xsl:call-template>
  +    <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
  +      <processor name="xslt">
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/faqs2document.xsl"/>
  +      </processor>
  +      <processor name="xslt">
  +        <parameter name="id" value="{@id}"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
  +      </processor>
  +    </create>
  +
     </xsl:template>
   
  -<!-- TEMPLATING FOR <hidden> ELEMENT -->
  -  <xsl:template match="hidden">
  -    <xsl:if test="@type='document'">
  -      <xsl:call-template name="document">
  -        <xsl:with-param name="href" select="@href"/>
  -        <xsl:with-param name="id"   select="@id"  />
  -      </xsl:call-template>
  -    </xsl:if>
  +<!-- ********************************************************************** -->
  +<!-- NAMED TEMPLATES -->
  +<!-- ********************************************************************** -->
   
  -    <xsl:if test="@type='faq'">
  -      <xsl:call-template name="faq">
  -        <xsl:with-param name="href" select="@href"/>
  -        <xsl:with-param name="id"   select="@id"  />
  -      </xsl:call-template>
  -    </xsl:if>
  +<!-- Generate the doument header image -->
  +  <xsl:template name="header"> 
  +    <xsl:param name="id"/>
  +    <xsl:param name="source"/>
  +    <xsl:param name="label"/>
   
  -    <xsl:call-template name="title">
  -      <xsl:with-param name="href" select="@href"/>
  -      <xsl:with-param name="id"   select="@id"  />
  -    </xsl:call-template>
  +    <create source="{$source}" target="graphics/{$id}-header.jpg" producer="parser"
printer="image">
  +      <processor name="xslt">
  +        <parameter name="label" value="{$label}"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/any2header.xsl"/>
  +      </processor>
  +    </create>
     </xsl:template>
  -
  -<!-- TEMPLATING FOR <group> ELEMENT -->
  -  <xsl:template match="group">
  -    <xsl:if test="@type='faqs'">
  -      <create source="{@href}" target="{@id}.html" producer="context" printer="html">
  -        <parameter name="id" value="{@id}"/>
  -        <processor name="xslt">
  -          <parameter name="stylesheet" value="stylesheets/context2faqs.xsl"/>
  -        </processor>
  -        <processor name="import"/>
  -        <processor name="xslt">
  -          <parameter name="stylesheet" value="stylesheets/faqs2document1.xsl"/>
  -        </processor>
  -        <processor name="import"/>
  -        <processor name="xslt">
  -          <parameter name="stylesheet" value="stylesheets/faqs2document2.xsl"/>
  -        </processor>
  -        <processor name="xslt">
  -          <parameter name="stylesheet" value="stylesheets/document2html.xsl"/>
  -        </processor>
  -      </create>
  -      <xsl:apply-templates/>
  -    </xsl:if>
   
  -    <create source="{@label}" target="images/{@id}.jpg" producer="context" printer="image">
  +<!-- Generate the three rollover label images -->
  +  <xsl:template name="labels"> 
  +    <xsl:param name="id"/>
  +    <xsl:param name="label"/>
  +    
  +    <create source="" target="graphics/{$id}-label-1.jpg" producer="context" printer="image">
  +      <parameter name="label" value="{$label}"/>
         <processor name="xslt">
  -        <parameter name="stylesheet" value="stylesheets/group2title.xsl"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/context2label.xsl"/>
  +        <parameter name="image" value="sbk:/style/graphics/button-a.gif"/>
  +        <parameter name="color" value="ffffff"/>
         </processor>
       </create>
   
  -    <xsl:call-template name="buttons">
  -      <xsl:with-param name="label" select="@label"/>
  -      <xsl:with-param name="id"    select="@id"  />
  -    </xsl:call-template>
  -  </xsl:template>
  +    <create source="" target="graphics/{$id}-label-2.jpg" producer="context" printer="image">
  +      <parameter name="label" value="{$label}"/>
  +      <processor name="xslt">
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/context2label.xsl"/>
  +        <parameter name="image" value="sbk:/style/graphics/button-b.gif"/>
  +        <parameter name="color" value="ffff00"/>
  +      </processor>
  +    </create>
   
  -<!-- TEMPLATING FOR <jump> ELEMENT -->
  -  <xsl:template match="extern">
  -    <xsl:call-template name="buttons">
  -      <xsl:with-param name="label" select="@label"/>
  -      <xsl:with-param name="id"    select="@id"  />
  -    </xsl:call-template>
  +    <create source="" target="graphics/{$id}-label-3.jpg" producer="context" printer="image">
  +      <parameter name="label" value="{$label}"/>
  +      <processor name="xslt">
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/context2label.xsl"/>
  +        <parameter name="image" value="sbk:/style/graphics/button-b.gif"/>
  +        <parameter name="color" value="ffffff"/>
  +      </processor>
  +    </create>
     </xsl:template>
  -
   
   </xsl:stylesheet>
  
  
  
  1.2       +247 -99   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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl	1999/11/15 21:42:54	1.1
  +++ document2html.xsl	1999/12/01 21:09:23	1.2
  @@ -2,68 +2,85 @@
   
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
   
  +  <xsl:param name="stylebook.project"/>
  +  <xsl:param name="copyright"/>
  +  <xsl:param name="id"/>
  +
     <xsl:template match="/">
       <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="document">
  +  <xsl:template match="s1">
       <html>
  -      <script language="JavaScript" src="script.js">
  -        <xsl:comment>don't remove this comment</xsl:comment>
  -      </script>
         <head>
  -        <link rel="stylesheet" type="text/css" href="style.css" title="style"/>
  -        <title><xsl:value-of select="s1/@title"/></title>
  +        <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
  +        <title><xsl:value-of select="@title"/></title>
         </head>
         <body text="#000000" link="#0000ff" vlink="#0000aa" alink="#ff0000"
               topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
               bgcolor="#ffffff">
  -        <!-- THE TOP BAR -->
  +        <!-- THE TOP BAR (HEADER) -->
           <table width="620" 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>
  +              <img width="135" height="60" src="resources/logo.gif" hspace="0" vspace="0"
border="0"/></td>
               <td width="456" height="5" valign="top" align="left" colspan="4">
  -              <img width="456" height="5" src="images/line.gif" hspace="0" vspace="0"
border="0"/></td>
  +              <img width="456" height="5" src="resources/line.gif" hspace="0" vspace="0"
border="0"/></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>
  +              <img width="29" height="60" src="resources/right.gif" hspace="0" vspace="0"
border="0"/></td>
             </tr>
             <tr>
               <td width="456" height="35" valign="top" align="left" colspan="4" bgcolor="#0086b2">
  -              <img src="images/{@id}.jpg" width="456" height="35" hspace="0" vspace="0"
border="0" alt="{s1/@title}"/></td>
  +              <img src="graphics/{$id}-header.jpg" width="456" height="35" hspace="0"
vspace="0" border="0" alt="{s1/@title}"/></td>
             </tr>
             <tr>
               <td width="168" height="20" valign="top" align="left">
  -              <img width="168" height="20" src="images/bottom.gif" hspace="0" vspace="0"
border="0"/></td>
  +              <img width="168" height="20" src="resources/bottom.gif" hspace="0" vspace="0"
border="0"/></td>
               <td width="96" height="20" valign="top" align="left">
  -              <a href="http://xml.apache.org/" onMouseOver="topon('xml')" onMouseOut="topoff('xml')">
  -              <img alt="http://xml.apache.org/" width="96" height="20" src="images/button-xml-lo.gif"
name="top.xml" hspace="0" vspace="0" border="0"/></a></td>
  +              <a href="http://xml.apache.org/" onMouseOver="rolloverOn('xml');" onMouseOut="rolloverOff('xml');"
target="new">
  +                <img alt="http://xml.apache.org/" width="96" height="20" src="resources/button-xml-lo.gif"
  +                     name="xml" hspace="0" vspace="0" border="0"
  +                     onLoad="rolloverLoad('xml','resources/button-xml-hi.gif','resources/button-xml-lo.gif');"/>
  +              </a>
  +            </td>
               <td width="96" height="20" valign="top" align="left">
  -              <a href="http://www.apache.org/" onMouseOver="topon('asf')" onMouseOut="topoff('asf')">
  -              <img alt="http://www.apache.org/" width="96" height="20" src="images/button-asf-lo.gif"
name="top.asf" hspace="0" vspace="0" border="0"/></a></td>
  +              <a href="http://asf.apache.org/" onMouseOver="rolloverOn('asf');" onMouseOut="rolloverOff('asf');"
target="new">
  +                <img alt="http://asf.apache.org/" width="96" height="20" src="resources/button-asf-lo.gif"
  +                     name="asf" hspace="0" vspace="0" border="0"
  +                     onLoad="rolloverLoad('asf','resources/button-asf-hi.gif','resources/button-asf-lo.gif');"/>
  +              </a>
  +            </td>
               <td width="96" height="20" valign="top" align="left">
  -              <a href="http://www.w3.org/" onMouseOver="topon('w3c')" onMouseOut="topoff('w3c')">
  -              <img alt="http://www.w3.org/" width="96" height="20" src="images/button-w3c-lo.gif"
name="top.w3c" hspace="0" vspace="0" border="0"/></a></td>
  +              <a href="http://w3c.apache.org/" onMouseOver="rolloverOn('w3c');" onMouseOut="rolloverOff('w3c');"
target="new">
  +                <img alt="http://w3c.apache.org/" width="96" height="20" src="resources/button-w3c-lo.gif"
  +                     name="w3c" hspace="0" vspace="0" border="0"
  +                     onLoad="rolloverLoad('w3c','resources/button-w3c-hi.gif','resources/button-w3c-lo.gif');"/>
  +              </a>
  +            </td>
             </tr>
           </table>
  -        <!-- THE TOP BAR ENDS -->
  +        <!-- THE MAIN PANEL (SIDEBAR AND CONTENT) -->
           <table width="620" cellspacing="0" cellpadding="0" border="0">
             <tr>
               <!-- THE SIDE BAR -->
               <td width="120" valign="top" align="left">
  -              <img width="120" height="14" src="images/join.gif" hspace="0" vspace="0"
border="0"/><br/>
  -              <xsl:apply-templates select="book"/>
  -              <img width="120" height="14" src="images/close.gif" hspace="0" vspace="0"
border="0"/><br/>
  +              <img width="120" height="14" src="resources/join.gif" hspace="0" vspace="0"
border="0"/><br/>
  +                <xsl:apply-templates select="document($stylebook.project)"/>
  +              <img width="120" height="14" src="resources/close.gif" hspace="0" vspace="0"
border="0"/><br/>
               </td>
  -            <!-- THE SIDE BAR ENDS -->
  -            <xsl:apply-templates select="s1"/>
  +            <!-- THE CONTENT PANEL -->
  +            <td width="500" valign="top" align="left">
  +              <table border="0" cellspacing="0" cellpadding="3">
  +                <tr><td><xsl:apply-templates/></td></tr>
  +              </table>
  +            </td>
             </tr>
           </table><br/>
           <table width="620" border="0" cellspacing="0" cellpadding="0">
             <tr><td bgcolor="#0086b2"><img src="images/dot.gif" width="1"
height="1"/></td></tr>
             <tr>
               <td align="center"><font size="-1" color="#0086b2"><i>
  -              Copyright &#169; 1999, The Apache Software Foundation.
  +              Copyright &#169; <xsl:value-of select="$copyright"/>.
                 All Rights Reserved.
               </i></font></td>
             </tr>
  @@ -79,74 +96,143 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="separator">
  -    <img alt="----------" width="120" height="6" src="images/separator.gif" hspace="0"
vspace="0" border="0"/><br/>
  -  </xsl:template>
  -
  -  <xsl:template match="chapter">
  -    <xsl:if test="@id=/document/@id">
  -      <img width="120" height="12" src="images/{@id}-1.jpg" hspace="0" vspace="0" border="0"
alt="{@label}"/><br/>
  +  <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>
  -    <xsl:if test="not(@id=/document/@id)">
  -      <a href="{@id}.html" onMouseOver="sideon('{@id}')" onMouseOut="sideoff('{@id}')">
  -      <img onLoad="sideload('{@id}')" width="120" height="12" src="images/{@id}-3.jpg"
name="side.{@id}" hspace="0" vspace="0" border="0" alt="{@label}"/></a><br/>
  +    <xsl:if test="@id!=$id">
  +      <a href="{@id}.html" onMouseOver="rolloverOn('side-{@id}');" onMouseOut="rolloverOff('side-{@id}');">
  +        <img onLoad="rolloverLoad('side-{@id}','graphics/{@id}-label-2.jpg','graphics/{@id}-label-3.jpg');"
  +             name="side-{@id}" src="graphics/{@id}-label-3.jpg" width="120" height="12"
hspace="0" vspace="0" border="0" alt="{@label}"/>
  +      </a>
       </xsl:if>
  -  </xsl:template>
  -
  -  <xsl:template match="group">
  -    <xsl:if test="@id=/document/@id">
  -      <img width="120" height="12" src="images/{@id}-1.jpg" hspace="0" vspace="0" border="0"
alt="{@label}" /><br/>
  -    </xsl:if>
  -    <xsl:if test="not(@id=/document/@id)">
  -      <a href="{@id}.html" onMouseOver="sideon('{@id}')" onMouseOut="sideoff('{@id}')">
  -      <img onLoad="sideload('{@id}')" width="120" height="12" src="images/{@id}-3.jpg"
name="side.{@id}" hspace="0" vspace="0" border="0" alt="{@label}" /></a><br/>
  -    </xsl:if>
  +    <br/>
     </xsl:template>
   
  -  <xsl:template match="extern">
  -    <a href="{@href}" onMouseOver="sideon('{@id}')" onMouseOut="sideoff('{@id}')">
  -    <img onLoad="sideload('{@id}')" width="120" height="12" src="images/{@id}-3.jpg"
name="side.{@id}" hspace="0" vspace="0" border="0" alt="{@label}" /></a><br/>
  +  <xsl:template match="separator">
  +    <img src="resources/separator.gif" width="120" height="6" hspace="0" vspace="0"
border="0"/><br/>
     </xsl:template>
   
   
   <!-- ###################################################################### -->
   <!-- document -->
   
  -  <xsl:template match="s1">
  -    <td width="500" valign="top" align="left">
  -        <xsl:apply-templates/>
  -    </td>
  -  </xsl:template>
  -
     <xsl:template match="s2">
  -    <table border="0" width="100%"><tr>
  -      <td bgcolor="#0086b2" colspan="2">
  -        <font size="+1" face="arial,helvetica,sans-serif" color="ffffff"><b>
  -        &#160;<xsl:value-of select="@title"/></b></font>
  -      </td></tr><tr><td width="10"><xsl:comment> empty </xsl:comment></td>
  -      <td bgcolor="#ffffff"><xsl:apply-templates/></td></tr>
  +    <table width="494" cellspacing="0" cellpadding="0" border="0">
  +      <tr>
  +        <td bgcolor="666699" colspan="2" width="494">
  +          <table width="494" cellspacing="0" cellpadding="0" border="0">
  +            <tr>
  +              <td bgcolor="#039acc" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +              <td bgcolor="#039acc" width="492" height="1"><img src="resources/void.gif"
width="492" height="1" vspace="0" hspace="0" border="0"/></td>
  +              <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +            </tr>
  +            <tr>
  +              <td bgcolor="#039acc" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +              <td bgcolor="#0086b2"  width="492">
  +                <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">
  +                  <img src="resources/void.gif" width="2" height="2" vspace="0" hspace="0"
border="0"/>
  +                  <b><xsl:value-of select="@title"/></b>
  +                </font>
  +              </td>
  +              <td bgcolor="#017299" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +            </tr>
  +            <tr>
  +              <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +              <td bgcolor="#017299" width="492" height="1"><img src="resources/void.gif"
width="492" height="1" vspace="0" hspace="0" border="0"/></td>
  +              <td bgcolor="#017299" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +            </tr>
  +          </table>
  +        </td>
  +      </tr>  
  +      <tr>
  +        <td width="10">&#160;</td>
  +        <td width="484">
  +          <font face="arial,helvetica,sanserif" color="#000000">
  +            <xsl:apply-templates/>
  +          </font>
  +        </td>
  +      </tr>  
       </table>
       <br/>
     </xsl:template>
   
     <xsl:template match="s3">
  -    <table border="0" width="100%"><tr>
  -      <td bgcolor="#0086b2">
  -        <font face="arial,helvetica,sans-serif" color="ffffff"><b>
  -        &#160;<xsl:value-of select="@title"/></b></font>
  -      </td></tr><tr>
  -      <td bgcolor="#ffffff"><font size="-1"><xsl:apply-templates/></font></td></tr>
  +    <table width="484" cellspacing="0" cellpadding="0" border="0">
  +      <tr>
  +        <td bgcolor="666699" colspan="2" width="484">
  +          <table width="484" cellspacing="0" cellpadding="0" border="0">
  +          <tr>
  +            <td bgcolor="#039acc" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#039acc" width="482" height="1"><img src="resources/void.gif"
width="482" height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +          </tr>
  +          <tr>
  +            <td bgcolor="#039acc" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#0086b2"  width="482">
  +              <font face="arial,helvetica,sanserif" color="#ffffff">
  +                <img src="resources/void.gif" width="2" height="2" vspace="0" hspace="0"
border="0"/>
  +                <b><xsl:value-of select="@title"/></b>
  +              </font>
  +            </td>
  +            <td bgcolor="#017299" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +          </tr>
  +          <tr>
  +            <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#017299" width="482" height="1"><img src="resources/void.gif"
width="482" height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#017299" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +          </tr>
  +          </table>
  +        </td>
  +      </tr>  
  +      <tr>
  +        <td width="10">&#160;</td>
  +        <td width="474">
  +          <font size="-1" face="arial,helvetica,sanserif" color="#000000">
  +            <xsl:apply-templates/>
  +          </font>
  +        </td>
  +      </tr>  
       </table>
       <br/>
     </xsl:template>
   
     <xsl:template match="s4">
  -    <table border="0" width="100%"><tr>
  -      <td bgcolor="#eeeeff">
  -        <font size="-1" face="arial,helvetica,sans-serif" color="ffffff"><b>
  -        &#160;<xsl:value-of select="@title"/></b></font>
  -      </td></tr><tr>
  -      <td bgcolor="#ffffff"><font size="-1"><xsl:apply-templates/></font></td></tr>
  +    <table width="474" cellspacing="0" cellpadding="0" border="0">
  +      <tr>
  +        <td bgcolor="666699" colspan="2" width="484">
  +          <table width="474" cellspacing="0" cellpadding="0" border="0">
  +          <tr>
  +            <td bgcolor="#039acc" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#039acc" width="472" height="1"><img src="resources/void.gif"
width="472" height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +          </tr>
  +          <tr>
  +            <td bgcolor="#039acc" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#0086b2"  width="472">
  +              <font size="-1" face="arial,helvetica,sanserif" color="#ffffff">
  +                <img src="resources/void.gif" width="2" height="2" vspace="0" hspace="0"
border="0"/>
  +                <b><xsl:value-of select="@title"/></b>
  +              </font>
  +            </td>
  +            <td bgcolor="#017299" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +          </tr>
  +          <tr>
  +            <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#017299" width="472" height="1"><img src="resources/void.gif"
width="472" height="1" vspace="0" hspace="0" border="0"/></td>
  +            <td bgcolor="#017299" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +          </tr>
  +          </table>
  +        </td>
  +      </tr>  
  +      <tr>
  +        <td width="10">&#160;</td>
  +        <td width="464">
  +          <font size="-1" face="arial,helvetica,sanserif" color="#000000">
  +            <xsl:apply-templates/>
  +          </font>
  +        </td>
  +      </tr>  
       </table>
       <br/>
     </xsl:template>
  @@ -154,14 +240,63 @@
   <!-- ###################################################################### -->
   <!-- blocks -->
   
  -  <xsl:template match="em">
  -    <b><xsl:apply-templates/></b>
  +  <xsl:template match="p">
  +    <p><xsl:apply-templates/></p>
     </xsl:template>
   
  -  <xsl:template match="ref">
  -    <i><xsl:apply-templates/></i>
  +  <xsl:template match="note">
  +    <table width="100%" cellspacing="3" cellpadding="0" border="0">
  +      <tr>
  +        <td width="20" valign="top">
  +          <img src="resources/note.gif" width="20" height="24" vspace="0" hspace="0"
border="0" alt="Note"/>
  +        </td>
  +        <td valign="top">
  +          <font size="-1" face="arial,helvetica,sanserif" color="#000000">
  +            <i>
  +              <xsl:apply-templates/>
  +            </i>
  +          </font>
  +        </td>
  +      </tr>  
  +    </table>
     </xsl:template>
  -  
  +
  +  <xsl:template match="ul">
  +    <ul><xsl:apply-templates/></ul>
  +  </xsl:template>
  +
  +  <xsl:template match="ol">
  +    <ol><xsl:apply-templates/></ol>
  +  </xsl:template>
  +
  +  <xsl:template match="li">
  +    <li><xsl:apply-templates/></li>
  +  </xsl:template>
  +
  +  <xsl:template match="source">
  +  <div align="right">
  +  <table width="464" cellspacing="4" cellpadding="0" border="0">
  +    <tr>
  +      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="462" height="1"><img src="resources/void.gif"
width="462" height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    <tr>
  +      <td bgcolor="#0086b2" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#ffffff"  width="462">
  +          <font size="-1"><pre><xsl:apply-templates/></pre></font>
  +      </td>
  +      <td bgcolor="#0086b2" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    <tr>
  +      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="462" height="1"><img src="resources/void.gif"
width="462" height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +  </table>
  +  </div>
  +  </xsl:template>
  +
     <xsl:template match="table">
       <table width="100%" border="0" cellspacing="2" cellpadding="2">
         <xsl:apply-templates/>
  @@ -173,42 +308,51 @@
     </xsl:template>
   
     <xsl:template match="th">
  -    <td bgcolor="#0086b2" valign="top" align="center">
  -      <font color="#ffffff"><b><xsl:apply-templates/></b></font>
  +    <td bgcolor="#039acc" colspan="{@colspan}" rowspan="{@rowspan}" valign="center"
align="center">
  +      <font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
  +        <b><xsl:apply-templates/></b>&#160;
  +      </font>
       </td>
     </xsl:template>
   
     <xsl:template match="td">
  -    <td bgcolor="#eeeeff" valign="top" align="left"><xsl:apply-templates/>&#160;</td>
  +    <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>
  +    </td>
     </xsl:template>
   
     <xsl:template match="tn">
  -    <td>&#160;</td>
  +    <td bgcolor="#ffffff" colspan="{@colspan}" rowspan="{@rowspan}">
  +      &#160;
  +    </td>
     </xsl:template>
   
  -  <xsl:template match="source">
  -    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  -      <tr><td bgcolor="#0086b2"><img src="images/dot.gif" width="1" height="1"/></td></tr>
  -      <tr><td><pre><font size="-1"><xsl:apply-templates/></font></pre></td></tr>
  -      <tr><td bgcolor="#0086b2"><img src="images/dot.gif" width="1" height="1"/></td></tr>
  -     </table>
  -  </xsl:template>
  +<!-- ###################################################################### -->
  +<!-- markup -->
   
  -  <xsl:template match="hr">
  -    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  -      <tr><td bgcolor="#0086b2"><img src="images/dot.gif" width="1" height="1"/></td></tr>
  -     </table>
  +  <xsl:template match="em">
  +    <b><xsl:apply-templates/></b>
     </xsl:template>
   
  -  <xsl:template match="note">
  -    <p><xsl:apply-templates/></p>
  +  <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 -->
   
     <xsl:template match="link">
  -    <xsl:if test="@anchor=NULL">
  +    <xsl:if test="string-length(@anchor)=0">
         <xsl:if test="string-length(@idref)=0">
           <xsl:apply-templates/>
         </xsl:if>
  @@ -217,7 +361,7 @@
         </xsl:if>
       </xsl:if>
   
  -    <xsl:if test="not(@anchor=NULL)">
  +    <xsl:if test="string-length(@anchor)>0">
         <xsl:if test="string-length(@idref)=0">
           <a href="#{@anchor}"><xsl:apply-templates/></a>
         </xsl:if>
  @@ -235,13 +379,17 @@
       <a href="{@href}"><xsl:apply-templates/></a>
     </xsl:template>
   
  +  <xsl:template match="img">
  +    <img src="images/{@src}" border="0" vspace="4" hspace="4" align="right"/>
  +  </xsl:template>
  +
   <!-- ###################################################################### -->
  -<!-- copy -->
  +<!-- copy
   
     <xsl:template match="@*|node()">
       <xsl:copy>
         <xsl:apply-templates select="@*|node()"/>
       </xsl:copy>
     </xsl:template>
  -
  +-->
   </xsl:stylesheet>
  
  
  

Mime
View raw message