donaldp 01/03/12 22:17:12
Modified: src/skins/avalon/stylesheets book2project.xsl
changes2document.xsl document2html.xsl
Log:
Commit stylesheet changes I made ages ago and forgot to check in.
Revision Changes Path
1.6 +1 -4 jakarta-avalon/src/skins/avalon/stylesheets/book2project.xsl
Index: book2project.xsl
===================================================================
RCS file: /home/cvs/jakarta-avalon/src/skins/avalon/stylesheets/book2project.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- book2project.xsl 2001/03/03 23:55:18 1.5
+++ book2project.xsl 2001/03/13 06:17:12 1.6
@@ -45,10 +45,7 @@
<xsl:template match="external">
</xsl:template>
- <xsl:template match="online-section">
- <xsl:if test="/book/@online=true">
- <xsl:apply-templates/>
- </xsl:if>
+ <xsl:template match="project">
</xsl:template>
</xsl:stylesheet>
1.3 +0 -2 jakarta-avalon/src/skins/avalon/stylesheets/changes2document.xsl
Index: changes2document.xsl
===================================================================
RCS file:
/home/cvs/jakarta-avalon/src/skins/avalon/stylesheets/changes2document.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- changes2document.xsl 2001/03/03 23:55:18 1.2
+++ changes2document.xsl 2001/03/13 06:17:12 1.3
@@ -8,8 +8,6 @@
</xsl:copy>
</xsl:template>
- <xsl:param name="name"/>
-
<xsl:template match="changes">
<document>
<header>
1.7 +8 -16 jakarta-avalon/src/skins/avalon/stylesheets/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file: /home/cvs/jakarta-avalon/src/skins/avalon/stylesheets/document2html.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- document2html.xsl 2001/03/03 23:55:18 1.6
+++ document2html.xsl 2001/03/13 06:17:12 1.7
@@ -1,12 +1,15 @@
<?xml version="1.0"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="stylebook.project"/>
<xsl:param name="copyright"/>
<xsl:param name="docid"/>
<xsl:param name="target"/>
+ <xsl:output method="html" indent="yes"/>
+<!-- <xsl:strip-space elements="*"/> -->
+
<!-- voodoo magic to calculate base directory -->
<xsl:template name="get-base-directory">
<xsl:call-template name="get-base-directory-internal">
@@ -34,12 +37,10 @@
<!-- document section -->
<!-- ====================================================================== -->
- <xsl:template match="/">
- <!-- checks if this is the included document to avoid neverending loop -->
- <xsl:if test="not(book)">
+ <xsl:template match="document">
<html>
<head>
- <title><xsl:value-of select="document/header/title"/></title>
+ <title><xsl:value-of select="header/title"/></title>
</head>
<body text="#000000" link="#525D76" vlink="#023264" alink="#023264"
topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
@@ -91,9 +92,9 @@
<tr><td><br/><xsl:apply-templates/></td></tr>
<tr>
<td align="right">
- <xsl:if test="document/header/authors">
+ <xsl:if test="header/authors">
<p>by
- <xsl:for-each select="document/header/authors/person">
+ <xsl:for-each select="header/authors/person">
<a href="mailto:{@email}"><xsl:value-of select="@name"/></a>
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
@@ -123,11 +124,6 @@
</table>
</body>
</html>
- </xsl:if>
-
- <xsl:if test="book">
- <xsl:apply-templates/>
- </xsl:if>
</xsl:template>
<!--
@@ -135,10 +131,6 @@
book section
======================================================================
-->
- <xsl:template match="online-section">
- <xsl:if test="/book/@online=true"><xsl:apply-templates/></xsl:if>
- </xsl:template>
-
<xsl:template match="menu-item">
<xsl:choose>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]