forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/documentation/skins/xml-apache-site/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl
Date Mon, 20 May 2002 22:13:09 GMT
nicolaken    02/05/20 15:13:09

  Modified:    src/documentation/skins/xml-apache-site/xslt/html
                        book2menu.xsl document2html.xsl site2xhtml.xsl
  Log:
  Updated to latest version with Ant filter tags.
  
  Revision  Changes    Path
  1.2       +4 -4      xml-forrest/src/documentation/skins/xml-apache-site/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skins/xml-apache-site/xslt/html/book2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2menu.xsl	23 Mar 2002 16:10:44 -0000	1.1
  +++ book2menu.xsl	20 May 2002 22:13:09 -0000	1.2
  @@ -23,8 +23,8 @@
        <!-- Encode label to escape any reserved characters such as space -->
        <xsl:variable name="encLabel" select="NetUtils:encodePath(@label)"/>
        <tr>
  -      <td valign="top" bgcolor="#959595" background="images/label-background_b.gif">
  -       <img src="images/separator.gif"/><br/>
  +      <td valign="top" bgcolor="#959595" background="skin/images/label-background_b.gif">
  +       <img src="skin/images/separator.gif"/><br/>
          <span class="menutitle"><xsl:value-of select="@label"/></span></td>
        </tr>
        <xsl:apply-templates/>
  @@ -36,7 +36,7 @@
        <xsl:variable name="encLabel" select="NetUtils:encodePath(@label)"/>
        <tr>
         <td bgcolor="#959595" valign="top">
  -       <xsl:attribute name="background">images/label-background_a.gif</xsl:attribute>
  +       <xsl:attribute name="background">skin/images/label-background_a.gif</xsl:attribute>
          <xsl:choose>
            <xsl:when test="@href=$resource">
              <span class="menuselected"><xsl:value-of select="@label"/></span>
  @@ -53,7 +53,7 @@
     <xsl:template match="external">
       <xsl:if test="not(@type) or @type!='hidden'">
        <xsl:variable name="encLabel" select="NetUtils:encodePath(@label)"/>
  -     <tr><td bgcolor="#959595" background="images/label-background_a.gif" valign="top">
  +     <tr><td bgcolor="#959595" background="skin/images/label-background_a.gif"
valign="top">
           <a href="{@href}" target="new" class="menu"><xsl:value-of select="@label"/></a>
   	</td>
        </tr>
  
  
  
  1.2       +29 -21    xml-forrest/src/documentation/skins/xml-apache-site/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skins/xml-apache-site/xslt/html/document2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl	23 Mar 2002 16:10:44 -0000	1.1
  +++ document2html.xsl	20 May 2002 22:13:09 -0000	1.2
  @@ -35,30 +35,38 @@
   	<!-- ====================================================================== -->
   	<!-- body section -->
   	<!-- ====================================================================== -->
  -	<xsl:template match="s1">
  -		<font color="#0086b2" size="+2" face="verdana, helvetica, sans serif">
  +	<xsl:template match="section">
  +	
  +	 <xsl:variable name = "level" select = "count(ancestor::section)+1" />
  +	 
  +	 <xsl:choose>
  +	 	<xsl:when test="$level=1">
  +	 	  <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>
  +		  <hr size="1" style="color: #0086b2"/>
  +	      <xsl:apply-templates/>
  +	 	</xsl:when>
  +	 	<xsl:when test="$level=2">
   		<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">
  +	 	</xsl:when>
  +	 	<xsl:when test="$level=3">
   		<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">
  +	 	</xsl:when>
  +	 	<xsl:otherwise>
   		<font color="#0086b2" face="verdana, helvetica, sans serif">
      			<b><xsl:value-of select="@title"/></b>
   		</font>
  -		<xsl:apply-templates/>
  +		<xsl:apply-templates/>	 	 
  +	 	</xsl:otherwise>
  +	 </xsl:choose>
  +
   	</xsl:template>
   	<!-- ====================================================================== -->
   	<!-- footer section -->
  @@ -79,7 +87,7 @@
   			<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"/>
  +						<img src="skin/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">
  @@ -97,18 +105,18 @@
   			<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"/>
  +						<img src="skin/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"/>
  +						<img src="skin/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"/>
  +						<img src="skin/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"/>
  +						<img src="skin/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
   					</td>
   					<td bgcolor="#ffffff">
   						<pre>
  @@ -116,18 +124,18 @@
   						</pre>
   					</td>
   					<td bgcolor="#0086b2" width="1">
  -						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +						<img src="skin/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"/>
  +						<img src="skin/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"/>
  +						<img src="skin/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"/>
  +						<img src="skin/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
   					</td>
   				</tr>
   			</table>
  
  
  
  1.2       +35 -36    xml-forrest/src/documentation/skins/xml-apache-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skins/xml-apache-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- site2xhtml.xsl	23 Mar 2002 16:10:44 -0000	1.1
  +++ site2xhtml.xsl	20 May 2002 22:13:09 -0000	1.2
  @@ -11,7 +11,7 @@
   <html>
         <head>
           <title><xsl:value-of select="/site/document/title"/></title>
  -<STYLE type="text/css">
  +<style type="text/css">
   a.menu {
   	color: #FFFFFF;
       text-align:left;               
  @@ -37,7 +37,8 @@
       font-weight:bold;
       padding-left: 14px
   }
  -</STYLE>     
  +</style>     
  + <!--<link rel ="stylesheet" type="text/css" href="skin/xml-apache.css" title="Style"/>-->
         </head>
   
         <body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000"
  @@ -46,47 +47,33 @@
           <!-- 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 height="60" rowspan="3" valign="top" align="left" background="@group-logo.href@">
  +              <img height="60" src="@group-logo.src@" hspace="0" vspace="0" border="0"/>
               </td>
  -            <td width="100%" height="5" valign="top" align="left" colspan="2" background="images/line.gif">
  -              <img width="1" height="5" src="images/line.gif" hspace="0" vspace="0"
