Blame SOURCES/docbook-xsl-list-item-body.patch

e4a843
diff -ruNp docbook-xsl-1.74.0.orig/fo/lists.xsl docbook-xsl-1.74.0/fo/lists.xsl
e4a843
--- docbook-xsl-1.74.0.orig/fo/lists.xsl	2008-08-06 13:32:46.000000000 +0200
e4a843
+++ docbook-xsl-1.74.0/fo/lists.xsl	2008-08-06 13:41:27.000000000 +0200
e4a843
@@ -248,9 +248,17 @@
e4a843
       </fo:block>
e4a843
     </fo:list-item-label>
e4a843
     <fo:list-item-body start-indent="body-start()">
e4a843
-      <fo:block>
e4a843
-        <xsl:apply-templates/>
e4a843
-      </fo:block>
e4a843
+      <xsl:choose>
e4a843
+        
e4a843
+        <xsl:when test="$passivetex.extensions = '1'">
e4a843
+          <xsl:apply-templates/>
e4a843
+        </xsl:when>
e4a843
+        <xsl:otherwise>
e4a843
+          <fo:block>
e4a843
+            <xsl:apply-templates/>
e4a843
+          </fo:block>
e4a843
+        </xsl:otherwise>
e4a843
+      </xsl:choose>
e4a843
     </fo:list-item-body>
e4a843
   </xsl:variable>
e4a843
 
e4a843
@@ -446,10 +454,18 @@
e4a843
       </fo:block>
e4a843
     </fo:list-item-label>
e4a843
     <fo:list-item-body start-indent="body-start()">
e4a843
-      <fo:block>
e4a843
-        <xsl:apply-templates select="listitem"/>
e4a843
-      </fo:block>
e4a843
-    </fo:list-item-body>
e4a843
+      <xsl:choose>
e4a843
+        
e4a843
+        <xsl:when test="$passivetex.extensions = '1'">
e4a843
+          <xsl:apply-templates select="listitem"/>
e4a843
+        </xsl:when>
e4a843
+        <xsl:otherwise>
e4a843
+          <fo:block>
e4a843
+            <xsl:apply-templates select="listitem"/>
e4a843
+          </fo:block>
e4a843
+        </xsl:otherwise>
e4a843
+      </xsl:choose>
e4a843
+     </fo:list-item-body>
e4a843
   </xsl:variable>
e4a843
 
e4a843
   <xsl:choose>
e4a843
@@ -925,9 +941,17 @@
e4a843
       </fo:block>
e4a843
     </fo:list-item-label>
e4a843
     <fo:list-item-body start-indent="body-start()">
e4a843
-      <fo:block>
e4a843
-        <xsl:apply-templates/>
e4a843
-      </fo:block>
e4a843
+      <xsl:choose>
e4a843
+        
e4a843
+        <xsl:when test="$passivetex.extensions = '1'">
e4a843
+          <xsl:apply-templates/>
e4a843
+        </xsl:when>
e4a843
+        <xsl:otherwise>
e4a843
+          <fo:block>
e4a843
+            <xsl:apply-templates/>
e4a843
+          </fo:block>
e4a843
+        </xsl:otherwise>
e4a843
+      </xsl:choose>
e4a843
     </fo:list-item-body>
e4a843
   </fo:list-item>
e4a843
 </xsl:template>
e4a843
@@ -951,9 +975,17 @@
e4a843
       </fo:block>
e4a843
     </fo:list-item-label>
e4a843
     <fo:list-item-body start-indent="body-start()">
e4a843
-      <fo:block>
e4a843
-        <xsl:apply-templates/>
e4a843
-      </fo:block>
e4a843
+      <xsl:choose>
e4a843
+        
e4a843
+        <xsl:when test="$passivetex.extensions = '1'">
e4a843
+          <xsl:apply-templates/>
e4a843
+        </xsl:when>
e4a843
+        <xsl:otherwise>
e4a843
+          <fo:block>
e4a843
+            <xsl:apply-templates/>
e4a843
+          </fo:block>
e4a843
+        </xsl:otherwise>
e4a843
+      </xsl:choose>
e4a843
     </fo:list-item-body>
e4a843
   </fo:list-item>
e4a843
 </xsl:template>
e4a843
@@ -1141,9 +1173,17 @@
e4a843
       </fo:block>
e4a843
     </fo:list-item-label>
e4a843
     <fo:list-item-body start-indent="body-start()">
e4a843
-      <fo:block>
e4a843
-        <xsl:apply-templates/>
e4a843
-      </fo:block>
e4a843
+      <xsl:choose>
e4a843
+        
e4a843
+        <xsl:when test="$passivetex.extensions = '1'">
e4a843
+          <xsl:apply-templates/>
e4a843
+        </xsl:when>
e4a843
+        <xsl:otherwise>
e4a843
+          <fo:block>
e4a843
+            <xsl:apply-templates/>
e4a843
+          </fo:block>
e4a843
+        </xsl:otherwise>
e4a843
+      </xsl:choose>
e4a843
     </fo:list-item-body>
e4a843
   </fo:list-item>
e4a843
 </xsl:template>