]> granicus.if.org Git - docbook-dsssl/commitdiff
Modified for new stylesheet olink system.
authorBob Stayton <bobs@sagehill.net>
Fri, 5 Jul 2002 08:21:17 +0000 (08:21 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 5 Jul 2002 08:21:17 +0000 (08:21 +0000)
Checks the collect.xref.targets parameter and
runs the target collection process if selected.
Default is to not run the collection process.

xsl/html/chunk.xsl

index 60cbd8184217432046fab2294489425f4ebad0b3..23079d3062588a56dafe02e3465a1eaf873d6ad6 100644 (file)
           </xsl:message>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:apply-templates select="key('id',$rootid)"/>
-          <xsl:if test="$tex.math.in.alt != ''">
-            <xsl:apply-templates select="key('id',$rootid)" mode="collect.tex.math"/>
+          <xsl:if test="$collect.xref.targets = 'yes' or
+                        $collect.xref.targets = 'only'">
+            <xsl:apply-templates select="key('id', $rootid)"
+                        mode="collect.targets"/>
           </xsl:if>
-          <xsl:if test="$generate.manifest != 0">
-            <xsl:call-template name="generate.manifest">
-              <xsl:with-param name="node" select="key('id',$rootid)"/>
-            </xsl:call-template>
+          <xsl:if test="$collect.xref.targets != 'only'">
+            <xsl:apply-templates select="key('id',$rootid)"
+                        mode="process.root"/>
+            <xsl:if test="$tex.math.in.alt != ''">
+              <xsl:apply-templates select="key('id',$rootid)"
+                          mode="collect.tex.math"/>
+            </xsl:if>
+            <xsl:if test="$generate.manifest != 0">
+              <xsl:call-template name="generate.manifest">
+                <xsl:with-param name="node" select="key('id',$rootid)"/>
+              </xsl:call-template>
+            </xsl:if>
           </xsl:if>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:apply-templates select="/" mode="process.root"/>
-      <xsl:if test="$tex.math.in.alt != ''">
-        <xsl:apply-templates select="/" mode="collect.tex.math"/>
+      <xsl:if test="$collect.xref.targets = 'yes' or
+                    $collect.xref.targets = 'only'">
+        <xsl:apply-templates select="/" mode="collect.targets"/>
       </xsl:if>
-      <xsl:if test="$generate.manifest != 0">
-        <xsl:call-template name="generate.manifest"/>
+      <xsl:if test="$collect.xref.targets != 'only'">
+        <xsl:apply-templates select="/" mode="process.root"/>
+        <xsl:if test="$tex.math.in.alt != ''">
+          <xsl:apply-templates select="/" mode="collect.tex.math"/>
+        </xsl:if>
+        <xsl:if test="$generate.manifest != 0">
+          <xsl:call-template name="generate.manifest"/>
+        </xsl:if>
       </xsl:if>
     </xsl:otherwise>
   </xsl:choose>