XML technologies / XSL-FO / Reference / Compart XSL extensions / Attributes / border-radius

(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category: Erweiterte Properties for FO elements - cpfo:border-radius

Description

This attribute specifies the horizontal and vertical radii of rounded border corners. If only one value is given, it is used for both radii.

Value:

<length> <length>?

Initial value:

0pt

Inherited:

no

Element:

All elements with border properties

XSL-FO example:

<fo:root writing-mode="lr-tb" hyphenate="true" language="de" text-align="start" role="html:html" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master page-width="148.0mm" page-height="210.0mm" master-name="first-page">
<fo:region-body margin-top="10.0mm" margin-right="20.0mm" margin-bottom="10.0mm" margin-left="25.0mm" column-count="1" column-gap="12.0mm"/>
<fo:region-before region-name="first-page-header" extent="10.0mm" display-align="before"/>
<fo:region-after region-name="first-page-footer" extent="10.0mm" display-align="after"/>
<fo:region-start extent="25.0mm"/>
<fo:region-end extent="10.0mm"/>
</fo:simple-page-master>
<fo:simple-page-master page-width="148.0mm" page-height="210.0mm" master-name="odd-page">
<fo:region-body margin-top="10.0mm" margin-right="20.0mm" margin-bottom="10.0mm" margin-left="25.0mm" column-count="1" column-gap="12.0 mm"/>
<fo:region-before region-name="odd-page-header" extent="10.0mm" display-align="before"/>
<fo:region-after region-name="odd-page-footer" extent="10.0mm" display-align="after"/>
<fo:region-start extent="25.0mm"/>
<fo:region-end extent="10.0mm"/>
</fo:simple-page-master>
<fo:simple-page-master page-width="148.0mm" page-height="210.0mm" master-name="even-page">
<fo:region-body margin-top="10.0mm" margin-right="20.0mm" margin-bottom="10.0mm" margin-left="25.0mm" column-count="1" column-gap="12.0 mm"/>
<fo:region-before region-name="even-page-header" extent="10.0mm" display-align="before"/>
<fo:region-after region-name="even-page-footer" extent="10.0mm" display-align="after"/>
<fo:region-start extent="25.0mm"/>
<fo:region-end extent="10.0mm"/>
</fo:simple-page-master>
<fo:simple-page-master page-width="148.0mm" page-height="210.0mm" master-name="last-page">
<fo:region-body margin-top="10.0mm" margin-right="20.0mm" margin-bottom="10.0mm" margin-left="25.0mm" column-count="1" column-gap="12.0 mm"/>
<fo:region-before region-name="last-page-header" extent="10.0mm" display-align="before"/>
<fo:region-after region-name="last-page-footer" extent="10.0mm" display-align="after"/>
<fo:region-start extent="25.0mm"/>
<fo:region-end extent="10.0mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="all-pages-sequence">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="first-page" page-position="first" odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="odd-page" page-position="rest" odd-or-even="odd"/>
<fo:conditional-page-master-reference master-reference="even-page" page-position="rest" odd-or-even="even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="all-pages-sequence">
<fo:title>
Active
</fo:title>
<fo:static-content flow-name="first-page-header">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="odd-page-header">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="even-page-header">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="last-page-header">
<fo:block/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Arial" font-size="10pt" role="html:body">
<fo:block>
<cpfo:form external-destination="www.compart.com" field-submit-method="post" field-submit-coordinates="false">
<fo:block role="html:form">
 interactive 
<fo:table border-collapse="collapse" border-style="hidden" role="html:table" width="103mm" table-layout="fixed">
<fo:table-column display-align="center" role="html:col" column-width="51.5mm"/>
<fo:table-column display-align="center" role="html:col" column-width="51.5mm"/>
<fo:table-body start-indent="0pt" end-indent="0pt" text-indent="0pt" last-line-end-indent="0pt" text-align="start" text-align-last="relative" role="html:tbody">
<fo:table-row role="html:tr">
<fo:table-cell role="html:td" overflow="hidden" text-align="right" display-align="center" padding="0.5mm">
<fo:block>
 input: 
</fo:block>
</fo:table-cell>
<fo:table-cell role="html:td" overflow="hidden" display-align="center" padding="0.5mm">
<fo:block>
<cpfo:form-field field-type="text" field-name="InputText" field-required="true" field-maxlen="6" role="html:input" font-family="OCRA" font-size="13pt" width="40mm" height="5mm" color="rgb(0, 153, 0)" background-color="rgb(204, 102, 0)" cpfo:border-radius="3mm" border-style="solid" border-width="0.3mm" border-color="rgb(0, 153, 51)" font-weight="bold"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row role="html:tr">
<fo:table-cell role="html:td" overflow="hidden" text-align="right" display-align="center" padding="0.5mm">
<fo:block>
Send-Button:
</fo:block>
</fo:table-cell>
<fo:table-cell role="html:td" overflow="hidden" display-align="center" padding="0.5mm">
<fo:block>
<cpfo:form-field field-type="button" field-name="Send" action-type="submit" field-button-layout="" field-button-face="sendvalue" role="html:input" font-size="10pt" background-color="rgb(204, 204, 102)" width="40mm" height="7mm"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</cpfo:form>
<cpfo:form external-destination="www.compart.com" field-submit-method="post" field-submit-coordinates="false">
<fo:block role="html:form">
 interactive 
<fo:table border-collapse="collapse" border-style="hidden" role="html:table" width="103mm" table-layout="fixed">
<fo:table-column display-align="center" role="html:col" column-width="51.5mm"/>
<fo:table-column display-align="center" role="html:col" column-width="51.5mm"/>
<fo:table-body start-indent="0pt" end-indent="0pt" text-indent="0pt" last-line-end-indent="0pt" text-align="start" text-align-last="relative" role="html:tbody">
<fo:table-row role="html:tr">
<fo:table-cell role="html:td" overflow="hidden" text-align="right" display-align="center" padding="0.5mm">
<fo:block>
 input: 
</fo:block>
</fo:table-cell>
<fo:table-cell role="html:td" overflow="hidden" display-align="center" padding="0.5mm">
<fo:block>
<cpfo:form-field field-type="text" field-name="InputText2" field-default-text="Text" field-maxlen="6" role="html:input" font-family="OCRA" font-size="13pt" width="40mm" height="5mm" color="rgb(0, 153, 0)" background-color="rgb(204, 102, 0)" cpfo:border-radius="3mm" border-style="solid" border-width="0.3mm" border-color="rgb(0, 153, 51)" font-weight="bold"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row role="html:tr">
<fo:table-cell role="html:td" overflow="hidden" text-align="right" display-align="center" padding="0.5mm">
<fo:block>
Send-Button:
</fo:block>
</fo:table-cell>
<fo:table-cell role="html:td" overflow="hidden" display-align="center" padding="0.5mm">
<fo:block>
<cpfo:form-field field-type="button" field-name="Send2" action-type="submit" field-button-layout="" field-button-face="sendvalue" role="html:input" font-size="10pt" background-color="rgb(204, 204, 102)" width="40mm" height="7mm"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</cpfo:form>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

In the output:

back to top