]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for generating olink database.
authorBob Stayton <bobs@sagehill.net>
Sun, 10 Apr 2005 18:09:50 +0000 (18:09 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 10 Apr 2005 18:09:50 +0000 (18:09 +0000)
xsl/eclipse/eclipse.xsl

index e77c24d73831824ee489d86ba69c6029f8c43873..3f498a93409a01bcaf6b5cb2eb3ff40ff8a138f7 100644 (file)
           </xsl:message>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message>
-          <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/>
+          <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="$collect.xref.targets != 'only'">
+            <xsl:message>Formatting from <xsl:value-of 
+                                 select="$rootid"/></xsl:message>
+            <xsl:apply-templates select="key('id',$rootid)"
+                        mode="process.root"/>
+            <xsl:call-template name="etoc"/>
+            <xsl:call-template name="plugin.xml"/>
+          </xsl:if>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:apply-templates select="/" mode="process.root"/>
+      <xsl:if test="$collect.xref.targets = 'yes' or
+                    $collect.xref.targets = 'only'">
+        <xsl:apply-templates select="/" mode="collect.targets"/>
+      </xsl:if>
+      <xsl:if test="$collect.xref.targets != 'only'">
+        <xsl:apply-templates select="/" mode="process.root"/>
+        <xsl:call-template name="etoc"/>
+        <xsl:call-template name="plugin.xml"/>
+      </xsl:if>
     </xsl:otherwise>
   </xsl:choose>
 
-  <xsl:call-template name="etoc"/>
-  <xsl:call-template name="plugin.xml"/>
 
 </xsl:template>