Thanks, but that "type" doesn't do anything in the code. Also using the PIs 
does not help either.

After looking closer in the 1.75.2 stylesheets, the segmentedlist template in 
fo/lists.xsl has a problem when used in FOP. It specifies the table as an 
"auto" table and it needs to be a "fixed" table since FOP doesn't support that 
feature yet. So, in this case I modified the template 

from

<fo:table> 

to 

<fo:table table-layout="fixed" width="100%">


Is this something that should be addressed in the standard stylesheets (i.e 
bugtracked)?


Regards,
Dean Nelson


In a message dated 08/26/10 01:01:55 Pacific Daylight Time, 
reflex...@reflexing.ru writes:
On Thu, Aug 26, 2010 at 3:12 AM, deannelson <deannel...@aol.com> wrote:

Hello all,
I am using a segmented list (1.75.2) and it gives me a warning in FOP 1.0 but 
still renders fine:

------------
WARNING: The following feature isn't implemented by Apache FOP, yet: 
table-layout="auto" (on fo:table) (See position 2:23461)
Aug 25, 2010 2:05:58 PM org.apache.fop.events.LoggingEventListener processEvent

SEVERE: Invalid property value encountered in 
column-width="proportional-column-width(1)": 
org.apache.fop.fo.expr.PropertyException: 
file:/C:/doc/Documentation/403/seglisttest.fo:2:23461: 
proportional-column-width() function may only be used when fo:table has 
table-layout="fixed".; property:'column-width' (See position 2:23541)
Aug 25, 2010 2:05:58 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Invalid property value encountered in 
column-width="proportional-column-width(1)": org.apache.fop.fo.expr.Proper
tyException: file:/C:/doc/Documentation/403/seglisttest.fo:2:23461: 
proportional-column-width() function may only be use
d when fo:table has table-layout="fixed".; property:'column-width' (See 
position 2:23621)
-----

Here is the code I used:


----
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.docbook.org/xml/4.5/docbookx.dtd"; [
]>
<section id="grip-chem">
    <title>Effect of Chemicals on Grip Plate Polymer</title>

    <segmentedlist type="tabular">
        <segtitle>Chemical</segtitle>
        <segtitle>Rating</segtitle>
        <seglistitem>
            <seg>Acetic acid</seg>
            <seg>B</seg>
        </seglistitem>
        <seglistitem>
            <seg>Acetone</seg>
            <seg>C</seg>
        </seglistitem>
        <seglistitem>
             <seg>Aluminum Chloride solutions</seg>
            <seg>T</seg>
        </seglistitem>
    </segmentedlist>

</section>
----

I tried to find this in the stock style sheets but couldn't see where it is 
being generated. Is this just some old code that needs a touch up or is there a 
another parameter that I may have missed dealing with the sizing?


Regards,
Dean Nelson



Hello Dean. 


Do you have customized DocBook? Cause segmentedlist element doesn't have "type" 
attribute. 


Can you please cut it off and use this processing instructions instead:
<?dbhtml list-presentation="table"?>
<?dbfo   list-presentation="table"?>

Hope it will help.

-- 
Jabber: reflex...@reflexing.ru, ICQ: 8163230, Skype on demand.

Reply via email to