]> granicus.if.org Git - docbook-dsssl/commitdiff
Remove all passivetex code because it is obsolete.
authorBob Stayton <bobs@sagehill.net>
Fri, 26 Oct 2012 17:42:03 +0000 (17:42 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 26 Oct 2012 17:42:03 +0000 (17:42 +0000)
16 files changed:
xsl/fo/admon.xsl
xsl/fo/autoidx.xsl
xsl/fo/autotoc.xsl
xsl/fo/callout.xsl
xsl/fo/component.xsl
xsl/fo/division.xsl
xsl/fo/docbook.xsl
xsl/fo/graphics.xsl
xsl/fo/htmltbl.xsl
xsl/fo/lists.xsl
xsl/fo/math.xsl
xsl/fo/pagesetup.xsl
xsl/fo/refentry.xsl
xsl/fo/sections.xsl
xsl/fo/spaces.xsl
xsl/fo/table.xsl

index 9662ac5e0b6ad9486bb26925f705ac814fcf1425..51a82c2b7232bb963c57b7093753b197bd168048 100644 (file)
@@ -46,8 +46,7 @@
   </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="$passivetex.extensions != 0
-                    or $fop.extensions != 0
+    <xsl:when test="$fop.extensions != 0
                     or $arbortext.extensions != 0">
       <xsl:value-of select="$filename"/>
     </xsl:when>
index cdc2f0422e2d5f204ddc0f09d02d4cba9160ea61..ef0b3182022f5275f1493e71188cfdbea60099c0 100644 (file)
           </xsl:for-each>
         </xsl:variable>
 
-        <xsl:choose>
-          <xsl:when test="$passivetex.extensions != '0'">
-            <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
-              <xsl:copy-of select="$page-number-citations"/>
-            </fotex:sort>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:copy-of select="$page-number-citations"/>
-          </xsl:otherwise>
-        </xsl:choose>
+        <xsl:copy-of select="$page-number-citations"/>
       </xsl:otherwise>
     </xsl:choose>
 
           </xsl:for-each>
         </xsl:variable>
 
-        <xsl:choose>
-          <xsl:when test="$passivetex.extensions != '0'">
-            <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
-              <xsl:copy-of select="$page-number-citations"/>
-            </fotex:sort>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:copy-of select="$page-number-citations"/>
-          </xsl:otherwise>
-        </xsl:choose>
+        <xsl:copy-of select="$page-number-citations"/>
       </xsl:otherwise>
     </xsl:choose>
 
           </xsl:for-each>
         </xsl:variable>
 
-        <xsl:choose>
-          <xsl:when test="$passivetex.extensions != '0'">
-            <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
-              <xsl:copy-of select="$page-number-citations"/>
-            </fotex:sort>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:copy-of select="$page-number-citations"/>
-          </xsl:otherwise>
-        </xsl:choose>
+        <xsl:copy-of select="$page-number-citations"/>
       </xsl:otherwise>
     </xsl:choose>
 
         <fo:page-number-citation ref-id="{$id}"/>
       </fo:basic-link>
 
-      <xsl:if test="$passivetex.extensions = '0'">
-        <xsl:copy-of select="$number.separator"/>
-      </xsl:if>
+      <xsl:copy-of select="$number.separator"/>
       <xsl:call-template name="reference">
         <xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
         <xsl:with-param name="scope" select="$scope"/>
index 04e44060f0c8ba2f2a86e57c2b5826283656b947..bff10ee7284ce48b1dbbaf8937531b5ace1897dc 100644 (file)
   </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
+    <xsl:when test="$fop.extensions != 0">
        <xsl:value-of select="concat($depth*$toc.indent.width, 'pt')"/>
     </xsl:when>
     <xsl:otherwise>
index 85ec40fa2d16fa2e9113fa6a4038c99d69f30a4d..025d4a536a3aecbbcf0275a0292216ec0bc53c1c 100644 (file)
                            width="{$callout.icon.size}">
         <xsl:attribute name="src">
           <xsl:choose>
-            <xsl:when test="$passivetex.extensions != 0
-                            or $fop.extensions != 0
+            <xsl:when test="$fop.extensions != 0
                             or $arbortext.extensions != 0">
               <xsl:value-of select="$filename"/>
             </xsl:when>
index 3a066326fb20469d8076afde3a9cf140b03599e9..d68106073f54ea85d978e425c5f7da96a1c5ebd7 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
-  <xsl:if test="$passivetex.extensions != 0">
-    <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
-                    fotex-bookmark-level="2"
-                    fotex-bookmark-label="{$id}">
-      <xsl:value-of select="$titleabbrev"/>
-    </fotex:bookmark>
-  </xsl:if>
-
   <fo:block xsl:use-attribute-sets="component.title.properties">
     <xsl:if test="$pagewide != 0">
       <!-- Doesn't work to use 'all' here since not a child of fo:flow -->
       </xsl:attribute>
     </xsl:if>
 
-    <xsl:if test="$passivetex.extensions != 0">
-      <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 
-                      fotex-bookmark-level="{count(ancestor::*)+2}" 
-                      fotex-bookmark-label="{$id}">
-        <xsl:value-of select="$titleabbrev"/>
-      </fotex:bookmark>
-    </xsl:if>
-
     <fo:block xsl:use-attribute-sets="article.appendix.title.properties">
       <fo:marker marker-class-name="section.head.marker">
         <xsl:choose>
index 4bdec7fac5779be28e9cffd68f452609b63d0ea0..484a3f8d0c6bbf58b46504dfb5637c741bb24d47 100644 (file)
     </xsl:apply-templates>
   </xsl:variable>
 
-  <xsl:if test="$passivetex.extensions != 0">
-    <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
-                    fotex-bookmark-level="1"
-                    fotex-bookmark-label="{$id}">
-      <xsl:value-of select="$title"/>
-    </fotex:bookmark>
-  </xsl:if>
-
   <fo:block keep-with-next.within-column="always"
             hyphenate="false">
     <xsl:if test="$axf.extensions != 0">
index 189401f9639da9beaf09e230f5e091d2c1525968..5c41c245aecc98b23a1eb1c4b5a9628b1e0ab1d5 100644 (file)
@@ -80,7 +80,6 @@
 
 <xsl:include href="fop.xsl"/>
 <xsl:include href="fop1.xsl"/>
-<xsl:include href="passivetex.xsl"/>
 <xsl:include href="xep.xsl"/>
 <xsl:include href="axf.xsl"/>
 <xsl:include href="ptc.xsl"/>
index 8d46c5c06b0985b77da75c15a321799dc92e0522..d04784a9cf67739ca6524129020220d64a46eb12 100644 (file)
@@ -33,9 +33,6 @@
 <xsl:param name="graphic.notations">
   <!-- n.b. exactly one leading space, one trailing space, and one inter-word space -->
   <xsl:choose>
-    <xsl:when test="$passivetex.extensions != 0">
-      <xsl:text> PNG PDF JPG JPEG linespecific </xsl:text>
-    </xsl:when>
     <xsl:when test="$fop1.extensions != 0">
       <xsl:text> BMP GIF TIFF SVG PNG EPS JPG JPEG linespecific </xsl:text>
     </xsl:when>
@@ -62,9 +59,6 @@
 <xsl:param name="graphic.extensions">
   <!-- n.b. exactly one leading space, one trailing space, and one inter-word space -->
   <xsl:choose>
-    <xsl:when test="$passivetex.extensions != 0">
-      <xsl:text> png pdf jpg jpeg </xsl:text>
-    </xsl:when>
     <xsl:when test="$fop1.extensions != 0">
       <xsl:text> bmp gif tif tiff svg png pdf jpg jpeg eps </xsl:text>
     </xsl:when>
   <xsl:param name="filename"/>
 
   <xsl:choose>
-    <xsl:when test="$passivetex.extensions != 0
-                    or $fop.extensions != 0">
+    <xsl:when test="$fop.extensions != 0">
       <xsl:value-of select="$filename"/>
     </xsl:when>
     <xsl:otherwise>
index 6fb02c8931d0c7046ce3bab65b3e1f63ad2311c7..ebba7132675666995aa77e0f755b099ffc6a4c53 100644 (file)
@@ -35,8 +35,7 @@
   <fo:table xsl:use-attribute-sets="table.table.properties">
     <xsl:choose>
       <xsl:when test="$fop.extensions != 0 or
-                      $fop1.extensions != 0 or
-                      $passivetex.extensions != 0">
+                      $fop1.extensions != 0">
         <xsl:attribute name="table-layout">fixed</xsl:attribute>
       </xsl:when>
     </xsl:choose>
index 8f7b47137fd868d7897e64eab61d159dd0c0dbc8..87ba5f96b6bb5ade38e62c1ad8c8f50eb1b8c2a0 100644 (file)
       </fo:block>
     </fo:list-item-label>
     <fo:list-item-body start-indent="body-start()">
-      <xsl:choose>
-        <!-- * work around broken passivetex list-item-body rendering -->
-        <xsl:when test="$passivetex.extensions = '1'">
-          <xsl:apply-templates/>
-        </xsl:when>
-        <xsl:otherwise>
-          <fo:block>
-            <xsl:apply-templates/>
-          </fo:block>
-        </xsl:otherwise>
-      </xsl:choose>
+      <fo:block>
+        <xsl:apply-templates/>
+      </fo:block>
     </fo:list-item-body>
   </xsl:variable>
 
           </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="@termlength"/>
-            <xsl:choose>
-              <!-- workaround for passivetex lack of support for non-constant expressions -->
-              <xsl:when test="$passivetex.extensions != 0">
-                <xsl:text>em</xsl:text>
-              </xsl:when>
-              <xsl:otherwise>
-                <xsl:text>em * 0.60</xsl:text>
-              </xsl:otherwise>
-            </xsl:choose>
+            <xsl:text>em * 0.60</xsl:text>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
           <xsl:with-param name="terms" select="varlistentry/term"/>
           <xsl:with-param name="maxlength" select="$variablelist.max.termlength"/>
         </xsl:call-template>
-        <xsl:choose>
-          <!-- workaround for passivetex lack of support for non-constant expressions -->
-          <xsl:when test="$passivetex.extensions != 0">
-            <xsl:text>em</xsl:text>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:text>em * 0.60</xsl:text>
-          </xsl:otherwise>
-        </xsl:choose>
+        <xsl:text>em * 0.60</xsl:text>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:variable>
 
   <xsl:variable name="label-separation">1em</xsl:variable>
   <xsl:variable name="distance-between-starts">
-    <xsl:choose>
-      <!-- workaround for passivetex lack of support for non-constant expressions -->
-      <xsl:when test="$passivetex.extensions != 0">
-        <xsl:value-of select="$termlength"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:value-of select="$termlength"/>
-        <xsl:text>+</xsl:text>
-        <xsl:value-of select="$label-separation"/>
-      </xsl:otherwise>
-    </xsl:choose>
+    <xsl:value-of select="$termlength"/>
+    <xsl:text>+</xsl:text>
+    <xsl:value-of select="$label-separation"/>
   </xsl:variable>
 
   <xsl:if test="title">
index d7f66a69589e8498ec7e98f825eb46a81682a84c..1832283a130d6a501fcb65de14aec46bc1317082 100644 (file)
      ******************************************************************** -->
 
 <xsl:template match="inlineequation">
-  <xsl:choose>
-    <xsl:when test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
-      <xsl:apply-templates select="alt[@role='tex'] | inlinemediaobject/textobject[@role='tex']">
-        <xsl:with-param name="output.delims">
-          <xsl:call-template name="tex.math.output.delims"/>
-        </xsl:with-param>
-      </xsl:apply-templates>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:apply-templates/>
-    </xsl:otherwise>
-  </xsl:choose>
+  <xsl:apply-templates/>
 </xsl:template>
 
 <xsl:template match="alt">
 <!-- "Support" for MathML -->
 
 <xsl:template match="mml:math" xmlns:mml="http://www.w3.org/1998/Math/MathML">
-  <xsl:choose>
-    <!-- * If user is using passivetex, we don't wrap the output in -->
-    <!-- * fo:instream-foreign-object (which passivetex doesn't support). -->
-    <xsl:when test="not($passivetex.extensions = 0)">
-      <xsl:copy>
-        <xsl:copy-of select="@*"/>
-        <xsl:apply-templates/>
-      </xsl:copy>
-    </xsl:when>
-    <xsl:otherwise>
-      <fo:instream-foreign-object>
-        <xsl:copy>
-          <xsl:copy-of select="@*"/>
-          <xsl:apply-templates/>
-        </xsl:copy>
-      </fo:instream-foreign-object>
-    </xsl:otherwise>
-  </xsl:choose>
+  <fo:instream-foreign-object>
+    <xsl:copy>
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </fo:instream-foreign-object>
 </xsl:template>
 
 <xsl:template match="mml:*" xmlns:mml="http://www.w3.org/1998/Math/MathML">
 <xsl:template match="inlineequation/alt[@role='tex'] | 
                      inlineequation/inlinemediaobject/textobject[@role='tex']" priority="1">
   <xsl:param name="output.delims" select="1"/>
-  <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
-    <xsl:processing-instruction name="xmltex">
-      <xsl:if test="$output.delims != 0">
-        <xsl:text>$</xsl:text>
-      </xsl:if>
-      <xsl:value-of select="."/>
-      <xsl:if test="$output.delims != 0">
-        <xsl:text>$</xsl:text>
-      </xsl:if>
-    </xsl:processing-instruction>
-  </xsl:if>
 </xsl:template>
 
 <xsl:template match="equation/alt[@role='tex'] | informalequation/alt[@role='tex'] |
   <xsl:variable name="output.delims">
     <xsl:call-template name="tex.math.output.delims"/>
   </xsl:variable>
-  <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
-    <xsl:processing-instruction name="xmltex">
-      <xsl:if test="$output.delims != 0">
-        <xsl:text>$$</xsl:text>
-      </xsl:if>
-      <xsl:value-of select="."/>
-      <xsl:if test="$output.delims != 0">
-        <xsl:text>$$</xsl:text>
-      </xsl:if>
-    </xsl:processing-instruction>
-  </xsl:if>
-</xsl:template>
-
-<xsl:template match="alt[@role='tex']">
-  <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
-    <xsl:message>
-      Your equation is misplaced. It should be in inlineequation, equation or informalequation.
-    </xsl:message>
-  </xsl:if>
 </xsl:template>
 
 <xsl:template name="tex.math.output.delims">
index 8cd845e088ca7f0eb25ca206bd91c6819b00c652..d2f2e0dd160d22d416627dd574554621cae1a645 100644 (file)
   </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
+    <xsl:when test="$fop.extensions != 0">
       <!-- body.start.indent does not work well with these processors -->
     </xsl:when>
     <xsl:when test="starts-with($pageclass, 'body') or
index 2d9ceb071e897934a7e0c20f206c32d4ac57758d..004080925bce7089426eefdd110c8758725b4fb1 100644 (file)
       </xsl:choose>
     </xsl:variable>
 
-    <xsl:if test="$passivetex.extensions != 0">
-      <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 
-                      fotex-bookmark-level="{$level + 2 + $offset}" 
-                      fotex-bookmark-label="{$id}">
-        <xsl:value-of select="$title"/>
-      </fotex:bookmark>
-    </xsl:if>
-
     <xsl:if test="$axf.extensions != 0">
       <xsl:attribute name="axf:outline-level">
         <xsl:value-of select="count(ancestor::*)-1 + $offset"/>
index 54d2bbe7ebfba97d2241119248f0a48c2c82e237..691c7308eacd23a5fb8e2b33d922f46b09ede01d 100644 (file)
       </xsl:apply-templates>
     </xsl:variable>
 
-    <xsl:if test="$passivetex.extensions != 0">
-      <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 
-                      fotex-bookmark-level="{$level + 2}" 
-                      fotex-bookmark-label="{$id}">
-        <xsl:value-of select="$marker.title"/>
-      </fotex:bookmark>
-    </xsl:if>
-
     <xsl:if test="$axf.extensions != 0">
       <xsl:attribute name="axf:outline-level">
         <xsl:value-of select="count(ancestor::*)-1"/>
index 04759a4f0532cdbb95a116ed85f6d9eb00d98f8b..be70a508a2eb454f72dccefe496c8f183c901b27 100644 (file)
      ******************************************************************** -->
 
 <xsl:template match="text()[namespace-uri(..) = '' or 
-                    namespace-uri(..) = 'http://docbook.org/ns/docbook']">
-  <xsl:choose>
-    <xsl:when test="$passivetex.extensions != 0">
-      <xsl:call-template name="passivetex.dash.subst">
-        <xsl:with-param name="string">
-         <xsl:call-template name="space.2000.subst">
-           <xsl:with-param name="string" select="."/>
-         </xsl:call-template>
-       </xsl:with-param>
-      </xsl:call-template>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:call-template name="space.2000.subst">
-       <xsl:with-param name="string" select="."/>
-      </xsl:call-template>
-    </xsl:otherwise>
-  </xsl:choose>
+                     namespace-uri(..) = 'http://docbook.org/ns/docbook']">
+  <xsl:call-template name="space.2000.subst">
+    <xsl:with-param name="string" select="."/>
+  </xsl:call-template>
 </xsl:template>
 
 <xsl:param name="space.enquad.width">0.5em</xsl:param>   <!-- U+2000 -->
index 2d3d01c98f9f0379e4ea044c65e9a38519df6162..55749e5deb78f2994dd61dabf4965fcb026e24d6 100644 (file)
   <xsl:param name="table.block"/>
   <xsl:choose>
     <xsl:when test="@orient='land' and 
-                    $fop.extensions = 0 and 
-                    $passivetex.extensions = 0" >
+                    $fop.extensions = 0" >
       <fo:block-container reference-orientation="90"
             padding="6pt"
             xsl:use-attribute-sets="list.block.spacing">