summaryrefslogtreecommitdiff
path: root/docs/docbook/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-08-13 00:35:58 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-08-13 00:35:58 +0000
commit4e1bdbb757d2b23af46ebc92484e74db95fe3236 (patch)
tree767494331bcb86a913d456042a273ffc4febc358 /docs/docbook/xslt
parenta9975acc9255f1e047f680e424607479fcca6516 (diff)
downloadsamba-4e1bdbb757d2b23af46ebc92484e74db95fe3236.tar.gz
samba-4e1bdbb757d2b23af46ebc92484e74db95fe3236.tar.bz2
samba-4e1bdbb757d2b23af46ebc92484e74db95fe3236.zip
Last set of syntax fixes
(This used to be commit 1ab824e77edd955e90515b40e0d0c2d4f826b603)
Diffstat (limited to 'docs/docbook/xslt')
-rw-r--r--docs/docbook/xslt/expand-sambadoc.xsl12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/docbook/xslt/expand-sambadoc.xsl b/docs/docbook/xslt/expand-sambadoc.xsl
index 34496a91fc..2749fdf3e9 100644
--- a/docs/docbook/xslt/expand-sambadoc.xsl
+++ b/docs/docbook/xslt/expand-sambadoc.xsl
@@ -191,7 +191,17 @@
<xsl:template match="image">
<xsl:element name="figure">
- <xsl:attribute name="id"><xsl:value-of select="imagefile"/></xsl:attribute>
+ <xsl:attribute name="id">
+ <xsl:choose>
+ <xsl:when test="@id != ''">
+ <xsl:value-of select="@id"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="imagefile"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
<xsl:element name="title">
<xsl:value-of select="imagedescription"/>
</xsl:element>