jon 00/11/09 17:59:37
Modified: xdocs site-book.xml
xdocs/skin/stylesheets document2html.xsl
Log:
added support for <section> tags
Revision Changes Path
1.7 +3 -4 jakarta-velocity/xdocs/site-book.xml
Index: site-book.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/xdocs/site-book.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- site-book.xml 2000/11/08 17:30:37 1.6
+++ site-book.xml 2000/11/10 01:59:33 1.7
@@ -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>
1.5 +14 -39 jakarta-velocity/xdocs/skin/stylesheets/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file: /home/cvs/jakarta-velocity/xdocs/skin/stylesheets/document2html.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- document2html.xsl 2000/11/07 04:12:34 1.4
+++ document2html.xsl 2000/11/10 01:59:37 1.5
@@ -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 -->
<!-- ====================================================================== -->