]> granicus.if.org Git - docbook-dsssl/commitdiff
Align attribute from imagedata is not propagated to surrounding figure because it...
authorJirka Kosek <jirka@kosek.cz>
Wed, 16 Feb 2005 14:54:30 +0000 (14:54 +0000)
committerJirka Kosek <jirka@kosek.cz>
Wed, 16 Feb 2005 14:54:30 +0000 (14:54 +0000)
xsl/fo/formal.xsl

index 4dd73cff1fda583cf14a61b38e7464bbc7a42d81..5c8fd0ce4c7f15f762607d11528356323adb2405 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
-  <!-- Get align value from internal mediaobject -->
-  <xsl:variable name="align">
-    <xsl:if test="mediaobject|mediaobjectco|screenshot|graphic|graphicco">
-      <xsl:variable name="olist" select="mediaobject/imageobject
-                                         |mediaobject/imageobjectco
-                                         |mediaobject/videoobject
-                                         |mediaobject/audioobject
-                                         |mediaobject/textobject
-
-                                         |mediaobjectco/imageobject
-                                         |mediaobjectco/imageobjectco
-                                         |mediaobjectco/videoobject
-                                         |mediaobjectco/audioobject
-                                         |mediaobjectco/textobject
-
-                                         |screenshot/mediaobject/imageobject
-                                         |screenshot/mediaobject/imageobjectco
-                                         |screenshot/mediaobject/videoobject
-                                         |screenshot/mediaobject/audioobject
-                                         |screenshot/mediaobject/textobject
-
-                                         |screenshot/mediaobjectco/imageobject
-                                         |screenshot/mediaobjectco/imageobjectco
-                                         |screenshot/mediaobjectco/videoobject
-                                         |screenshot/mediaobjectco/audioobject
-                                         |screenshot/mediaobjectco/textobject
-
-                                         |graphic
-                                         |graphicco/graphic
-                                         |screenshot/graphic
-                                         |screenshot/graphicco/graphic"/>
-
-      <xsl:variable name="object.index">
-        <xsl:call-template name="select.mediaobject.index">
-          <xsl:with-param name="olist" select="$olist"/>
-          <xsl:with-param name="count" select="1"/>
-        </xsl:call-template>
-      </xsl:variable>
-
-      <xsl:variable name="object" select="$olist[position() = $object.index]"/>
-
-      <xsl:value-of select="$object/imagedata[@align][1]/@align"/>
-    </xsl:if>
-  </xsl:variable>
-
-
   <xsl:variable name="figure">
-    <xsl:choose>
-      <xsl:when test="$align != ''">
-        <fo:block>
-          <xsl:attribute name="text-align">
-            <xsl:value-of select="$align"/>
-          </xsl:attribute>
-          <xsl:call-template name="formal.object">
-            <xsl:with-param name="placement" select="$placement"/>
-          </xsl:call-template>
-        </fo:block>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:call-template name="formal.object">
-          <xsl:with-param name="placement" select="$placement"/>
-        </xsl:call-template>
-      </xsl:otherwise>
-    </xsl:choose>
+    <xsl:call-template name="formal.object">
+      <xsl:with-param name="placement" select="$placement"/>
+    </xsl:call-template>
   </xsl:variable>
 
   <xsl:choose>