added support for <section> tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/velocity/trunk@73633 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xdocs/site-book.xml b/xdocs/site-book.xml
index 893fc52..0cfa3ed 100644
--- a/xdocs/site-book.xml
+++ b/xdocs/site-book.xml
@@ -2,7 +2,7 @@
<book title="Velocity Documentation" copyright="2000 The Apache Software Foundation">
-<separator/>
+<section label="About"/>
<page id="index" label="Overview" source="index.xml"/>
<page id="getting-started" label="Getting Started" source="getting-started.xml"/>
<page id="install" label="Install" source="install.xml"/>
@@ -11,12 +11,11 @@
<page id="code-standards" label="Coding Standards" source="code-standards.xml"/>
<page id="license" label="License" source="license.xml"/>
<page id="todo" label="TODO" source="todo.xml"/>
- <separator/>
+<section label="Guides"/>
<page id="user-guide" label="User's Guide" source="user-guide.xml"/>
<page id="developer-guide" label="Developer's Guide" source="developer-guide.xml"/>
<page id="vtl-reference-guide" label="VTL Reference Guide" source="vtl-reference-guide.xml"/>
- <separator/>
+<section label="Tools"/>
<page id="texen" label="Texen" source="texen.xml"/>
- <separator/>
<page id="migration" label="Migration To Velocity" source="migration.xml"/>
</book>
diff --git a/xdocs/skin/stylesheets/document2html.xsl b/xdocs/skin/stylesheets/document2html.xsl
index 45307fd..264ae2a 100644
--- a/xdocs/skin/stylesheets/document2html.xsl
+++ b/xdocs/skin/stylesheets/document2html.xsl
@@ -15,6 +15,7 @@
<xsl:if test="not(book)">
<html>
<head>
+ <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
<title><xsl:value-of select="document/header/title"/></title>
</head>
<body text="#000000" link="#023264" vlink="#023264" alink="#023264"
@@ -104,6 +105,10 @@
<xsl:template match="separator">
<p/>
</xsl:template>
+
+ <xsl:template match="section">
+ <p><xsl:value-of select="@label"/></p>
+ </xsl:template>
<!-- ====================================================================== -->
<!-- header section -->
@@ -279,28 +284,22 @@
</xsl:template>
<xsl:template match="source">
- <div align="left">
- <table cellspacing="0" cellpadding="0" border="0">
+ <div align="center">
+ <table cellspacing="4" cellpadding="0" border="0">
<tr>
- <td bgcolor="#023264" height="1" colspan="3"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="#ffffff">
- <table>
- <tr>
- <td align="left">
- <pre>
- <xsl:apply-templates/>
- </pre>
- </td>
- </tr>
- </table>
- </td>
+ <td bgcolor="#ffffff"><pre><xsl:apply-templates/></pre></td>
<td bgcolor="#023264" width="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
- <td bgcolor="#023264" height="1" colspan="3"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="#023264" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
@@ -402,31 +401,7 @@
<xsl:template match="code">
<code><font face="courier, monospaced"><xsl:apply-templates/></font></code>
</xsl:template>
-
- <xsl:template match="variable">
- <variable><font face="courier,
-monospaced"><xsl:apply-templates/></font></variable>
- </xsl:template>
-
- <xsl:template match="vtldirective">
- <variable><font face="courier,
-monospaced"><xsl:apply-templates/></font></variable>
- </xsl:template>
-
- <xsl:template match="vtl">
- <variable><font face="courier,
-monospaced"><xsl:apply-templates/></font></variable>
- </xsl:template>
- <xsl:template match="filename">
- <filename><xsl:apply-templates/></filename>
- </xsl:template>
-
- <xsl:template match="dummyvariable">
- <dummyvariable><font face="courier,
-monospaced"><xsl:apply-templates/></font></dummyvariable>
- </xsl:template>
-
<!-- ====================================================================== -->
<!-- images section -->
<!-- ====================================================================== -->