xsl-list
[Top] [All Lists]

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

2012-04-02 07:16:30
Put a border on your fo:region-body.

Below works for RenderX.

 <fo:region-body display-align="center"
            border="thin double black"/>

For fop you will need to specify the border parameters individually, i.e.,
border-right, border-left, etc.

Good luck!

Betty


   Hi,


  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">
       <fo:region-body/>
    </fo:simple-page-master>

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?

  Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

--~------------------------------------------------------------------
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:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
harvey(_at_)eccnet(_dot_)com                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)

--~------------------------------------------------------------------
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:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--