]> granicus.if.org Git - docbook-dsssl/commitdiff
Enumarete separate file for revhistory if generate.revhistory.link=1
authorJirka Kosek <jirka@kosek.cz>
Fri, 24 May 2013 13:43:04 +0000 (13:43 +0000)
committerJirka Kosek <jirka@kosek.cz>
Fri, 24 May 2013 13:43:04 +0000 (13:43 +0000)
xsl/html/chunk-code.xsl

index aa18e1700ac6070cd13a8373c1df9ef6292a9ad4..04aea32e962e7341b03092e9c16ed5d3d5bb5ea4 100644 (file)
   </xsl:if>
 </xsl:template>
 
+<xsl:template match="revhistory" mode="enumerate-files">
+  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+  <xsl:if test="$generate.revhistory.link != 0">
+    <xsl:call-template name="make-relative-filename">
+      <xsl:with-param name="base.dir">
+        <xsl:if test="$manifest.in.base.dir = 0">
+          <xsl:value-of select="$chunk.base.dir"/>
+        </xsl:if>
+      </xsl:with-param>
+      <xsl:with-param name="base.name">
+       <xsl:call-template name="ln.or.rh.filename">
+         <xsl:with-param name="is.ln" select="false()"/>
+       </xsl:call-template>
+      </xsl:with-param>
+    </xsl:call-template>
+    <xsl:text>&#10;</xsl:text>
+  </xsl:if>
+</xsl:template>
+
 <xsl:template match="mediaobject[imageobject] | inlinemediaobject[imageobject]" mode="enumerate-files">
   <xsl:variable name="longdesc.uri">
     <xsl:call-template name="longdesc.uri">