summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2003-10-30 18:33:18 +0000
committerShaun McCance <shaunm@src.gnome.org>2003-10-30 18:33:18 +0000
commit6aa64541f5ae6fe36386191bd33b7b1f6e9d3204 (patch)
treefb92acadc994ae18b9f9cdba438ae9285c639c07
parentc9bdbdb3d69196c5691c1a99144b49da3239e979 (diff)
downloadyelp-6aa64541f5ae6fe36386191bd33b7b1f6e9d3204.tar.gz
- Small fixes to chunking code.
* stylesheet/db2html-chunk.xsl: - Small fixes to chunking code.
-rw-r--r--stylesheets/ChangeLog5
-rw-r--r--stylesheets/db2html-chunk.xsl42
2 files changed, 27 insertions, 20 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog
index 0264d495..8be86ccf 100644
--- a/stylesheets/ChangeLog
+++ b/stylesheets/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-30 Shaun McCance <shaunm@gnome.org>
+
+ * db2html-chunk.xsl:
+ - Small fixes to chunking code.
+
2003-10-29 Shaun McCance <shaunm@gnome.org>
* db2html-chunk.xsl:
diff --git a/stylesheets/db2html-chunk.xsl b/stylesheets/db2html-chunk.xsl
index 8acc412e..d37768c9 100644
--- a/stylesheets/db2html-chunk.xsl
+++ b/stylesheets/db2html-chunk.xsl
@@ -17,33 +17,35 @@
</xsl:call-template>
</xsl:param>
- <xsl:choose>
- <xsl:when test="element-available('yelp:document')">
- <yelp:document href="{$id}">
- <xsl:call-template name="html">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_chunk" select="$depth_chunk"/>
- </xsl:call-template>
- </yelp:document>
- </xsl:when>
- <xsl:when test="element-available('exsl:document')">
- <exsl:document href="{concat($id, $html_extension)}">
- <xsl:call-template name="html">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="depth_chunk" select="$depth_chunk"/>
- </xsl:call-template>
- </exsl:document>
- </xsl:when>
- </xsl:choose>
+ <xsl:if test="$id">
+ <xsl:choose>
+ <xsl:when test="element-available('yelp:document')">
+ <yelp:document href="{$id}">
+ <xsl:call-template name="html">
+ <xsl:with-param name="node" select="$node"/>
+ <xsl:with-param name="depth_chunk" select="$depth_chunk"/>
+ </xsl:call-template>
+ </yelp:document>
+ </xsl:when>
+ <xsl:when test="element-available('exsl:document')">
+ <exsl:document href="{concat($id, $html_extension)}">
+ <xsl:call-template name="html">
+ <xsl:with-param name="node" select="$node"/>
+ <xsl:with-param name="depth_chunk" select="$depth_chunk"/>
+ </xsl:call-template>
+ </exsl:document>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:if>
<xsl:if test="$generate_titlepage and ($node = /*)">
- <xsl:apply-templates mode="chunk.info.mode" select=".">
+ <xsl:apply-templates mode="chunk.info.mode" select="$node">
<xsl:with-param name="depth_chunk" select="$depth_chunk"/>
</xsl:apply-templates>
</xsl:if>
<xsl:if test="$depth_chunk &lt; $chunk_depth">
- <xsl:apply-templates mode="chunk.divisions.mode" select=".">
+ <xsl:apply-templates mode="chunk.divisions.mode" select="$node">
<xsl:with-param name="depth_chunk" select="$depth_chunk"/>
</xsl:apply-templates>
</xsl:if>