summaryrefslogtreecommitdiff
path: root/xslt/docbook
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2007-04-24 14:45:25 +0000
committerShaun McCance <shaunm@src.gnome.org>2007-04-24 14:45:25 +0000
commit97f9c5bea11b3cfff99582f54290cd740d21a52f (patch)
treedea25921adbde5736e39c26f1308c4bca62d11ab /xslt/docbook
parent906dc1599df1aa451dfc09ff7d0ce5e6ea05a96b (diff)
downloadgnome-doc-utils-97f9c5bea11b3cfff99582f54290cd740d21a52f.tar.gz
- Respect db.chunk.basename
* xslt/docbook/common/db-chunk.xsl: * xslt/docbook/common/db-xref.xsl: - Respect db.chunk.basename svn path=/trunk/; revision=925
Diffstat (limited to 'xslt/docbook')
-rw-r--r--xslt/docbook/common/db-chunk.xsl3
-rw-r--r--xslt/docbook/common/db-xref.xsl3
2 files changed, 6 insertions, 0 deletions
diff --git a/xslt/docbook/common/db-chunk.xsl b/xslt/docbook/common/db-chunk.xsl
index e442e1b..c2f9873 100644
--- a/xslt/docbook/common/db-chunk.xsl
+++ b/xslt/docbook/common/db-chunk.xsl
@@ -140,6 +140,9 @@ chunking mechanism without having to duplicate the content-generation code.
<xsl:when test="$template = 'info'">
<xsl:value-of select="$db.chunk.info_basename"/>
</xsl:when>
+ <xsl:when test="$node = /*">
+ <xsl:value-of select="$db.chunk.basename"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:value-of select="$node/@id"/>
</xsl:otherwise>
diff --git a/xslt/docbook/common/db-xref.xsl b/xslt/docbook/common/db-xref.xsl
index a1e48ea..3ad93d4 100644
--- a/xslt/docbook/common/db-xref.xsl
+++ b/xslt/docbook/common/db-xref.xsl
@@ -346,6 +346,9 @@ REMARK: Talk about how this works with chunking
<xsl:value-of
select="concat($db.chunk.info_basename, $db.chunk.extension)"/>
</xsl:when>
+ <xsl:when test="$target = /*">
+ <xsl:value-of select="concat($db.chunk.basename, $db.chunk.extension)"/>
+ </xsl:when>
<xsl:when test="$is_chunk">
<xsl:value-of select="concat($linkend, $db.chunk.extension)"/>
</xsl:when>