XML technologies / XSL-FO / Reference / Elements in XSL-FO / fo:multi-properties

(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

Recommendation section: 6.9.6

Category: 6.9 Dynamic Effects: Link and Multi Formatting Objects

Description

This element allows switching between different sets of properties.

XSL-FO version: 1.0

Parent elements

<fo:basic-link> , <fo:bidi-override> , <fo:block> , <fo:block-container> , <fo:float> , <fo:flow> , <fo:folio-prefix> , <fo:folio-suffix> , <fo:footnote-body> , <fo:index-page-citation-list-separator> , <fo:index-page-citation-range-separator> , <fo:index-page-number-prefix> , <fo:index-page-number-suffix> , <fo:inline> , <fo:inline-container> , <fo:leader> , <fo:list-item-body> , <fo:list-item-label> , <fo:marker> , <fo:multi-case> , <fo:multi-toggle> , <fo:static-content> , <fo:table-caption> , <fo:table-cell> , <fo:title> and <fo:wrapper>

Child elements

<fo:multi-property-set>

Alternative sets of properties can be specified here and selected by the parent element <fo:multi-properties>.

<fo:wrapper>

Properties for a group of formatting objects can be specified in <fo:multi-properties>.

Attributes

role

This attribute creates content-related identifiers that provide alternative output devices, such as audio output, with information about the XML element’s content.

source-document

This attribute identifies an XML document as the source document. If the renderer cannot interpret the FO document, for example for a hypothetical speech output, the source document can also be consulted. It has no practical significance.

Support:

Conformance level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Extended

N

N

-

N

N

XSL-FO example:

<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" 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 master-name="Inhalt-Seiten.kopf" margin="0mm 0mm 0mm
                      0mm" page-height="150mm" page-width="148mm">
<fo:region-body column-count="1" margin="10mm 15mm 10mm
                        25mm" background-color="white"/>
<fo:region-before region-name="kopf" extent="10mm"/>
<fo:region-after region-name="kopf" extent="10mm"/>
<fo:region-start extent="10mm"/>
<fo:region-end extent="10mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="Inhalt-Seiten">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="Inhalt-Seiten.kopf"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten" font-size="10pt">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:multi-properties>
<fo:multi-property-set active-state="active" space-after="1em" span="all" color="red" page-break-after="always"/>
<fo:multi-property-set active-state="hover" space-after="1em" span="all" color="red" page-break-after="always"/>
<fo:multi-property-set active-state="visited" space-after="1em" span="all" color="green" page-break-after="always"/>
<fo:multi-property-set active-state="link" space-after="1em" span="all" color="blue" page-break-after="always"/>
<fo:wrapper>
<fo:basic-link external-destination="http://www.data2type.de">
www.data2type.de
</fo:basic-link>
</fo:wrapper>
</fo:multi-properties>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

Rendering of the element in the XSL-FO reference

In the output:

Excerpt from the W3C Recommendation:

back to top