axf: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.

noneDoes not transform the block.
<transform-function>Performs the specified transformation. The following transformations can be specified.
  • matrix(<number>, <number>, <number>, <number>, <number>, <number>)
  • translate(<translation-value>[, <translation-value>])
  • translateX(<translation-value>)
  • translateY(<translation-value>)
  • scale(<number>[, <number>])
  • scaleX(<number>)
  • scaleY(<number>)
  • rotate(<angle>)
  • skew(<angle>[, <angle>])
  • skewX(<angle>)
  • skewY(<angle>)

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">

Antenna House, Inc.

Block area transformation

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.

If rotate(-15deg) is specified

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra.

If skewX(-45deg) is specified

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra.

If rotate(-15deg), skewX(-45deg) is specified

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra.

Download der Beispiele

Output:

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