About Arbortext Styler > Arbortext Styler Dialog Boxes > HTML/PDF Attribute Dialog Box
  
HTML/PDF Attribute Dialog Box
The HTML/PDF Attribute dialog box opens when you carry out one of the following actions for elements, contexts, conditions, or property sets:
Click Add or Edit in the Attributes field of the PDF tags or HTML tag property categories
In this dialog you can configure attributes and values for the PDF tags and HTML tags assigned to elements in your source document. The attributes and tags will be included when the document is published as tagged PDF or semantic HTML output.
* 
Take care when configuring attributes to override values set in normal composition, e.g.id, class, style, align, lang, rowspan, colspan. Changes to these may cause unwanted effects in output. For example, if the id attribute is used as a link target, overriding the value of this attribute could result in broken links.
The title of the dialog box will be either Add HTML Attribute, Edit HTML Attribute, Add PDF Attribute, or Edit PDF Attribute, depending on the operation you used to invoke it.
The HTML/PDF Attribute dialog box contains the following options:
HTML or PDF attribute - select an attribute from the drop down list, or enter an attribute name manually.
For HTML attributes, you can enter any valid XML attribute name. Refer to HTML4 Attributes not Permitted for HTML5 Output for a list of attributes that are not permitted if you are generating HTML5 output.
For PDF attributes, you can manually enter RowSpan, ColSpan, or Lang
Synchronize with HTML or PDF attribute - check this option to use the value set as the value for an equivalent attribute in the other tagged output type.
Select the equivalent attribute from the drop down list, or use the suggested one.
Deselect the option if you don’t plan to generate the other tagged output type from the same source, or wish to provide a different attribute and value for the element in the other tagged output.
The table below list the tags that synchronize by default:
Semantic HTML Attribute
Tagged PDF Attribute
alt
Alt
rowspan
RowSpan
colspan
ColSpan
title
Title
title (for abbr tag)
E
lang
Lang
Value - select the method by which to set the attribute value:
From attribute: specify the attribute on the element, context, or condition whose value should be used as the HTML/PDF attribute value. Select an attribute from the drop down list or manually enter a valid XML attribute name.
From XPath: enter a valid XPath expression that will extract the information to form the HTML/PDF attribute value.
Function: specify an HTML function that will be passed as the value for event-based attributes such as onclick and onmouseover. Enter the name of an HTML Function object or select one from the drop down list of objects in the stylesheet.
For more information, see Custom JavaScript Functions.
Text: enter the attribute value as text.
To unset an attribute in tagged output, choose this option then leave the field blank to set the value to an empty string.
HTML4 Attributes not Permitted for HTML5 Output
The list below describes those attributes that are not permitted on HTML tags if you are generating HTML5 output (if the Generate HTML5 option is checked in the HTML tab of the Stylesheet Properties dialog box):
HTML Attribute
Not Permitted for These HTML Tags
align
caption, img, table, hr, div, h1h6, p, col, colgroup, tbody, td, tfoot, th, thead, tr
bgcolor
table, tr, td, th, body
cellpadding
table
cellspacing
table
char
col, colgroup, tbody, td, tfoot, th, thead, tr
charoff
col, colgroup, tbody, td, tfoot, th, thead, tr
clear
br
frame
table
height
td, th
rules
table
size
hr
type
li, ol, ul
valign
col, colgroup, tbody, td, tfoot, th, thead, tr
width
hr, table, td, th, col, colgroup, pre