[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Two column body - Span one figure over the wholepage ?
Hi.
Read about the span="all" regarding to fo:flow in an earlier email about title
page.
Thanks for the answer, but I have no time to get it to work.
Will see if I can debug it in the future.. 2 columns are nicer than one, and
sometimes you need a wide figure.
Need to get the document out today... will have to go with a ugly 1 column
body.. :)
However I had a problem with the customization layer :
Error at xsl:element on line 87 of
file:/home/fred/docbook/articles/customspan.xsl:
Attribute xsl:use-attribute-sets is not allowed on this element
Error at xsl:element on line 94 of
file:/home/fred/docbook/articles/customspan.xsl:
Attribute xsl:use-attribute-sets is not allowed on this element
I just removed the xsl: before xsl:use-attribute-sets on these lines
and it works. (not sure if that is the correct way.)
I use Saxon as XSLT processor.
The fo gets created but fop can not handle it..
I tried it with my customizations and stand alone..
Many
SEVERE: Could not create block pointers. FOText w/o Block ancestor.
Nov 17, 2006 10:59:24 AM org.apache.fop.fo.FObjMixed flushText
SEVERE: Could not create block pointers. FOText w/o Block ancestor.
Nov 17, 2006 10:59:24 AM org.apache.fop.fo.FObjMixed flushText
SEVERE: Could not create block pointers. FOText w/o Block ancestor.
and it ends in a crash
SEVERE: Exception
java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)
.....
Bob Stayton wrote:
> Fop 0.92 beta can span a figure across two columns, but the DocBook
> stylesheets don't do that by default for pgwide="1". That's because the
> span="all" property is supported differently in the different
> processors, and in too many situations it generates errors. You can add
> the span="all" property onto pgwide figures using an attribute set
> defined for that purpose:
>
> <xsl:attribute-set name="pgwide.properties">
> <xsl:attribute name="span">all</xsl:attribute>
> </xsl:attribute-set>
>
> However, fo:blocks with that property must be direct children of
> fo:flow. Since Docbook nests fo:blocks freely, that's a problem to be
> worked around. See this email for more info and a link to a
> customization for two-column articles that you might be able adapt:
>
> http://lists.oasis-open.org/archives/docbook-apps/200409/msg00231.html
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message ----- From: "Fredrik Svensson" <fred@ludd.ltu.se>
> To: "apps docbook" <docbook-apps@lists.oasis-open.org>
> Sent: Thursday, November 16, 2006 9:32 AM
> Subject: [docbook-apps] Two column body - Span one figure over the whole
> page ?
>
>
>> Hi,
>>
>> I have a document using the two column style.
>>
>> <xsl:param name="column.count.titlepage" select="1"/>
>> <xsl:param name="column.count.lot" select="1"/>
>> <xsl:param name="column.count.front" select="1"/>
>> <xsl:param name="column.count.body" select="2"/>
>> <xsl:param name="column.count.back" select="1"/>
>> <xsl:param name="column.count.index" select="1"/>
>>
>> (everything including title spans 2 columns)
>>
>> I am using latest fop (SVN trunk) and trying to make a figure span both
>> columns. The picture is about 18 cm wide (on A4) and it also becomes
>> so wide,
>> but the other column is written over it...
>>
>> I have tired pgwide="1" but it did not help...
>>
>> <figure pgwide="1"><title>Image</title>
>> <mediaobject>
>> <imageobject>
>> <imagedata fileref="img/image.png" width="18cm"/>
>> </imageobject>
>> </mediaobject>
>> </figure>
>>
>> Is it possible to do something ? do I have to dig deeper into the .fo ?
>>
>> Also have some *minor* trouble scaling some tables,
>>
>> <colspec colname="c1" colwidth="4cm"/>
>> <colspec colname="c2" colwidth="3cm"/>
>> <colspec colname="c3" colwidth="1cm"/>
>>
>> become all the same.. but I guess that is fop too..
>>
>>
>> /Fred
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]