Alternate Text

Top Previous Topic Next Topic  Print this topic

Alternate Text represents a text that is a replacement for a structure of elements and their "children". This replacement text (which should be applied to a piece of content as small as possible) is useful when extracting the document's content for disabled users or for other purposes, offering high accessibility.

 

Alternate text can be inserted into the document using the xf:alt-text element.

 

Example of usage:

 

 

<?xml version="1.0" encoding="utf-8" ?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:svg="http://www.w3.org/2000/svg" font-family="Times New Roman" font-size="12pt">

       <xf:pdf-page-settings pdf-conformance="PDF/A-1a:2005" />

       <fo:layout-master-set>

               <fo:simple-page-master master-name="Letter Page" page-width="8.500in" page-height="11.000in">

                       <fo:region-body region-name="xsl-region-body" margin="0.700in" />

                       </fo:simple-page-master>

       </fo:layout-master-set>

       <fo:page-sequence master-reference="Letter Page">

               <fo:flow flow-name="xsl-region-body">

                       <fo:block><fo:external-graphic src="url(D:\images\Sample.jpeg)" xf:alt-text="alt text" /></fo:block>

               </fo:flow>

       </fo:page-sequence>

</fo:root>

 

 

This extension is available only for tagged PDFs (PDF/A-1 and PDF508) and HTML output file types.