You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Michaud, Jean-Francois" <Je...@boeing.com> on 2006/05/15 18:33:45 UTC
Revision bar indicator. How?
Hello people,
I'm having quite a problem with revision indicators under FOP. (using
0.20.5)
I need to be able to create a revision bar to the left of content that
has changed in the document.
Creating a left border to indicate a revision change works but it isn't
sufficient because I use
"fo:list-block"s to indent all my content which makes the border follow
the indent.
The requirement is that the revision indicator should always be located
at the same
distance from the left edge of the page independently from the current
hanging list item indent. I use fo:list-block everywhere.
I could forget about using fo:list-block altogether to generate the
required sections/subsections/subsubsections indent and potentially
wrap everything that can be revised with an fo:block in which case all
those fo:block wrappers would all be aligned to the left of the page
body. The real fun starts thought when you think about trying to align
the content of those blocks in correlation with the content of other
such "fo:block wrapper" blocks so that the indents of the underlying
entities remains coherent. For example, when say trying to reproduce
list indent behavior across the content of many of those revision
fo:block wrappers.
Somebody emitted the idea that I should create a column in the left
margin. This approach seems to naturally offer proper alignment of the
revision bar. The potential problem is trying to somehow make the
structure of the document match the structure of what is contained
within the column in question so that my revision indicators can be
aligned with the correct parts of the document. To a certain extent, it
seems like it would be just about as much work as the other solution but
down a different path.
It seem that Antenna House implemented some FO extensions to deal with
revision bars, but unfortunately I have to stick with using FOP.
What should I do?
Regards
Jean-Francois Michaud
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Revision bar indicator. How?
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Michaud, Jean-Francois wrote:
> How would I would deal with this puzzles me. How would I deal with list
> bullets and proper body indent of sections/subsections/subsubsections if
> I was to use tables instead of lists? This solution seems to be very
> clumsy and artificial. I would have to basically have to recode and
> reproduce what the layout engine already does automatically through the
> language.
FO list blocks are basically two column tables (unless the
list-item-label and list-item-body overlap), only with less markup
and the possible hassle of columns for indentation and the gap
between label and body. The layout engine doesn't do all that much
automatically for you, and you can get the expressions for calculating
the column width from the FO spec.
> Somebody came up with the idea of creating a column in the left margin.
> Such a construct would naturally support borders in an expected
> location, but then we are left trying to have matching structures both
> in the document and in the column in question for proper alignment of
> the revision bars with its associated content. How? Who? What?
Not practicable except in very simple, predictable cases. You can,
of course, always use a two pass approach and get the locations
from FOP's intermediate area tree.
If you know someone who would implement XSLFO 1.1 change bars, now that
would be a convenient solution to your problem.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Revision bar indicator. How?
Posted by "Michaud, Jean-Francois" <Je...@boeing.com>.
How would I would deal with this puzzles me. How would I deal with list
bullets and proper body indent of sections/subsections/subsubsections if
I was to use tables instead of lists? This solution seems to be very
clumsy and artificial. I would have to basically have to recode and
reproduce what the layout engine already does automatically through the
language.
Somebody came up with the idea of creating a column in the left margin.
Such a construct would naturally support borders in an expected
location, but then we are left trying to have matching structures both
in the document and in the column in question for proper alignment of
the revision bars with its associated content. How? Who? What?
Regards
Jeff
-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: Monday, May 15, 2006 12:55 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Revision bar indicator. How?
Michaud, Jean-Francois wrote:
> I need to be able to create a revision bar to the left of content that
> has changed in the document.
You are most likely stuck with unravelling your list structure and wrap
every changed paragraph in a block with an appropriate border, as
described (I personally would probably use a table instead of a
list-block, and just switch the appropriate cell border on).
You can also try to use a blind table and put the bar as SVG in the left
column, with negative text-indent or a relative positioned block (use
0.92 for this, it's unlikely to work in 0.20.5).
> It seem that Antenna House implemented some FO extensions to deal with
> revision bars, but unfortunately I have to stick with using FOP.
Revision bars are in XSLFO 1.1, but it will take quite some time until
FOP implements this.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Revision bar indicator. How?
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Michaud, Jean-Francois wrote:
> I need to be able to create a revision bar to the left of content that
> has changed in the document.
You are most likely stuck with unravelling your list structure and wrap
every changed paragraph in a block with an appropriate border, as
described (I personally would probably use a table instead of a
list-block, and just switch the appropriate cell border on).
You can also try to use a blind table and put the bar as SVG in the
left column, with negative text-indent or a relative positioned block
(use 0.92 for this, it's unlikely to work in 0.20.5).
> It seem that Antenna House implemented some FO extensions to deal with
> revision bars, but unfortunately I have to stick with using FOP.
Revision bars are in XSLFO 1.1, but it will take quite some time until
FOP implements this.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org