You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2002/05/21 00:11:15 UTC
cvs commit: xml-forrest/src/documentation/skins/jakarta-site/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl
nicolaken 02/05/20 15:11:15
Modified: src/documentation/skins/jakarta-site/xslt/html book2menu.xsl
document2html.xsl site2xhtml.xsl
Log:
Updated to latest fixes and Ant filter tags.
Revision Changes Path
1.2 +1 -1 xml-forrest/src/documentation/skins/jakarta-site/xslt/html/book2menu.xsl
Index: book2menu.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/documentation/skins/jakarta-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:43 -0000 1.1
+++ book2menu.xsl 20 May 2002 22:11:15 -0000 1.2
@@ -26,4 +26,4 @@
</xsl:template>
<xsl:template match="node()|@*" priority="-1"/>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
1.3 +24 -18 xml-forrest/src/documentation/skins/jakarta-site/xslt/html/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/documentation/skins/jakarta-site/xslt/html/document2html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- document2html.xsl 25 Mar 2002 07:26:53 -0000 1.2
+++ document2html.xsl 20 May 2002 22:11:15 -0000 1.3
@@ -19,7 +19,11 @@
<tbody>
<tr>
<td bgcolor="#f3dd61">
- <span class="title"><xsl:value-of select="header/title"/></span>
+ <span class="title"><xsl:value-of select="header/title"/>
+ <xsl:if test="header/subtitle">
+  - <i><xsl:value-of select="header/subtitle"/></i>
+ </xsl:if>
+ </span>
</td>
</tr>
</tbody>
@@ -33,10 +37,6 @@
</tbody>
</table>
</xsl:if>
-
- <xsl:if test="header/subtitle">
- <font color="#525D76"><i><xsl:value-of select="header/subtitle"/></i></font><br/>
- </xsl:if>
<font color="#000000" size="-2">
<p>
@@ -51,9 +51,9 @@
</a>
</p>
</font>
-
+
<xsl:apply-templates select="body"/>
-
+
</body>
</xsl:template>
@@ -65,10 +65,16 @@
<xsl:apply-templates/>
</xsl:template>
-
- <xsl:template name="section" match="section">
+
+ <xsl:template match="section">
+ <xsl:call-template name="dosection">
+ <xsl:with-param name="level"><xsl:value-of select="count(ancestor::section)+1"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template name="dosection">
<xsl:param name="level"/>
-
+
<div align="right">
<table border="0" cellpadding="2" cellspacing="0">
<xsl:attribute name="width"><xsl:value-of select="number(100)-(1*(number($level)-1))"/>%</xsl:attribute>
@@ -96,29 +102,29 @@
</tr>
</table>
</div><br/>
-
+
</xsl:template>
-
+
<xsl:template match="s1">
- <xsl:call-template name="section">
+ <xsl:call-template name="dosection">
<xsl:with-param name="level">1</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="s2">
- <xsl:call-template name="section">
+ <xsl:call-template name="dosection">
<xsl:with-param name="level">2</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="s3">
- <xsl:call-template name="section">
+ <xsl:call-template name="dosection">
<xsl:with-param name="level">3</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="s4">
- <xsl:call-template name="section">
+ <xsl:call-template name="dosection">
<xsl:with-param name="level">4</xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -163,10 +169,10 @@
<td><font size="-1"><ul><li><xsl:value-of select="@alt"/></li></ul></font></td>
</tr>
</xsl:if>
-
+
</table>
</div>
-
+
</xsl:when>
</xsl:choose>
</xsl:template>
1.3 +11 -5 xml-forrest/src/documentation/skins/jakarta-site/xslt/html/site2xhtml.xsl
Index: site2xhtml.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/documentation/skins/jakarta-site/xslt/html/site2xhtml.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- site2xhtml.xsl 25 Mar 2002 07:26:53 -0000 1.2
+++ site2xhtml.xsl 20 May 2002 22:11:15 -0000 1.3
@@ -26,10 +26,15 @@
<!-- header -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
-<td align="left" valign="top"><a href="http://jakarta.apache.org/index.html"><img src="common/images/group-logo.gif" border="0" vspace="0" hspace="0"/></a></td><td bgcolor="#ffffff" align="left" valign="top" width="100%"><img src="common/images/project-logo.gif" align="right" border="0" vspace="0" hspace="0"/></td>
+<td align="left" valign="top"><a href="@group-logo.href@"><img src="@group-logo.src@" border="0" vspace="0" hspace="0"/></a></td><td bgcolor="#ffffff" align="left" valign="top" width="100%"><a href="@project-logo.href@"><img src="@project-logo.src@" align="right" border="0" vspace="0" hspace="0"/></a></td>
</tr>
<tr>
-<td bgcolor="#525d76" colspan="2"><span class="c1"><a href="http://www.apache.org/" class="black">www.apache.org ></a><a href="http://jakarta.apache.org/" class="black">jakarta.apache.org ></a></span></td>
+<td bgcolor="#525d76" colspan="2">
+<span class="c1">
+ <a href="@link1.href@" class="black">@link1@  > </a>
+ <a href="@link2.href@" class="black">@link2@  > </a>
+ <a href="@link3.href@" class="black">@link3@</a>
+</span></td>
</tr>
<tr>
<td height="8"></td>
@@ -64,7 +69,7 @@
</tr>
<tr>
<td align="center">
- <i>Copyright © 2002 Apache Software Foundation</i>
+ <i>Copyright © @year@ @vendor@. All Rights Reserved.</i>
</td>
</tr>
<tr>
@@ -74,8 +79,9 @@
</tr>
<tr>
<td width="100%" align="right">
- <a href="http://krysalis.org/"><img src="images/krysalis-compatible.jpg" alt="Krysalis Logo"/></a>
- <a href="http://xml.apache.org/cocoon/"><img src="images/built-with-cocoon.gif" alt="Cocoon Logo"/></a>
+ <a href="http://krysalis.org/"><img src="skin/images/krysalis-compatible.jpg" alt="Krysalis Logo"/></a>
+ <a href="http://xml.apache.org/cocoon/"><img src="skin/images/built-with-cocoon.gif" alt="Cocoon Logo"/></a>
+ <a href="http://jakarta.apache.org/ant/"><img src="skin/images/ant_logo_medium.gif" alt="Ant Logo"/></a>
</td>
</tr>
</tbody>