[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] XSL-FO: Drawing a line around every page

Subject: [xsl] XSL-FO: Drawing a line around every page
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Mon, 2 Apr 2012 12:55:21 +0100 (BST)


  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-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?



Current Thread