]> granicus.if.org Git - docbook-dsssl/commitdiff
modified ulink patch from twaugh. Be nice to content-less ulinks. But we
authorMartijn van Beers <lotr@users.sourceforge.net>
Wed, 1 May 2002 20:45:37 +0000 (20:45 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Wed, 1 May 2002 20:45:37 +0000 (20:45 +0000)
don't accomodate silly people who don't understand ulink and put the
url as the content too.

contrib/xsl/db2man/db2man.xsl

index 724589ec90b8293e7fc2006900fc50757af236d7..3b240d468e0737ba4b58e026dfed35c4494d4221 100644 (file)
 </xsl:template>
 
 <xsl:template match="ulink">
-  <xsl:apply-templates/>
-  <xsl:text>: </xsl:text>
+  <xsl:variable name="content">
+    <xsl:apply-templates/>
+  </xsl:variable>
+  <xsl:if test="$content != ''">
+    <xsl:text>: </xsl:text>
+    <xsl:value-of select="$content" />
+  </xsl:if>
   <xsl:apply-templates mode="italic" select="@url" />
 </xsl:template>