how to draw a vertical line using xsl:fo?

how to draw a vertical line using xsl:fo?

i can draw a horizontal line using fo:leader property.


any idea?

thanks for your help.

regards
vihar123Asked:
Who is Participating?
 
dualsoulConnect With a Mentor Commented:
use table with border-width=width of your line :)

0
 
dualsoulCommented:
wanna sample?
0
 
metalmickeyCommented:
I think Dualsoul is correct with setting the border-left or border-right property in an fo:table, or using it at  fo:table-cell level, although i think you can do it at block level too.

(you have to build the table first)
 <fo:table-cell border-right="solid 1px black" padding="1pt">
and
 <fo:table-cell border-left="solid 1px black" padding="1pt">

or

<fo:block  border-right="solid 1px black">your stuff</fo:block>

<fo:block  border-left="solid 1px black">your stuff</fo:block>

if you're planning to use this method to build several columns, dualsouls use of the table is more acurate that setting the property at block level, as its easier to keep the columns the same width.


MM
0
All Courses

From novice to tech pro — start learning today.