donaldp     01/02/26 05:42:21

  Modified:    src/skins/avalon/stylesheets book2project.xsl
                        document2html.xsl
  Removed:     src/skins/avalon/stylesheets directory2project.xsl
                        document2project.xsl scan4resources.xsl
  Log:
  Modify stylesheets to be a little cleaner and move copying of resources (ie 
files/images) to ant as it is faster.
  
  Revision  Changes    Path
  1.2       +10 -24    
jakarta-avalon/src/skins/avalon/stylesheets/book2project.xsl
  
  Index: book2project.xsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon/src/skins/avalon/stylesheets/book2project.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2project.xsl  2001/02/23 10:47:47     1.1
  +++ book2project.xsl  2001/02/26 13:42:21     1.2
  @@ -4,46 +4,25 @@
   
     <!-- match the root book element -->
     <xsl:template match="book">
  -    <project>
   
  +    <project>
         <parameter name="copyright" value="[EMAIL PROTECTED]"/>
  -
  -      <!-- 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/>
  -
       </project>
  +
     </xsl:template>
   
     <xsl:template match="page|hidden">
  -    <process source="[EMAIL PROTECTED]" producer="parser">
  -      <processor name="xslt">
  -        <parameter name="stylesheet" 
value="sbk:/style/stylesheets/scan4resources.xsl"/>
  -      </processor>
  -    </process>
   
       <create source="[EMAIL PROTECTED]" target="[EMAIL PROTECTED]" 
producer="parser" printer="html">
         <processor name="xslt">
           <parameter name="stylesheet" 
value="sbk:/style/stylesheets/document2html.xsl"/>
         </processor>
       </create>
  +
     </xsl:template>
   
     <xsl:template match="changes">
  -    <process source="[EMAIL PROTECTED]" producer="parser">
  -      <processor name="xslt">
  -        <parameter name="stylesheet" 
value="sbk:/style/stylesheets/{name(.)}2document.xsl"/>
  -      </processor>
  -      <processor name="xslt">
  -        <parameter name="stylesheet" 
value="sbk:/style/stylesheets/scan4resources.xsl"/>
  -      </processor>
  -    </process>
   
       <create source="[EMAIL PROTECTED]" target="[EMAIL PROTECTED]" 
producer="parser" printer="html">
         <processor name="xslt">
  @@ -53,9 +32,16 @@
           <parameter name="stylesheet" 
value="sbk:/style/stylesheets/document2html.xsl"/>
         </processor>
       </create>
  +
     </xsl:template>
     
     <xsl:template match="external">
  +  </xsl:template>
  +
  +  <xsl:template match="online-section">
  +    <xsl:if test="/book/@online=true">
  +      <xsl:apply-templates/>
  +    </xsl:if>
     </xsl:template>
   
   </xsl:stylesheet>
  
  
  
  1.2       +28 -7     
jakarta-avalon/src/skins/avalon/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon/src/skins/avalon/stylesheets/document2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl 2001/02/23 10:47:47     1.1
  +++ document2html.xsl 2001/02/26 13:42:21     1.2
  @@ -51,7 +51,6 @@
               </td>                
             </tr>
           </table>
  -
           <!-- THE MAIN PANEL (SIDEBAR AND CONTENT) -->
           <table width="100%" cellspacing="0" cellpadding="0" border="0">
             <tr>
  @@ -112,23 +111,45 @@
          book section
          
====================================================================== 
     -->
  +  <xsl:template match="online-section">
  +    <xsl:if test="/book/@online=true">
  +      <xsl:apply-templates/>
  +    </xsl:if>
  +  </xsl:template>
  +
     <xsl:template match="page|faqs|changes|todo|spec">
  -    <font face="arial,helvetica,sanserif" size="-1">
  -    <li><a href="[EMAIL PROTECTED]"><xsl:value-of select="@label"/></a></li>
  -    </font>
  +    <li>
  +      <a><xsl:attribute name="href"><xsl:value-of 
select="../@base"/>/<xsl:value-of select="@id"/>.html</xsl:attribute>
  +         <font face="arial,helvetica,sanserif" size="-1">
  +           <xsl:value-of select="@label"/>
  +         </font>
  +      </a>
  +    </li>
     </xsl:template>
   
  +  <xsl:template match="product">
  +    <a href="[EMAIL PROTECTED]">
  +      <font face="arial,helvetica,sanserif" size="+1" color="#F3510C">
  +        <xsl:value-of select="@label"/>
  +      </font>
  +    </a>
  +    <br/>
  +  </xsl:template>
  +
     <xsl:template match="external">
       <li><a href="[EMAIL PROTECTED]" target="[EMAIL PROTECTED]"><xsl:value-of 
select="@label"/></a></li>
  -    <br/>
     </xsl:template>
   
     <xsl:template match="separator">
  -    <p/>
  +    <br/>
     </xsl:template>
   
     <xsl:template match="section">
  -    <p><xsl:value-of select="@label"/></p>
  +    <font face="arial,helvetica,sanserif" size="+1" color="#000000">
  +      <xsl:value-of select="@label"/>
  +    </font>
  +    <br/>
  +    <ul><xsl:apply-templates/></ul>
     </xsl:template>
     
   <!-- ====================================================================== 
-->
  
  
  

Reply via email to