]> granicus.if.org Git - docbook-dsssl/commitdiff
Added fix that preserves link/@role (makes links in the reference documentation
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 15 Jul 2010 14:37:33 +0000 (14:37 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 15 Jul 2010 14:37:33 +0000 (14:37 +0000)
with @role="tcg" work).

xsl/common/stripns.xsl

index 8885141350d47c2dac699ddd0538692316bbd6ef..e4fbdfd80e7c91365ca019ebfcc014d09535a45b 100644 (file)
 
 <xsl:template match="db:link[@xlink:href]" mode="stripNS">
   <ulink url="{@xlink:href}">
+    <xsl:if test="@role">
+      <xsl:attribute name="role">
+        <xsl:value-of select="@role"/>
+      </xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates mode="stripNS"/>
   </ulink>
 </xsl:template>