xsl-list
[Top] [All Lists]

Re: [xsl] [XSL-FO] marginal notes

2017-01-07 12:44:05
At 2017-01-07 17:19 +0000, Geert Bormans 
geert(_at_)gbormans(_dot_)telenet(_dot_)be wrote:
I need to add marginal notes to a two column layout in XSL-FO
(I am using Antenna House)
And in general this works well using floats

<fo:change-bar-begin change-bar-class="CBP-{generate-id()}" change-bar-offset="5mm">
<fo:float float="outside">

I am facing two issues now

1. The float="outside" works well in a one column layout to put my notes in the left margin on even pages and the right margin on odd pages However I can't seem to figure out how to put margins on the left for the left column and on the right for the right column

I think you might be out of luck, but I would experiment by implementing the columns as two flow areas of one column each instead of one flow area with two columns. I just cannot readily recall what "inside" and "outside" are w.r.t. arbitrary flow areas.

And I haven't looked up the Antenna House extensions.

2. In my XML a set of lines make up a paragraph, the "lines" are numbered and I need the "number" in the margin Sometimes 2 "lines" start on the same physical line in the column and the marginal notes in the side bar are printed at the same location Is there a way to fix it in a way that a second float is printed below the first when both are on the same height?
I have been playing with markers but ca,t get any pleasing result

Have you tried the clear= property? I think you have a copy of my book (or the free preview on my web site) ... check out the diagram in Chapter 7, Section 2, "The interaction of blocks and floats".

I hope this helps. Please forgive me for not taking the time to mock up examples to test myself.

. . . . . . Ken


--
Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
Streaming hands-on XSLT/XPath 2 training @US$45: http://goo.gl/Dd9qBK |
Crane Softwrights Ltd. _ _ _ _ _ _ http://www.CraneSoftwrights.com/s/ |
G Ken Holman _ _ _ _ _ _ _ _ _ _ 
mailto:gkholman(_at_)CraneSoftwrights(_dot_)com |
Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts |
Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal |
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>