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

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