[Prev] Thread [Next]  |  [Prev] Date [Next]

[xsl] XSL-FO: Drawing a line around every page Florent Georges Mon Apr 02 05:01:35 2012


  In XSL-FO, I'd like to add a border around all the pages (the whole
pages).  That is, give the following simple page master:

    <fo:simple-page-master master-name="portrait"
        margin-top="25mm"   margin-bottom="25mm"
        margin-left="25mm"  margin-right="25mm"
        page-height="297mm" page-width="210mm">

then I'd like a line to be drawn on each page at 25mm from the page
limit (on all top, right, bottom and left sides, that is to draw a
rectangle).  I don't have any header nor footer.

  I tried to use a block container in the flow, but this has 2 main
drawbacks: 1) if the flow lasts on more than one page, the bottom and
top lines between 2 adjacent pages are not drawn, and 2) if the flow
ends before the very bottom of the last page, then the bottom line is
not drawn at 25mm from the bottom of the page, but before, where the
flow ends.

  Is there any standard XSL-FO way of drawing a line around every page
in a document?


Florent Georges

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:[EMAIL PROTECTED]>