]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #2844916 (don't output @target if ulink.target is empty).
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 1 Oct 2009 16:40:01 +0000 (16:40 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 1 Oct 2009 16:40:01 +0000 (16:40 +0000)
xsl/html/inline.xsl

index ed0184540c73aa8cece6a6e048b0bfcf1b59b315..dca5d188f3f6d7e6811d575a5123cb59a95c6422 100644 (file)
               </xsl:if>
 
               <!-- For URIs, use @xlink:show if defined, otherwise use ulink.target -->
-              <xsl:attribute name="target">
-                <xsl:choose>
-                  <xsl:when test="$target.show !=''">
-                    <xsl:value-of select="$target.show"/>
-                  </xsl:when>
-                  <xsl:otherwise>
-                  <xsl:value-of select="$ulink.target"/>
-                  </xsl:otherwise>
-                </xsl:choose>
-              </xsl:attribute>
+             <xsl:choose>
+               <xsl:when test="$target.show !=''">
+                 <xsl:attribute name="target">
+                   <xsl:value-of select="$target.show"/>
+                 </xsl:attribute>
+               </xsl:when>
+               <xsl:when test="$ulink.target !=''">
+                 <xsl:attribute name="target">
+                   <xsl:value-of select="$ulink.target"/>
+                 </xsl:attribute>
+               </xsl:when>
+             </xsl:choose>
               
               <xsl:copy-of select="$content"/>
             </a>