]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle alt text on xrefs to steps when the step doesn't have a title.
authorDavid Cramer <david@thingbag.net>
Thu, 7 Jun 2007 22:07:40 +0000 (22:07 +0000)
committerDavid Cramer <david@thingbag.net>
Thu, 7 Jun 2007 22:07:40 +0000 (22:07 +0000)
xsl/html/xref.xsl

index 5af646659a890049c9a167631dd561fde1f57fd9..3de14edb63b8550fc1c2d8239bd3524e87a89e05 100644 (file)
   <xsl:apply-templates select="." mode="number"/>
 </xsl:template>
 
+<xsl:template match="step[not(./title)]" mode="title.markup">
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'Step'"/>
+  </xsl:call-template>
+  <xsl:text> </xsl:text>
+  <xsl:apply-templates select="." mode="number"/>
+</xsl:template>
+
 <xsl:template match="co" mode="xref-title">
   <xsl:variable name="title">
     <xsl:apply-templates select="." mode="callout-bug"/>