cvs: php-gtk /docs common.xsl.in html-common.xsl
| From: | James Moore | Date: | Tue, 13 Mar 2001 18:21:58 +0000 |
| Subject: | cvs: php-gtk /docs common.xsl.in html-common.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-800@lists.php.net to get a copy of this message | ||
jmoore Tue Mar 13 10:21:58 2001 EDT
Modified files:
/php-gtk/docs common.xsl.in html-common.xsl
Log:
Updating style sheets to cope with new authoremail element in phpgtkdoc.dtd
Index: php-gtk/docs/common.xsl.in
diff -u php-gtk/docs/common.xsl.in:1.1 php-gtk/docs/common.xsl.in:1.2
--- php-gtk/docs/common.xsl.in:1.1 Tue Mar 13 07:37:02 2001
+++ php-gtk/docs/common.xsl.in Tue Mar 13 10:21:58 2001
@@ -2,7 +2,7 @@
Implements Common Named Templates
- $Id: common.xsl.in,v 1.1 2001/03/13 15:37:02 jmoore Exp $
+ $Id: common.xsl.in,v 1.2 2001/03/13 18:21:58 jmoore Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -23,5 +23,12 @@
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:template>
+
+ <xsl:template name="author-email-link">
+ <xsl:if test="name(.)='author' or name(.)='editor'">
+ <xsl:text>mailto:</xsl:text><xsl:value-of
select="./authoremail" />
+ </xsl:if>
+ </xsl:template>
+
</xsl:stylesheet>
Index: php-gtk/docs/html-common.xsl
diff -u php-gtk/docs/html-common.xsl:1.1 php-gtk/docs/html-common.xsl:1.2
--- php-gtk/docs/html-common.xsl:1.1 Tue Mar 13 07:37:02 2001
+++ php-gtk/docs/html-common.xsl Tue Mar 13 10:21:58 2001
@@ -2,21 +2,63 @@
Implements HTML Specific Stylesheets
- $Id: html-common.xsl,v 1.1 2001/03/13 15:37:02 jmoore Exp $
+ $Id: html-common.xsl,v 1.2 2001/03/13 18:21:58 jmoore Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="authorgroup" mode="book.titlepage.recto.mode">
- <h2>
+ <h3>
<xsl:call-template name="authorgroup-title">
<xsl:with-param name="id">
<xsl:value-of select="@id" />
</xsl:with-param>
</xsl:call-template>
- </h2>
+ </h3>
<xsl:apply-templates mode="book.titlepage.recto.mode" />
</xsl:template>
+
+ <xsl:template match="author" mode="book.titlepage.recto.mode">
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
+ <xsl:call-template name="editor-author-text" />
+ </div>
+ </xsl:template>
+
+ <xsl:template match="author/contrib" mode="book.titlepage.recto.mode">
+ <xsl:text> : </xsl:text><xsl:apply-templates
mode="book.title.recto.mode" />
+ </xsl:template>
+
+ <xsl:template name="editor-author-text" >
+ <xsl:element name="A">
+ <xsl:attribute name="HREF">
+ <xsl:call-template name="author-email-link" />
+ </xsl:attribute>
+ <xsl:apply-templates select="honorific|firstname|othername|surname|lineage"
mode="book.titlepage.recto.mode" />
+ </xsl:element>
+ <xsl:apply-templates select="affiliation|authorblurb|contrib"
mode="book.titlepage.recto.mode" />
+ </xsl:template>
+
+ <xsl:template match="editor" mode="book.titlepage.recto.mode">
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
+ <xsl:element name="h4">
+ <xsl:attribute name="class">editedby</xsl:attribute>
+ <xsl:text>Edited by</xsl:text>
+ </xsl:element>
+ <xsl:element name="h3">
+ <xsl:attribute name="class">
+ <xsl:value-of select="name(.)" />
+ </xsl:attribute>
+ <xsl:call-template name="editor-author-text" />
+ </xsl:element>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="firstname" mode="book.titlepage.recto.mode">
+ <xsl:value-of select="." /><xsl:text> </xsl:text><xsl:value-of
select="following-sibling::surname" />
+ </xsl:template>
+
+ <xsl:template match="surname" mode="book.titlepage.recto.mode" />
+
</xsl:stylesheet>