aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-09-09 08:55:14 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-09-09 08:55:14 +0000
commitc1fe047a4d7b6890809ba4ce2e25f290c5d11962 (patch)
treedf8ae9fb1adbe06584916a01634ed4148f07c913 /stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl
parente7477591dd2a1302aadec48724cb070850caebee (diff)
Merged r8368 from new-xsl branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8369 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl
index 0a5e449ec..1663a9ccd 100644
--- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl
+++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/glossary.xsl
@@ -49,8 +49,11 @@
<xsl:when test="glossdiv">
<xsl:apply-templates select="(glossdiv[1]/preceding-sibling::*)"/>
</xsl:when>
- <xsl:otherwise>
+ <xsl:when test="glossentry">
<xsl:apply-templates select="(glossentry[1]/preceding-sibling::*)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
@@ -58,7 +61,7 @@
<xsl:when test="glossdiv">
<xsl:apply-templates select="glossdiv"/>
</xsl:when>
- <xsl:otherwise>
+ <xsl:when test="glossentry">
<dl>
<xsl:choose>
<xsl:when test="$glossary.sort != 0">
@@ -71,6 +74,9 @@
</xsl:otherwise>
</xsl:choose>
</dl>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- empty glossary -->
</xsl:otherwise>
</xsl:choose>