XML technologies / XSL-FO / Reference / Elements in XSL-FO / fo:multi-property-set
(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.7
Category: 6.9 Dynamic Effects: Link and Multi Formatting Objects
Description
Alternative sets of properties can be specified here and selected by the parent element <fo:multi-properties>.
XSL-FO version: 1.0
Parent elements
This element allows switching between different sets of properties. |
Attributes
This attribute defines property profiles fo:multi-property-set to apply depending on an application’s current state. Intended for dynamic applications, it is not supported by any known formatter! | |
This attribute uniquely identifies an object so that other objects can reference it. | |
This attribute defines an index class for individual index entries (index-key) or an entire area. All index entries in that area belong to the class. When referencing index entries (fo:index-key-reference) belonging to different classes, their page numbers are listed separately even if they are consecutive. For example, "1-8" becomes "1-4,5-8" if entries on pages 1-4 belong to one class and pages 5-8 to another. This is useful when pages are grouped into sections with different numbering systems. A range such as "I-14" can thus be avoided and replaced with "I-V,1-14". | |
This attribute defines an index entry. The supplied value is used as the entry’s identifier. An index entry reference (fo:index-key-reference) can reference all entries with this identifier and add their page numbers to a page citation list (fo:index-page-citation-list). |
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>In the output:
Excerpt from the W3C Recommendation: