Assuming you have one-inch margins and a page with of 8.5 inches, the 
following FO element draws a one-point black line across the page:

<fo:leader leader-pattern="rule" rule-thickness="1.0pt" 
leader-length="6.5in" color="black"/>

You can also set other properties, such as space-before and space-after.

Here's an example that I use for lines in footers (to separate the rest of 
the page from the footer):

At the top of the stylesheet, I have a bunch of elements similar to this 
one:

  <xsl:attribute-set name="footerleader">
    <xsl:attribute name="leader-pattern">rule</xsl:attribute>
    <xsl:attribute name="rule-thickness">1.0pt</xsl:attribute>
    <xsl:attribute name="leader-length">6.5in</xsl:attribute>
    <xsl:attribute name="space-before.optimum">0pt</xsl:attribute>
    <xsl:attribute name="space-after.optimum">24pt</xsl:attribute>
    <xsl:attribute name="color">black</xsl:attribute>
  </xsl:attribute-set>

That way, I can maintain styles in one place within the stylesheet (and I 
could maintain them in a separate file and import them, if need be).

Later, when I actually want a line across the page, I then use:

<fo:leader xsl:use-attribute-sets="footerleader"/>

You do not need to use one-cell tables and external graphics to get a 
simple (or not-s-simple) line.

HTH

Jay Bryant
Bryant Communication Services
(on contract at Synergistic Solution Technologies)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to