[xep-support] Re: Change bar for inserted table-row not showing

From: Kevin Brown <kevin@renderx.com>
Date: Mon Apr 08 2013 - 11:50:20 PDT

I can explain the reasoning (logic).

 

Tables are rendered internally in the engine from right to left (or better
said from end to start), row by row. So actually, that last cell in the
first row is the first cell rendered. Only content can be marked as changed
(there is no structure in the output tree that corresponds to "table row"
only things like text, image, lines, etc.). In this case a single change bar
specified for a row, the content in this last cell is selected to render the
change bar and unfortunately it is zero height

 

I will forward into our team to investigate. Your method does work . BUT, I
also did a few more tests and it would not mark the full height of any row
unless that full height is in the last cell. Meaning this would only create
a mark the height of the "D" and not the "A" + "C".

 

<fo:table-row>
    <fo:change-bar-begin change-bar-color="black" change-bar-style="solid"
change-bar-offset="6mm" change-bar-class="d0e86672b"
change-bar-placement="start"/>
 
<fo:table-cell><fo:block>A</fo:block><fo:block>C</fo:block></fo:table-cell>
    <fo:table-cell><fo:block>B</fo:block></fo:table-cell>
    <fo:table-cell><fo:block>D</fo:block></fo:table-cell>
    <fo:change-bar-end change-bar-class="d0e86672b"/>
</fo:table-row>

 

Alternatively, you could change your XSL logic to instead mark each cell if
your intention is to mark a single row, like this. This will get you the
desired output in any case of row heights.

 

<fo:table-row>
    <fo:change-bar-begin change-bar-color="black" change-bar-style="solid"
change-bar-offset="6mm" change-bar-class="d0e86672b"
change-bar-placement="start"/>
 
<fo:table-cell><fo:block>A</fo:block><fo:block>C</fo:block></fo:table-cell>
    <fo:change-bar-end change-bar-class="d0e86672b"/>
    <fo:change-bar-begin change-bar-color="black" change-bar-style="solid"
change-bar-offset="6mm" change-bar-class="d0e86672b"
change-bar-placement="start"/>
    <fo:table-cell><fo:block>B</fo:block></fo:table-cell>
    <fo:change-bar-end change-bar-class="d0e86672b"/>
    <fo:change-bar-begin change-bar-color="black" change-bar-style="solid"
change-bar-offset="6mm" change-bar-class="d0e86672b"
change-bar-placement="start"/>
    <fo:table-cell><fo:block/></fo:table-cell>
    <fo:change-bar-end change-bar-class="d0e86672b"/>
</fo:table-row>

 

 

Kevin Brown

RenderX

 

From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Patricia Piolon
Sent: Monday, April 08, 2013 8:04 AM
To: RenderX Community Support List
Subject: [xep-support] Change bar for inserted table-row not showing

 

Hi all,

 

I'm running into the following issue:

<fo:table-row id="temp2">
<fo:change-bar-begin change-bar-color="black" change-bar-style="solid"
change-bar-offset="6mm" change-bar-class="d0e86672b"
change-bar-placement="start"/>
<fo:table-cell><fo:block>A</fo:block></fo:table-cell>
<fo:table-cell><fo:block>B</fo:block></fo:table-cell>
<fo:table-cell><fo:block/></fo:table-cell>
<fo:change-bar-end change-bar-class="d0e86672b"/>
</fo:table-row>

The change bar is not rendered (or rather rendered as zero-height, just a
tiny dot) in this case, because the last cell of the row has no content. If
we put e.g. a non-breaking space inside, the change bar is there.

Could you please clarify the reasoning behind this, or is it just a small
bug?

Thanks,

-- Patricia

!DSPAM:87,5162dc5d9852137179857!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Mon Apr 8 11:50:30 2013

This archive was generated by hypermail 2.1.8 : Mon Apr 08 2013 - 11:50:36 PDT