svn commit: r41365 - projects/xml-tools/share/xsl
Gabor Kovesdan
gabor at FreeBSD.org
Thu Apr 4 11:39:29 UTC 2013
Author: gabor
Date: Thu Apr 4 11:39:28 2013
New Revision: 41365
URL: http://svnweb.freebsd.org/changeset/doc/41365
Log:
- sectX author rendering needs the same customization as used for chapter
authors
Modified:
projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl
projects/xml-tools/share/xsl/freebsd-xhtml-titlepage.xsl
projects/xml-tools/share/xsl/titlepage.templates.xml
Modified: projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Thu Apr 4 02:38:21 2013 (r41364)
+++ projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Thu Apr 4 11:39:28 2013 (r41365)
@@ -75,7 +75,7 @@
</div>
</xsl:template>
- <xsl:template name="chapter.authorgroup">
+ <xsl:template name="freebsd.authorgroup">
<span class="authorgroup">
<!-- XXX: our docs use a quirky semantics for this -->
@@ -108,11 +108,27 @@
<xsl:apply-templates/>
</xsl:template>
- <xsl:template name="chapter.author">
+ <xsl:template name="freebsd.author">
<xsl:if test="contrib">
<xsl:apply-templates select="contrib"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:apply-templates select="*[not(self::contrib)]"/>
</xsl:template>
+
+ <xsl:template name="chapter.authorgroup">
+ <xsl:call-template name="freebsd.authorgroup"/>
+ </xsl:template>
+
+ <xsl:template name="section.authorgroup">
+ <xsl:call-template name="freebsd.authorgroup"/>
+ </xsl:template>
+
+ <xsl:template name="chapter.author">
+ <xsl:call-template name="freebsd.author"/>
+ </xsl:template>
+
+ <xsl:template name="section.author">
+ <xsl:call-template name="freebsd.author"/>
+ </xsl:template>
</xsl:stylesheet>
Modified: projects/xml-tools/share/xsl/freebsd-xhtml-titlepage.xsl
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-xhtml-titlepage.xsl Thu Apr 4 02:38:21 2013 (r41364)
+++ projects/xml-tools/share/xsl/freebsd-xhtml-titlepage.xsl Thu Apr 4 11:39:28 2013 (r41365)
@@ -2159,13 +2159,15 @@
<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="section.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="section.titlepage.recto.style">
-<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
@@ -2346,13 +2348,15 @@
<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
@@ -2533,13 +2537,15 @@
<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
@@ -2720,13 +2726,15 @@
<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
@@ -2907,13 +2915,15 @@
<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
@@ -3094,13 +3104,15 @@
<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
-<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
@@ -3298,13 +3310,15 @@
<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
+<xsl:call-template name="section.authorgroup">
+</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
-<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
+<xsl:call-template name="section.author">
+</xsl:call-template>
</div>
</xsl:template>
Modified: projects/xml-tools/share/xsl/titlepage.templates.xml
==============================================================================
--- projects/xml-tools/share/xsl/titlepage.templates.xml Thu Apr 4 02:38:21 2013 (r41364)
+++ projects/xml-tools/share/xsl/titlepage.templates.xml Thu Apr 4 11:39:28 2013 (r41365)
@@ -383,8 +383,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
@@ -414,8 +414,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
@@ -445,8 +445,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
@@ -476,8 +476,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
@@ -507,8 +507,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
@@ -538,8 +538,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
@@ -569,8 +569,8 @@
<title/>
<subtitle/>
<corpauthor/>
- <authorgroup/>
- <author/>
+ <authorgroup t:named-template="section.authorgroup"/>
+ <author t:named-template="section.author"/>
<othercredit/>
<releaseinfo/>
<copyright/>
More information about the svn-doc-projects
mailing list