xsl fo - Curved Borders for dynamic free flow tables in altova stylevision or xsl-fo without using the border-radius property -
iam new altova stylevision , xsl-fo . need have curved borders tables dynamic , flow across multiple pages. border-radius property not working property neither recognized @ table level nor row level nor cell level xsl-fo processor.i not give exact exception thrown when using border-radius property have completed using trail version.
please find details below:
<fo:root xmlns:altova="http://www.altova.com" xmlns:fo="http://www.w3.org/1999/xsl/format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
i have used fop extension trunk , included above line @ top of xml.
below piece of code have used create curved border cell.
<fo:table-cell visibility="hidden" padding="0" display-align="center"> <fo:block-container overflow="hidden"> <fo:block text-align="center" fox:border-before-radius-start="7mm" fox:border-start-radius-before="7mm"> <fo:inline font-family="ronbscrg" font-size="7pt">ee</fo:inline> </fo:block> </fo:block-container> </fo:table-cell>
please help.
important: rounded corners, must use the trunk (development) version of fop. not work latest released version (fop 1.1). see http://wiki.apache.org/xmlgraphics-fop/roundedborders.
fop trunk can obtained checking out code subversion repository , compiling described here.
there nightly snapshots.
the main problem fo code in question names of radius properties wrong. see specification @ http://xmlgraphics.apache.org/fop/trunk/extensions.html#rounded-corners. note under current limitations, says:
rounded corners on tables not directly supported. set rounded corners @ table level table must have
border-collapse
property setseparate
.
it not clear want output like, following fo:block
instead of 1 in question, should see noticeable difference:
<fo:block text-align="center" border-style="solid" fox:border-before-start-radius="7mm" fox:border-before-end-radius="7mm"> <fo:inline font-family="ronbscrg" font-size="7pt">ee</fo:inline> </fo:block>
if want 4 corners rounded, use shorthand fox:border-radius
.
Comments
Post a Comment