cpfo:alt

(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

Kategorie: Erweiterte Eigenschaften für FO-Elemente - cpfo:alt

Beschreibung

Attribut gibt die alternative Beschreibung für ein Objekt bei der PDF-Ausgabe an.

Wert:string
Initial:empty string
Vererbt:no
Element:Elemente, bei denen die Common Accessibility Properties angewendet werden können.

XSL-FO Beispiel:

<fo:root font-size="12pt" role="Document" language="en" white-space-treatment="ignore-if-after-linefeed" 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">

Page:

Expansion texts

Abbreviations are difficult to interpret, if they are read by screen readers or other devices. The full form, the expansion text, should be added, so it can be read by devices, although it is not displayed as part of the text flow.

Examples of abbreviations are:

e.g.

,

i.e.

,

etc.

Alternative texts (or alternate texts)

As in HTML, alternative texts should be added to images and other elements such as links.

This is an example of an image with alternative text:

Actual texts

Actual texts are replacement texts that can be added to be read by devices instead of the text, for example to ensure a better understanding. In the examples below, the registered trademark will be read as "trademark", and the list bullet symbol will be read as bullet.

Example 1:

DocBridge

®

Delta

is a product developed by Compart AG.

Example 2:

Expansion texts

Alternative texts

Actual texts

Tag titles

In PDF (PDF/UA) a semantic structure is added to the text using a tag hierarchy. Compart uses the XSL:FO role attributes to identify the tag types.

The tags can further be identified by titles. These tag titles will appear next to the element tag in the logical structure tree.

Download der Beispiele

In der Ausgabe:

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