XML technologies / XSL-FO / Reference / Attributes in XSL-FO / scale-option
(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: 7.30.14
Category: 7.29 Writing-mode-related Properties
Description
For a <fo:scaling-value-citation> element that outputs an image’s scaling factor, this attribute selects the height or width factor. The default is the width factor. If the image is scaled differently in each direction, the height factor can be selected instead.
Values
The width scaling factor is output. | |
The height scaling factor is output. | |
Inherited: | yes |
Default value: width
XSL-FO version: 1.1
Allowed in:
This element retrieves the scaling factor of the referenced fo:external-graphic. |
Support:
Conformance level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | Y | 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" margin="0mm 0mm 0mm
0mm" page-height="150mm" page-width="148mm">
<fo:region-body margin="10mm 15mm 10mm
25mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten" font-size="10pt">
<fo:flow flow-name="xsl-region-body">
<fo:block-container margin-bottom="2em">
<fo:block>
<fo:external-graphic id="bild4" src="data2type-logo.TIF" content-height="25%" content-width="100%" scaling="non-uniform"/>
</fo:block>
<fo:block>
Höhe:
<fo:scaling-value-citation ref-id="bild4" scale-option="height"/>
%
</fo:block>
<fo:block>
Breite:
<fo:scaling-value-citation ref-id="bild4" scale-option="width"/>
%
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>In the output:
Excerpt from the W3C Recommendation: