docbook-xsl-snapshot from 18. April 2005
---------------------------
Description:
The align attribute will be ignored for mediaobjectco
objects.
<mediaobjectco>
<imageobjectco>
<imageobject>
<imagedata align="center"
fileref="test.svg"
format="SVG" />
</imageobject>
</imageobjectco>
</mediaobjectco>
---------------------------
Problem:
The fo/graphics.xsl stylesheet expected an imagedata
element as child of imageobjectco. But imageobjectco
can't have imagedata as child. It has to be wrapped by
imageobject. That's why the stylesheet can't find an
align attribute.
---------------------------
Possible Fix:
in mediaobjectco template change:
<xsl:variable name="align">
<xsl:value-of select="$object/imagedata[@align]
[1]/@align"/>
</xsl:variable>
to:
<xsl:variable name="align">
<xsl:value-of select="$object/descendant::imagedata
[@align][1]/@align"/>
</xsl:variable>
in calloutlist template add text-align attribute to fo:block,
so callouts aligned always left.
<xsl:template match="calloutlist">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:block id="{$id}" text-align="left">
<xsl:if test="title">
<xsl:apply-templates select="title"
mode="list.title.mode"/>
</xsl:if>
<xsl:apply-templates
select="*[not(self::callout or self::title or
self::titleabbrev)]
|comment()[not(preceding-sibling::callout)]
|processing-instruction()[not(preceding-
sibling::callout)]"/>
<fo:list-block space-before.optimum="1em"
space-before.minimum="0.8em"
space-before.maximum="1.2em"
provisional-distance-between-
starts="2.2em"
provisional-label-separation="0.2em">
<xsl:apply-templates select="callout
|comment()[preceding-
sibling::calllout]
|processing-instruction()[preceding-
sibling::callout]"/>
</fo:list-block>
</fo:block>
</xsl:template>
Robert Stayton
XSL
output: print/FO/PDF
Public
|
Date: 2005-05-19 13:18 Logged In: YES |
|
Date: 2005-05-16 08:32 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2005-05-16 08:32 | bobstayton |
| resolution_id | None | 2005-05-16 08:32 | bobstayton |
| assigned_to | nobody | 2005-05-16 08:32 | bobstayton |
| close_date | - | 2005-05-16 08:32 | bobstayton |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use