<axf:formatter-config>

(Auszug aus "XSL-FO ― Die Referenz" von 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 Appending Option Setting Information

Common Usage:Specifies additional option setting information. This element doesn't generate the area tree. These features are not available with AH Formatter V6.3 Lite. [no-LT]
Areas:None.
Constraints:

<!ELEMENT axf:formatter-config (%axs-settings;)*> <!ATTLIST axf:formatter-config src CDATA #IMPLIED>

The axf:formatter-config extension element can be set as many as you want right under fo:declarations.
The src property can optionally specify the external Option Setting File. It's an additional setting to the original settings and effective only in this FO. It becomes base-uri for the relative path. A part of the element which is the same as %axs-settings under the specified file is evaluated.
Contents:%axs-settings; is an element which belongs to the name space http://www.antennahouse.com/names/XSL/Settings. The properties in the Option Setting File are included in the name space, however currently only the following elements can be described. The other elements will be disregarded.
  • <pdf-settings>
  • <text-settings>
  • <svg-settings>
  • <inx-settings>
  • <mif-settings>
  • <ps-settings>
Examples:

<fo:declarations> <axf:formatter-config src="add-settings.xml" xmlns:axs="http://www.antennahouse.com/names/XSL/Settings"> <axs:pdf-settings pdf-version="PDF1.6" tagged-pdf="true"/> </axf:formatter-config> </fo:declarations>

In this example, an additional option setting file, add-settings.xml is specified, and then PDF setting is added.

Remarks

Usually, the additional setting by <axf:formatter-config> never influences the formatting process of the following document. However, when the following settings are done by GUI, the additional settings will be reflected on the default settings, then reflected on the formatting of the following document.

The addition option setting information by <axf:formatter-config> is not reflected in the area tree.

XSL-FO sample:

<fo:root font-size="12pt" 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">

This FO has a declaration section that changes the Formatter configuration when it is rendered to PDF but only for this document. This document will be in PDF 1.7 and tagged even if no configuration file is used. This feature can be used to control the configuration of Formatter from with a stylesheet instead of having to rely on an external tool.

<fo:declarations> <axf:formatter-config xmlns:axs="http://www.antennahouse.com/names/XSL/Settings"> <axs:pdf-settings pdf-version="PDF1.7" tagged-pdf="true"/> </axf:formatter-config></fo:declarations>

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: