tags:

views:

65

answers:

0

I'm working on an xsl:fo document, but I ran across across I'm not sure how to do (hence the question). Normally, when I want to make a horizontal line across the page, I use:

<fo:block space-after.optimum="2pt">
    <fo:leader leader-length="6.75in" leader-pattern="rule"/>
</fo:block>

But instead of a regular line, I need a line of asterisks. Is there a way to tell xsl:fo to just repeat the character, or do I just need to type in a bunch of asterisks? If the margins or font size were to change in the future, the line would be messed up.

EDIT:

I found the solution while searching for another xsl-fo attribute:

<fo:block space-after.optimum="2pt">
    <fo:leader leader-length="6.75in" leader-pattern="use-content">*</fo:leader>
</fo:block>

Closing this question, since I managed to answer it myself.