You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/03/25 02:14:05 UTC
cvs commit: jakarta-commons/latka/xsl/site site.xsl
dion 02/03/24 17:14:05
Modified: latka/xsl/site site.xsl
Log:
Updated L&F experimentally
Revision Changes Path
1.4 +29 -18 jakarta-commons/latka/xsl/site/site.xsl
Index: site.xsl
===================================================================
RCS file: /home/cvs/jakarta-commons/latka/xsl/site/site.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- site.xsl 31 Jan 2002 12:39:06 -0000 1.3
+++ site.xsl 25 Mar 2002 01:14:05 -0000 1.4
@@ -13,7 +13,7 @@
-->
-<!-- $Id: site.xsl,v 1.3 2002/01/31 12:39:06 dion Exp $ -->
+<!-- $Id: site.xsl,v 1.4 2002/03/25 01:14:05 dion Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
@@ -26,7 +26,8 @@
<!-- Defined parameters (overrideable) -->
- <xsl:param name="relative-path" select="'.'"/>
+ <xsl:param name="relative-path" select="'.'"/>
+ <xsl:param name="project-doc" select="'project.xml'" />
<!-- Defined variables (non-overrideable) -->
<xsl:variable name="body-bg" select="'#ffffff'"/>
@@ -44,19 +45,15 @@
<!-- Process an entire document into an HTML page -->
<xsl:template match="document">
<xsl:variable name="project"
- select="document('project.xml')/project"/>
+ select="document($project-doc)/project"/>
<html>
<head>
<xsl:apply-templates select="meta"/>
<title><xsl:value-of select="$project/title"/> - <xsl:value-of select="properties/title"/></title>
<xsl:for-each select="properties/author">
- <xsl:variable name="name">
- <xsl:value-of select="."/>
- </xsl:variable>
- <xsl:variable name="email">
- <xsl:value-of select="@email"/>
- </xsl:variable>
+ <xsl:variable name="name"><xsl:value-of select="."/></xsl:variable>
+ <xsl:variable name="email"><xsl:value-of select="@email"/></xsl:variable>
<meta name="author" value="{$name}"/>
<meta name="email" value="{$email}"/>
</xsl:for-each>
@@ -69,13 +66,16 @@
<xsl:comment>PAGE HEADER</xsl:comment>
<tr><td colspan="2">
-
+ <table width="100%"><tr><td>
<xsl:comment>JAKARTA LOGO</xsl:comment>
<a href="http://jakarta.apache.org/">
<img src="http://jakarta.apache.org/images/jakarta-logo.gif"
align="left" alt="The Jakarta Project" border="0"/>
</a>
- <xsl:if test="$project/logo">
+ </td>
+ <td style="text-align:right; font-weight:bold">
+ <xsl:choose>
+ <xsl:when test="$project/logo">
<xsl:variable name="alt">
<xsl:value-of select="$project/logo"/>
</xsl:variable>
@@ -90,8 +90,10 @@
<a href="{$home}">
<img src="{$src}" align="right" alt="{$alt}" border="0"/>
</a>
- </xsl:if>
-
+ </xsl:when>
+ <xsl:otherwise><xsl:value-of select="$project/@name"/></xsl:otherwise>
+ </xsl:choose>
+ </td></tr></table>
</td></tr>
<xsl:comment>HEADER SEPARATOR</xsl:comment>
@@ -105,7 +107,9 @@
<xsl:comment>LEFT SIDE NAVIGATION</xsl:comment>
<td width="20%" valign="top" nowrap="true">
+<!-- <ul style="list-style-type:none; margin-left:0; padding-left:0">-->
<xsl:apply-templates select="$project/body/menu"/>
+<!-- </ul>-->
</td>
<xsl:comment>RIGHT SIDE MAIN BODY</xsl:comment>
@@ -138,10 +142,13 @@
<!-- Process a menu for the navigation bar -->
<xsl:template match="menu">
- <p><strong><xsl:value-of select="@name"/></strong></p>
- <ul>
- <xsl:apply-templates select="item"/>
- </ul>
+<!-- <li><strong><xsl:value-of select="@name"/></strong>
+ <ul style="list-style-type:disc"><xsl:apply-templates select="item"/></ul>
+ </li>-->
+ <span style="font-family: Arial, Helvetica, sans-serif; font-weight:bold"><xsl:value-of select="@name"/></span>
+ <xsl:apply-templates select="item"/>
+ <hr />
+
</xsl:template>
@@ -160,7 +167,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <li><a href="{$href}"><xsl:value-of select="@name"/></a></li>
+<!-- <li><a href="{$href}"><xsl:value-of select="@name"/></a></li>-->
+ <br />
+ <span style="margin-left:0.67em">
+ <a href="{$href}"><xsl:value-of select="@name"/></a>
+ </span>
</xsl:template>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>