]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed problem when referencing empty ulinks; use @url instead
authorThomas Schraitle <tom_schr@web.de>
Thu, 17 Oct 2013 18:11:29 +0000 (18:11 +0000)
committerThomas Schraitle <tom_schr@web.de>
Thu, 17 Oct 2013 18:11:29 +0000 (18:11 +0000)
xsl/common/titles.xsl

index 952cab5f7538d2c6eb4f0c1c9f29ddbd936c6492..7ba81f403980bee9d9e6b7834fa1ad5be8770e8e 100644 (file)
@@ -694,7 +694,15 @@ title of the element. This does not include the label.
 </xsl:template>
 
 <xsl:template match="ulink" mode="no.anchor.mode">
-  <xsl:apply-templates/>
+  <xsl:param name="url" select="@url"/>
+  <xsl:choose>
+    <xsl:when test="count(child::node())=0">
+      <xsl:value-of select="$url"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates/>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="link" mode="no.anchor.mode">