summaryrefslogtreecommitdiff
path: root/docs/docbook/xslt/expand-sambadoc.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docbook/xslt/expand-sambadoc.xsl')
-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>