Technologies XML / XSL-FO / Référence / Extensions XSL d’Antenna House Formatter / Éléments / formatter-config
(Extrait de «XSL-FO ― La Référence » de 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
Catégorie Ajout d’informations de configuration
Usage courant : | Définit des options supplémentaires. Cet élément ne génère pas d’arbre d’aires. Ces fonctions ne sont pas disponibles avec AH Formatter V6.3 Lite. [no-LT] |
Aires : | Aucune. |
Contraintes : | <!ELEMENT axf:formatter-config (%axs-settings;)*> <!ATTLIST axf:formatter-config src CDATA #IMPLIED> L’élément d’extension axf:formatter-config peut être répété autant de fois que souhaité directement sous fo:declarations.
|
Contenu : | %axs-settings; est un élément appartenant à l’espace de noms http://www.antennahouse.com/names/XSL/Settings. Les propriétés du fichier de configuration des options sont incluses dans cet espace, mais seuls les éléments suivants sont actuellement acceptés. Les autres sont ignorés.
|
Exemples : | <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> Ici, le fichier d’options supplémentaires add-settings.xml est indiqué et des réglages PDF sont ajoutés. |
Remarques
Normalement, les options ajoutées par <axf:formatter-config> n’influencent jamais le formatage du document suivant. Toutefois, lorsque les réglages suivants sont effectués dans GUI, les ajouts sont intégrés aux valeurs par défaut puis appliqués au document suivant.
Les options ajoutées par <axf:formatter-config> ne sont pas représentées dans l’arbre d’aires.
Exemple XSL-FO :
<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">
<axf:document-info name="author" value="Alex Critchfield, Antenna House"/>
<axf:document-info name="keywords" value="extensions, document-info"/>
<axf:document-info name="subject" value="document-info extension"/>
<axf:document-info name="title" value="document-info extension demonstration"/>
<fo:layout-master-set>
<fo:simple-page-master page-width="8.5in" page-height="11in" master-name="main">
<fo:region-body region-name="body" margin-top="1in" margin-bottom="1in" margin-left=".75in" margin-right=".75in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:declarations>
<axf:formatter-config>
</axf:formatter-config>
</fo:declarations>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="body">
<fo:block>
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:block space-before="10mm" font-family="monospace" white-space-treatment="preserve" linefeed-treatment="preserve">
<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>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>Sortie :