]> granicus.if.org Git - docbook-dsssl/commitdiff
Set default value of annotation.support param to 0 (off). Also,
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 11 Aug 2005 05:29:15 +0000 (05:29 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 11 Aug 2005 05:29:15 +0000 (05:29 +0000)
wrapped contents of the apply-annotations template in a "if"
statement, so that those contents get evaluated only if
annotation.support is non-zero.

The reason for these changes was a report from Doug du Boulay (on
the docbook-apps list) that processing of the apply-annotations
template was consuming 75% of the total processing time for a
2.5Mb file. Anatoly Techtonik followed with a comment that with
1.69.0, "Compiling took about full working day on 12Mb file while
earlier it was about 2-4 hours".

xsl/html/annotations.xsl
xsl/params/annotation.support.xml

index cae9a1d824932244cb54545898be4bac7999045a..69f35e382c036081826eca7807f489cfe963f260 100644 (file)
@@ -20,6 +20,7 @@
 <xsl:template match="annotation"/>
 
 <xsl:template name="apply-annotations">
+  <xsl:if test="$annotation.support != 0">
   <!-- do any annotations apply to the context node? -->
   <xsl:variable name="id" select="(@id|@xml:id)[1]"/>
 
@@ -47,6 +48,7 @@
       <xsl:with-param name="gids" select="normalize-space($aids)"/>
     </xsl:call-template>
   </xsl:if>
+  </xsl:if>
 </xsl:template>
 
 <xsl:template name="annotations-pointed-to">
index cbc27a8e338086a88b573a14f1e2e962860aa6e4..cd6e626f5d52ea0843f565038fd9633136570203 100644 (file)
@@ -10,7 +10,7 @@
 
 <refsynopsisdiv>
 <src:fragment id='annotation.support.frag'>
-<xsl:param name="annotation.support" select="1"/>
+<xsl:param name="annotation.support" select="0"/>
 </src:fragment>
 </refsynopsisdiv>