border="0" align="left"/>
  +            <td width="100%" height="5" valign="top" align="left" colspan="2" background="skin/images/line.gif">
  +              <img width="1" height="5" src="skin/images/line.gif" hspace="0" vspace="0"
border="0" align="left"/>
               </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"/>
  +              <img width="29" height="60" src="skin/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>
  +            <td width="100%" height="35" valign="top" align="left" bgcolor="#0086b2">
  +              <font size="5" face="Verdana, Arial, Helvetica, sans-serif" color="#ffffff">&#160;&#160;<xsl:value-of
select="/site/document/title"/></font>
  +            </td>
  +            <td width="100%" height="35" valign="top" align="right" bgcolor="#0086b2">
  +            <a href="@project-logo.href@"><img  height="35" src="@project-logo.src@"
hspace="0" vspace="0" border="0"/></a>
               </td>
             </tr>
             <tr>
  -            <td align="right" bgcolor="#0086b2" height="20" valign="top" width="100%"
colspan="2" background="images/bottom.gif">
  +            <td align="right" bgcolor="#0086b2" height="20" valign="top" width="100%"
colspan="2" background="skin/images/bottom.gif">
                  <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"/>
  -                    </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"/>
  -                    </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"/>
  -                    </a>
  -                  </td>
  -                </tr>
  +                   <td height="20" valign="top" align="left"></td>
  +                  <td height="20" valign="top" align="left"></td>
  +                  <td height="20" valign="top" align="left"></td>
  +                   </tr>
  +                   
                 </table>              
               </td>
             </tr>
  @@ -102,14 +89,14 @@
   			<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"/>
  +						<img border="0" height="14" hspace="0" src="skin/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"/>
  +						<img border="0" height="14" hspace="0" src="skin/images/close.gif" vspace="0"
width="120"/>
   						<br/>
   					</td>
   				</tr>
  @@ -133,16 +120,28 @@
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
       <td bgcolor="#0086b2">
  -      <img height="1" src="images/dot.gif" width="1"/>
  +      <img height="1" src="skin/images/dot.gif" width="1"/>
       </td>
     </tr>
     <tr>
       <td align="center">
         <font color="#0086b2" face="arial,helvetica,sanserif" size="-1">
  -        <i>Copyright &#169; 1999-2002 The Apache Software Foundation. All Rights
Reserved.</i>
  +        <i>Copyright &#169; @year@ @vendor@. All Rights Reserved.</i>
         </font>
       </td>
     </tr>
  +        <tr>
  +          <td width="100%" align="right">
  +			<br/>
  +          </td>
  +        </tr>        
  +        <tr>
  +          <td width="100%" align="right">
  +            <a href="http://krysalis.org/"><img src="skin/images/krysalis-compatible.jpg"
alt="Krysalis Logo" border="0"/></a> 
  +            <a href="http://xml.apache.org/cocoon/"><img src="skin/images/built-with-cocoon.gif"
alt="Cocoon Logo" border="0"/></a> 
  +            <a href="http://jakarta.apache.org/ant/"><img src="skin/images/ant_logo_medium.gif"
alt="Ant Logo" border="0"/></a> 
  +          </td>
  +        </tr>  
   </table>
   </body>
   
  
  
  

Mime
View raw message