Tecnologías XML / XSL-FO / Referencia / Extensiones XSL de Antenna House Formatter / Elementos / formatter-config
(Extracto de «XSL-FO ― La Referencia» 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
Categoría Añadir información de configuración
Uso habitual: | Define opciones adicionales. Este elemento no genera árbol de áreas. Estas funciones no están disponibles con AH Formatter V6.3 Lite. [no-LT] |
Áreas: | Ninguna. |
Restricciones: | <!ELEMENT axf:formatter-config (%axs-settings;)*> <!ATTLIST axf:formatter-config src CDATA #IMPLIED> El elemento de extensión axf:formatter-config puede repetirse tantas veces como se desee directamente bajo fo:declarations.
|
Contenido: | %axs-settings; es un elemento perteneciente al espacio de nombres http://www.antennahouse.com/names/XSL/Settings. Las propiedades del archivo de configuración de opciones se incluyen en este espacio, pero actualmente solo se aceptan los elementos siguientes. Los demás se ignoran.
|
Ejemplos: | <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> Aquí se indica el archivo adicional add-settings.xml y se añaden ajustes PDF. |
Observaciones
Normalmente, las opciones añadidas por <axf:formatter-config> no afectan al formato del documento siguiente. Sin embargo, cuando se realizan los ajustes siguientes mediante GUI, las adiciones se integran en los valores predeterminados y se aplican al documento siguiente.
Las opciones añadidas por <axf:formatter-config> no se reflejan en el árbol de áreas.
Ejemplo 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>Salida: