summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vesik <sander.vesik@sun.com>2002-07-06 16:33:45 +0000
committerSander Vesik <sander@src.gnome.org>2002-07-06 16:33:45 +0000
commit835450a2cb09eeee206e67b02825f6f09461d57b (patch)
tree5a34730b53f5867aaa63a187c5a122b7f555db11
parent63f4509a271f9a35924b8698352183a617b63842 (diff)
downloadyelp-835450a2cb09eeee206e67b02825f6f09461d57b.tar.gz
stylesheets/yelp-customization.xsl - make <part> and <chapter> have plain
2002-07-06 Sander Vesik <sander.vesik@sun.com> * stylesheets/yelp-customization.xsl - make <part> and <chapter> have plain unstyled toc-s until yelp.render.toc is sufficently advanced - correctly pass in a string parameter when matching /book - call correct titlepage template for <book>
-rw-r--r--ChangeLog9
-rw-r--r--stylesheets/yelp-customization.xsl19
2 files changed, 24 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 9616ffd3..0fb07295 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2002-07-25 Sander Vesik <sander.vesik@sun.com>
+2002-07-06 Sander Vesik <sander.vesik@sun.com>
+ * stylesheets/yelp-customization.xsl
+ - make <part> and <chapter> have plain unstyled toc-s
+ until yelp.render.toc is sufficently advanced
+ - correctly pass in a string parameter when matching /book
+ - call correct titlepage template for <book>
+
+2002-07-05 Sander Vesik <sander.vesik@sun.com>
* stylesheets/yelp-customization.xsl
- make <book> support somewhat work
diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl
index 0f7a1bfd..14d9771d 100644
--- a/stylesheets/yelp-customization.xsl
+++ b/stylesheets/yelp-customization.xsl
@@ -434,15 +434,21 @@
<xsl:template name="yelp.book.multichunk">
<xsl:param name="root" select="."/>
+<xsl:for-each select="$root/part">
+ <xsl:comment> Start of chunk: [<xsl:value-of select="@id"/>] </xsl:comment>
+ <xsl:call-template name="division.toc"/>
+ <xsl:comment> End of chunk </xsl:comment>
+</xsl:for-each>
+
<xsl:for-each select="$root/part/chapter">
<xsl:comment> Start of chunk: [<xsl:value-of select="@id"/>] </xsl:comment>
- <xsl:call-template name="yelp.render.toc"/>
+ <xsl:call-template name="component.toc"/>
<xsl:comment> End of chunk </xsl:comment>
</xsl:for-each>
<xsl:for-each select="$root/chapter">
<xsl:comment> Start of chunk: [<xsl:value-of select="@id"/>] </xsl:comment>
- <xsl:call-template name="yelp.render.toc"/>
+ <xsl:call-template name="component.toc"/>
<xsl:comment> End of chunk </xsl:comment>
</xsl:for-each>
</xsl:template>
@@ -455,9 +461,16 @@
<xsl:comment> End of header </xsl:comment>
<xsl:comment> Start of chunk: [title-page] </xsl:comment>
+<xsl:choose>
+<xsl:when test="$type = 'book'">
+ <xsl:call-template name="book.titlepage"/>
+</xsl:when>
+<xsl:otherwise>
<xsl:call-template name="article.render.titlepage">
<xsl:with-param name="container" select="$container"/>
</xsl:call-template>
+</xsl:otherwise>
+</xsl:choose>
<xsl:comment> End of chunk </xsl:comment>
<xsl:comment> Start of chunk: [toc] </xsl:comment>
@@ -517,7 +530,7 @@
<xsl:template match="/book">
<xsl:call-template name="yelp.generic.root">
<xsl:with-param name="container" select="."/>
- <xsl:with-param name="type" select='book'/>
+ <xsl:with-param name="type" select="'book'"/>
</xsl:call-template>
</xsl:template>