XML-Technologien / XSL-FO / Referenz / Antenna House Formatter XSL Extensions / Properties / transform
(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 Block Extensions >> Transformation
Specifies the block transformation. [CSS3-Transforms] The ‘transform’ Property[no-LT]
Value: | none | <transform-function> [ <transform-function> ]* |
Initial: | none |
Applies to: | transformable objects |
Inherited: | no |
Percentages: | N/A |
Values have the following meanings.
none | Does not transform the block. |
<transform-function> | Performs the specified transformation. The following transformations can be specified.
|
This property is not available with AH Formatter V6.3 Lite.
XSL-FO sample:
<fo:root xml:lang="en" 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="document-title" value="Block area transformation"/>
<axf:document-info name="author" value="Antenna House, Inc."/>
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster1">
<fo:region-after extent="7mm"/>
<fo:region-body margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster1">
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="0.8em" text-align="right" color="green">
<fo:basic-link external-destination="http://www.antennahouse.com/">
Antenna House, Inc.
</fo:basic-link>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="serif" font-size="1em" line-height="1.4" axf:hyphenate-hyphenated-word="false" hyphenate="true">
<fo:block span="all" font-family="sans-serif" font-size="2em" font-weight="bold" line-height="2" space-before="1em" space-after="1em" space-before.conditionality="retain" space-after.conditionality="retain" background-color="#EEEEEE">
<fo:block start-indent="1em" end-indent="1em">
Block area transformation
</fo:block>
</fo:block>
<fo:block span="all" space-before="1em" space-after="1em" space-after.conditionality="retain" text-indent="0em" border="1pt solid #9999FF" start-indent="0.5em" end-indent="0.5em" padding="0.5em" text-align="justify">
By using axf:transform, angles of block area can be transformed. Specify the angle by rotate, skew, etc. Origin points of block transformation can be specified with axf:transform-origin.
</fo:block>
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
If rotate(-15deg) is specified
</fo:block>
<fo:block axf:transform="translate(10px,10px) rotate(-15deg)" border="#f80 solid 1px" font-size="1.5em" space-after="3.0em" margin-right="50%">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra.
</fo:block>
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
If skewX(-45deg) is specified
</fo:block>
<fo:block axf:transform="translate(40px,10px) skewX(-45deg)" border="#f80 solid 1px" font-size="1.5em" space-after="1.5em" margin-right="50%">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra.
</fo:block>
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
If rotate(-15deg), skewX(-45deg) is specified
</fo:block>
<fo:block axf:transform="translate(10px,30px) rotate(-15deg) skewX(-45deg)" border="#f80 solid 1px" font-size="1.5em" space-after="6.0em" margin-right="50%">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra.
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>Output: