ARBOTEXT
ARBOTEXT
Arbortext Styler
8.3.0.0
Copyright © 2024 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.
Copyright for PTC software products is with PTC Inc. and its subsidiary companies (collectively “PTC”), and
their respective licensors. This software is provided under written license or other agreement, contains
valuable trade secrets and proprietary information, and is protected by the copyright laws of the United States
and other countries. It may not be copied or distributed in any form or medium, disclosed to third parties, or
used in any manner not provided for in the applicable agreement except with written prior approval from
PTC. More information regarding third party copyrights and trademarks and a list of PTC’s registered
copyrights, trademarks, and patents can be viewed here: https://www.ptc.com/support/go/copyright-and-
trademarks
User and training guides and related documentation from PTC are also subject to the copyright laws of the
United States and other countries and are provided under a license agreement that restricts copying,
disclosure, and use of such documentation. PTC hereby grants to the licensed software user the right to make
copies of product documentation and guides in printed form, but only for internal/personal use and in
accordance with the license agreement under which the applicable software is licensed. Any copy made shall
include the PTC copyright notice and any other proprietary notice provided by PTC. Note that training
materials may not be copied without the express written consent of PTC. This documentation may not be
disclosed, transferred, modified, or reduced to any form, including electronic media, or transmitted or made
publicly available by any means without the prior written consent of PTC and no authorization is granted to
make copies for such purposes.
PTC software products and software documentation are “commercial items” as that term is defined at 48 C.F.
R. 2.101. Pursuant to Federal Acquisition Regulation (FAR) 12.212 (a)-(b) (Computer Software) (MAY 2014)
for civilian agencies or the Defense Federal Acquisition Regulation Supplement (DFARS) at 227.7202-1(a)
(Policy) and 227.7202-3 (a) (Rights in commercial computer software or commercial computer software
documentation) (FEB 2014) for the Department of Defense, PTC software products and software
documentation are provided to the U.S. Government under the PTC commercial license agreement. Use,
duplication or disclosure by the U.S. Government is subject solely to the terms and conditions set forth in the
applicable PTC software license agreement.
3
Alternate Text Support for Graphics.................................................................... 172
Exporting Stylesheets.............................................................................................. 175
Exporting Stylesheets ....................................................................................... 176
Defining Page Layout .............................................................................................. 179
Page Layout Overview ...................................................................................... 180
Creating a Page Set.......................................................................................... 182
Setting a Page Size and Orientation for a Page Set ............................................. 182
Defining Number of Pages for a Page Set........................................................... 184
Setting Margins in a Page Set............................................................................ 185
Setting Columns in a Page Set .......................................................................... 186
Justifying Columns in a Page Set ....................................................................... 189
Defining Page Regions ..................................................................................... 190
Add Page Region ............................................................................................. 192
Adding Headers and Footers to a Page Set ........................................................ 198
Configuring Page Numbers for a Page Set.......................................................... 199
Applying a Page Set to an Element .................................................................... 200
Validating Page Sets ......................................................................................... 200
Adding Border Rules to Block Elements.............................................................. 202
Side by Side Alignment ..................................................................................... 204
Run-in Styling................................................................................................... 215
Hyphenation..................................................................................................... 216
Working with Properties ........................................................................................... 221
Properties Overview ......................................................................................... 222
Deriving Property Values ................................................................................... 223
Resolving Property Values................................................................................. 227
Explicit v Derived Property Values in Arbortext Styler........................................... 229
Modifying Properties ......................................................................................... 233
Applying Properties for Specific Outputs ............................................................. 234
Creating Output Sets in the Outputs to Edit List................................................... 235
Hiding Element Content .................................................................................... 236
Applying Prespace and Postspace to Elements................................................... 239
Initial Properties and Property Sets Applied by Styles .......................................... 243
Arbortext Styler Usability Aids............................................................................ 244
Property Value Precedence in Arbortext Styler .......................................................... 247
Understanding How Arbortext Styler Determines Property Values ........................ 248
Processing Order During Publishing................................................................... 248
Processing Order in Arbortext Styler .................................................................. 249
Creating and Applying Property Sets ........................................................................ 255
Property Sets Overview..................................................................................... 256
Working with Property Sets................................................................................ 256
Applying Property Sets...................................................................................... 258
Property Sets Example ..................................................................................... 261
Working with Elements in Your Stylesheet ................................................................. 263
Elements Overview........................................................................................... 264
Adding New Elements to Your Stylesheet ........................................................... 271
4 User's Guide
Keeping Elements Together............................................................................... 274
Elements and Document Types ......................................................................... 278
Configuring a Graphic Element .......................................................................... 278
Creating Contexts ................................................................................................... 279
Contexts Overview............................................................................................ 280
Context Priority................................................................................................. 282
Working with Contexts ...................................................................................... 283
Using XPath in Contexts.................................................................................... 288
Contexts Walk-Through..................................................................................... 291
Creating Conditions................................................................................................. 297
Conditions Overview ......................................................................................... 298
Working with Conditions .................................................................................... 300
Conditions Walk-Through .................................................................................. 303
Creating If, Else/If, and Else Conditions .............................................................. 306
Nesting Conditions............................................................................................ 309
Nested and If, Else/If, and Else Conditions in Exported Stylesheets ...................... 317
Using XPath in Conditions ................................................................................. 318
Using Conditions to Change a Document's Page Size ......................................... 320
Cutting, Copying, and Pasting .................................................................................. 323
Cut, Copy, and Paste Overview.......................................................................... 324
Cutting, Copying, and Pasting Elements ............................................................. 324
Cutting, Copying, and Pasting Contexts.............................................................. 325
Cutting, Copying, and Pasting Conditions ........................................................... 327
Cutting, Copying, and Pasting Property Sets....................................................... 328
Cutting, Copying, and Pasting Page Sets ........................................................... 329
Cutting, Copying, and Pasting Tables of Content ................................................. 330
Cutting, Copying, and Pasting Custom Tables..................................................... 331
Cutting, Copying, and Pasting Cross References ................................................ 332
Cutting, Copying, Pasting, and Deleting Properties.............................................. 333
Creating Headers and Footers ................................................................................. 337
Headers and Footers Overview.......................................................................... 338
Creating a Header or Footer .............................................................................. 338
Adding Content to a Header or Footer ................................................................ 341
Inserting Division References in Headers and Footers ......................................... 343
Adding Page Numbers to Headers and Footers .................................................. 345
Working with Tables of Contents............................................................................... 351
Table of Contents Overview ............................................................................... 352
Creating a Basic Table of Contents Format Object............................................... 355
Styling an Element to Generate a Table of Contents ............................................ 357
Customizing the Content of a TOC ..................................................................... 360
Applying Non-Standard Formatting to a Table of Contents ................................... 370
Generating Indexes ................................................................................................. 377
Indexing Overview ............................................................................................ 378
Creating an Index with Element Model Index Terms............................................. 379
Creating an Index with Attribute Model Index Terms ............................................ 381
Contents 5
Creating a Index with Nesting Element Model Index Terms .................................. 382
Creating See and See-Also Index Terms ............................................................ 384
Configuring Alternative Sorting of Index Terms .................................................... 386
Configuring Multiple Indexes for a Document ...................................................... 388
Modifying the Appearance of an Index................................................................ 390
Modifying Index Parameters .............................................................................. 392
Including Elements not Styled as Index Terms in an Index.................................... 393
Context Matching of Elements in Index Terms ..................................................... 395
Generating a Sorted Inline List........................................................................... 396
Styling Custom Tables ............................................................................................. 403
Custom Table Styling Overview.......................................................................... 404
Creating and Styling a Custom Table.................................................................. 405
Generating Custom Table Cells via XPath........................................................... 411
Reordering Columns in Custom Tables............................................................... 415
Using Background Color in Custom Tables ......................................................... 417
Formatting Footnotes and Endnotes ......................................................................... 421
Footnotes Overview .......................................................................................... 422
Creating and Modifying an Inline Model Footnote ................................................ 425
Creating and Modifying a Reference Model Footnote........................................... 431
Creating and Modifying a Hybrid Model Footnote ................................................ 434
Formatting the Reference Mark in a Footnote ..................................................... 439
Endnotes Overview........................................................................................... 448
Creating and Modifying an Inline Model Endnote................................................. 449
Creating and Modifying a Reference Model Endnote ........................................... 454
Adding Generated Text ............................................................................................ 463
Generated Text Overview .................................................................................. 464
Adding Generated Text to Elements ................................................................... 465
Inserting Element and Attribute Content in Generated Text .................................. 468
Numbering List Items ........................................................................................ 474
Adding Bullets to List Items................................................................................ 479
Labeling and Numbering Divisions ..................................................................... 483
Labeling and Numbering Formal Blocks ............................................................. 491
Advanced Formatting of Titles and Numbering .................................................... 495
Non Standard Numbering with XPath ................................................................. 506
Inserting Leaders, Rules, and Space Fills in Generated Text ................................ 507
Inserting Markup in Generated Text.................................................................... 509
Inserting Graphics in Generated Text ................................................................. 511
Inserting Symbols in Generated Text .................................................................. 513
Inserting Tables in Generated Text ..................................................................... 514
Adding User Formatting Elements to Generated Text .......................................... 517
Using XPath Expressions in Generated Text ....................................................... 518
Creating Repeating Titles .................................................................................. 522
Adding Change Bars......................................................................................... 524
Maintaining Translations of Generated Text ........................................................ 528
Cross References and Other Links ........................................................................... 549
6 User's Guide
Cross Reference and Linking Overview .............................................................. 550
Creating a Cross Reference Format Object......................................................... 551
Creating Cross References and Cross Reference Formatting .............................. 551
Modifying Default Cross Reference Formatting ................................................... 563
SFEs to Support Linking.................................................................................... 565
Graphic Support...................................................................................................... 567
Supporting Intelligent Graphics Sets .................................................................. 568
PDF Graphics................................................................................................... 570
Publishing PDF with 3D Graphics ...................................................................... 571
Multimedia Support ................................................................................................. 573
Introduction ...................................................................................................... 574
Styling and Publishing Video and Audio Content ................................................. 574
Working with Modules.............................................................................................. 581
Modules Overview ............................................................................................ 582
Creating a Module from an Existing Stylesheet ................................................... 584
Developing a New Stylesheet Using Existing Modules ......................................... 585
Overriding Stylesheet Definitions ....................................................................... 588
Modifying Definitions in a Module ....................................................................... 591
Adding New Definitions to a Module ................................................................... 593
Advanced Formatting Techniques............................................................................. 597
Formatting Landscape Tables and Figures ......................................................... 598
Generating Barcodes and QR Codes ................................................................. 599
Styling DITA Documents .......................................................................................... 619
DITA Styling Overview ...................................................................................... 620
Working with the Resolved Document for Styling................................................. 623
Working with Specialized Elements.................................................................... 630
Non-Latin Language Support ................................................................................... 633
Overview of Support for Non-Latin Text in Arbortext Styler ................................... 634
Combined Fonts ............................................................................................... 635
List and Page Numbering .................................................................................. 638
Hanging Punctuation......................................................................................... 644
Text Underlining and Strikethrough..................................................................... 646
Right-to-Left Layout Direction ............................................................................ 652
Publishing XML Documents as RTF Files.................................................................. 655
Overview of Publishing to RTF........................................................................... 656
Publishing RTF Files ........................................................................................ 656
Creating Export Stylesheets .............................................................................. 657
Publishing RTF With and Without Using Word Style Names ................................. 658
Publishing Word Fields, Instructions, and Switches ............................................. 663
Publishing XML Attributes to Unique Word Paragraph or Character Styles ............ 667
Publishing Figures in RTF Files ......................................................................... 670
Publishing Tables in RTF Files ........................................................................... 672
Publishing Table and Figure Captions in RTF Files .............................................. 673
Publishing Lists in RTF Files.............................................................................. 687
Contents 7
Publishing Headers and Footers in RTF Files ..................................................... 689
Publishing Footnotes and Endnotes in RTF Files ................................................ 692
Publishing Scoped Tables of Contents in RTF Files ............................................. 692
Using Batch Processing to Publish RTF Files...................................................... 694
Troubleshooting Import and Export Issues .......................................................... 695
Limitations when Publishing to RTF.................................................................... 696
Extending Stylesheets ............................................................................................. 699
Identifying Items that have Edited Source ........................................................... 700
Viewing Stylesheet Source ................................................................................ 701
Editing Stylesheet Source Overview................................................................... 703
Editing Element Source..................................................................................... 706
Editing Property Set Source............................................................................... 709
Editing Page Set Source ................................................................................... 709
Editing FOSI Resource Description Source......................................................... 710
Editing Common XSL Source ............................................................................ 711
Editing XSL Root Template Source .................................................................... 712
Editing PTC APP Root Template Source............................................................. 712
Overview of Autogenerated PTC APP Source..................................................... 714
Tips for Editing Stylesheet Source...................................................................... 722
Editing Stylesheet Source Examples .................................................................. 723
Editing FOSI Source that Contains a Reference to an Object ............................... 725
Editing FOSI Source of Elements with Numbered Contexts or Conditions ............. 726
Extending the Edited Source Function by Adding More Complex Code ................. 727
Deleting Source Edits........................................................................................ 731
Comparing Edited Source and XPath for Stylesheet Extension............................. 731
Working with Custom CSS Styles ............................................................................. 733
Associating External CSS with Styler Stylesheets ............................................... 734
Custom CSS Style Definitions............................................................................ 736
Scripting and Interactivity ......................................................................................... 745
Accessing Scripts from Arbortext Styler .............................................................. 746
Associating a JavaScript Library with a Stylesheet .............................................. 749
Custom JavaScript Functions ............................................................................ 749
Including PDF Forms in PDF Output................................................................... 752
Arbortext Styler Window and Editors......................................................................... 763
Arbortext Styler’s Windows, Lists, and Editors..................................................... 765
Arbortext Styler Window .................................................................................... 766
Elements List ................................................................................................... 769
Property Sets List ............................................................................................. 771
Page Sets List .................................................................................................. 772
Page Types List ................................................................................................ 772
Page Regions List............................................................................................. 774
Generated Contents List ................................................................................... 774
Tables of Contents List ...................................................................................... 774
Indexes List...................................................................................................... 777
Custom Tables List ........................................................................................... 777
8 User's Guide
Cross References List....................................................................................... 778
Sizes List ......................................................................................................... 778
Combined Fonts List ......................................................................................... 780
PTC ALD Functions List .................................................................................... 781
HTML Functions List ......................................................................................... 781
Columns in List Views ....................................................................................... 781
Description Tab ................................................................................................ 784
Comment Tab................................................................................................... 785
Outputs to edit Field .......................................................................................... 787
Text Category ................................................................................................... 787
Indent Category................................................................................................ 795
Spacing Category ............................................................................................. 800
Breaks Category............................................................................................... 804
Generated Text Category .................................................................................. 818
Property Sets Category ..................................................................................... 820
Footnote Category ............................................................................................ 821
Block border Category ...................................................................................... 823
Side by Side Category....................................................................................... 825
PDF tags Category ........................................................................................... 831
HTML tag Category........................................................................................... 834
RTF Category................................................................................................... 838
Graphic Category ............................................................................................. 843
Page Sets - Page Size Category ........................................................................ 844
Page Sets - Page Types Category ..................................................................... 847
Page Sets - Columns Category.......................................................................... 848
Page Sets - Page Numbers Category ................................................................. 851
Page Sets - Other Category............................................................................... 852
Page Regions - Position Category...................................................................... 853
Page Regions - Text Category ........................................................................... 855
Page Regions - Graphic Category...................................................................... 856
Page Regions - Borders Category...................................................................... 858
Page Regions - Other Category ......................................................................... 859
Indexes - General Category............................................................................... 861
Indexes - Format Category ................................................................................ 861
Custom Tables - Elements Category .................................................................. 862
Custom Tables - Cells Category ......................................................................... 863
Custom Tables - Header Cells Category ............................................................. 864
Custom Tables - Format Category...................................................................... 866
Custom Tables - Background Color Category...................................................... 869
Menus ............................................................................................................. 870
Toolbars........................................................................................................... 894
PTC APP Source Editor .................................................................................... 897
Source Editor ................................................................................................... 899
Generated Text Editor ....................................................................................... 903
Arbortext Styler Dialog Boxes................................................................................... 915
Dialog Boxes .................................................................................................... 918
Contents 9
Add/Edit JavaScript Library Dialog Box............................................................... 918
Add Module Dialog Box ..................................................................................... 918
Add Namespace Declaration Dialog Box ............................................................ 919
Add New Elements Dialog Box .......................................................................... 920
Add Target Language Dialog Box....................................................................... 921
Attribute Modifier Dialog Box ............................................................................. 921
Attribute Test Dialog Box ................................................................................... 921
Bullet Dialog Box .............................................................................................. 923
Condition Dialog Box ........................................................................................ 925
Configure Columns Dialog Box .......................................................................... 926
Content Test Dialog Box .................................................................................... 927
Context Dialog Box ........................................................................................... 929
Convert Stylesheet Dialog Box .......................................................................... 934
Copy To Module Dialog Box............................................................................... 935
Cross Reference Details Dialog Box................................................................... 935
Custom Content Dialog Box............................................................................... 936
Customize Table of Contents Dialog Box ............................................................ 937
Cut Properties Dialog Box ................................................................................. 939
Definition List Details Dialog Box........................................................................ 939
Delete Properties Dialog Box ............................................................................. 941
Division Details Dialog Box ................................................................................ 941
Division Reference Dialog Box........................................................................... 942
Division Title Number Dialog Box ....................................................................... 942
Document Language Mapping Dialog Box .......................................................... 948
Duplicate Translation Unit IDs in Module ............................................................ 949
Edit Graphic XPath Dialog Box .......................................................................... 949
Edit Module Dialog Box ..................................................................................... 950
Edit Uses List Dialog Box .................................................................................. 950
Edit XPath Override for Current Level Dialog Box................................................ 951
Elements Not in Document Type Window ........................................................... 952
Export PTC APP Template Dialog Box................................................................ 953
Export CSS dialog box ...................................................................................... 954
Export FOSI Stylesheet Dialog Box .................................................................... 954
Export Generated Text for Translation Dialog Box ............................................... 955
Export XSL-EPUB Stylesheet Dialog Box ........................................................... 956
Export XSL-FO Stylesheet Dialog Box................................................................ 957
Export XSL-FO RTF Stylesheet Dialog Box ........................................................ 958
Export XSL-HTML File Stylesheet Dialog Box ..................................................... 958
Export XSL-HTML Help Stylesheet Dialog Box.................................................... 959
Export XSL-Web Stylesheet Dialog Box ............................................................. 960
Field Dialog Box ............................................................................................... 960
Final Page Number Dialog Box .......................................................................... 961
Find Explicit Properties Dialog Box..................................................................... 962
Find Explicit Properties Results Window ............................................................. 963
Find Where Used Dialog Box............................................................................. 964
Find Where Used Results Window ..................................................................... 965
Footnote Number Dialog Box............................................................................. 966
10 User's Guide
Footnotes Dialog Box........................................................................................ 968
Formal Block Title Number Dialog Box ............................................................... 971
Generated Cell Dialog Box ................................................................................ 977
Graphic Details Dialog Box ................................................................................ 978
HTML/PDF Attribute Dialog Box......................................................................... 979
HTML/CSS Defects List .................................................................................... 982
Import Generated Text Translation Dialog Box .................................................... 983
Import Generated Text Translation — Translation has not Changed...................... 983
Import Generated Text Translation — Translation Identical to Source.................... 984
Import Generated Text Translation — Translation Already Current........................ 984
Incompatible Document Types for Stylesheet Dialog Box..................................... 985
Index Details Dialog Box ................................................................................... 985
Index Term (Attribute Model) Details Dialog Box.................................................. 986
Index Term (Element Model) Details Dialog Box .................................................. 987
Index Term (Nesting Element Model) Details Dialog Box...................................... 989
Insert Attribute Content Dialog Box .................................................................... 990
Insert Attribute Content Dialog Box (Headers and Footers) .................................. 993
Insert Cross Reference Dialog Box .................................................................... 994
Insert Element Content Dialog Box..................................................................... 995
Insert Element Content Dialog Box (Headers and Footers) .................................. 998
Insert Index Dialog Box ................................................................................... 1000
Insert Leaders, Rule or Space Dialog Box......................................................... 1001
Insert Metadata Dialog Box ............................................................................. 1002
Insert Symbol Dialog Box ................................................................................ 1003
Insert Table of Contents Dialog Box.................................................................. 1004
Insert XPath String Dialog Box......................................................................... 1004
Link Details Dialog Box ................................................................................... 1005
Link Target Details Dialog Box ......................................................................... 1006
List Item Number Dialog Box ........................................................................... 1007
Modules Dialog Box ........................................................................................ 1012
Move to Module Dialog Box ............................................................................. 1014
Namespace Declarations Dialog Box ............................................................... 1014
New Custom Counter Dialog Box ..................................................................... 1015
New Module Dialog Box .................................................................................. 1016
New User Formatting Element Dialog Box ........................................................ 1017
No Stylesheet Found Dialog Box...................................................................... 1017
Number Details Dialog Box.............................................................................. 1017
Numbering Restart Dialog Box......................................................................... 1023
Open Stylesheet Dialog Box ............................................................................ 1024
Paragraph Styles for Nested Lists Dialog Box ................................................... 1025
Paste Properties Dialog Box ............................................................................ 1025
Save As Merged Stylesheet Dialog Box............................................................ 1026
Save Stylesheet As Dialog Box........................................................................ 1026
Start At Dialog Box.......................................................................................... 1027
Start of HTML Chunk Test Dialog Box............................................................... 1030
Stylesheet Properties Dialog Box ..................................................................... 1031
Table of Contents Condition Dialog Box ............................................................ 1049
Contents 11
Tables of Contents Details Dialog Box .............................................................. 1050
Table of Contents Format Dialog Box ............................................................... 1050
Table of Contents Format Details Dialog Box .................................................... 1052
Translation Defects Window ............................................................................ 1054
Translation Note Dialog Box ............................................................................ 1055
Unused Definitions Dialog Box......................................................................... 1056
Use Exported FOSI For Dialog Box .................................................................. 1056
Use Stylesheet For Dialog Box ........................................................................ 1058
Validate Page Sets Dialog Box......................................................................... 1059
XPath Predicate Dialog Box............................................................................. 1060
XPath Test Dialog Box .................................................................................... 1061
Debugging Stylesheets.......................................................................................... 1063
Performance Profiling for Arbortext Styler or FOSI Stylesheets........................... 1064
XPath Performance ........................................................................................ 1078
General Reference Information .............................................................................. 1081
Reference Information..................................................................................... 1082
Keyboard Navigation in the Arbortext Styler Window ......................................... 1082
Differences in Output Support.......................................................................... 1084
FOSI Output Limitations with XPath in Generated Text .......................................1110
Glossary .........................................................................................................1111
Glossary................................................................................................................1113
Index.................................................................................................................... 1121
12 User's Guide
About Arbortext Styler
This section describes, and uses examples to illustrate, how the key tools and
functions of Arbortext Styler help you create simple to complex stylesheets for
publishing to multiple outputs.
Prerequisite Knowledge
Arbortext Styler can be used by anyone with a basic understanding of document
structure and the principles of layout and design. The advanced features of
Arbortext Styler will be most useful to users who have previous experience
creating stylesheets in a production environment.
13
page 52 available with Arbortext Styler
Exporting Stylesheets on page 176 How to export .style stylesheets to
XSL-HTML, XSL-FO, XSL-HTML
Help, XSL-Web, and FOSI stylesheets
Defining Page Layout on page 180 How to use page sets to format
documents for print and PDF output
Working with Properties on page 222 The use of properties in a stylesheet
Property Value Precedence in Arbortext The processing order of contexts,
Styler on page 248 conditions, and property sets in
Arbortext Styler and during publish
actions
Creating and Applying Property Sets on How to create and apply property sets
page 256 in your stylesheets
Working with Elements on page 264 How to add, delete, and rename DTD
and user-defined elements
Creating Contexts on page 280 How to use contexts to change an
element's formatting based on its
location in the document structure
Creating Conditions on page 298 How to create tests that can be applied
to contexts to further refine an
element's position for formatting
purposes
Cutting, Copying, and Pasting on page How to cut, copy, and paste stylesheet
324 components and properties
Creating Headers and Footers on page How to create header and footer objects
338 and add their content via generated text
Working with Tables of Contents on How to generate and format tables of
page 352 contents
Generating Indexes on page 378 How to generate and format indexes for
print and PDF output
Styling Custom Tables on page 404 How to format elements as a custom
table so they can be edited with the
Table Editor in Arbortext Editor and
published as a table for output
Formatting Footnotes and Endnotes on How to generate and format footnotes
page 422 and endnotes
Adding Generated Text on page 464 How to add generated text to elements,
add numbers to lists, divisions, and
formal blocks, add bullets to lists items,
and create repeating titles
14 User's Guide
Cross References and Other Links on How to format cross references
page 550
Working with Modules on page 582 How to develop and work with
modularized stylesheets
Advanced Formatting Techniques on Advanced formatting techniques
page 598
Styling DITA Documents on page 620 How to style Darwin Information
Typing Architecture (DITA) documents
Non-Latin Language Support on page The extent to which Asian and Arabic
634 text, numbering and punctuation are
supported within Arbortext Styler
Publishing XML Documents as RTF How to map XML structures and export
Files on page 656 XML to RTF
Extending Stylesheets on page 701 How to edit element, property set, page
set, XSL root template, and FOSI
resource description source
Arbortext Styler’s Windows, Lists, and Description of the Source Editor,
Editors on page 765 Generated Text Editor, and the
Arbortext Styler window menus,
toolbars, and property areas
Related Documentation
You can access online help for Arbortext Styler from the Stylesheet Development
section of the PTC Arbortext Help Center.
For more information on Arbortext Editor and Arbortext Publishing Engine
products, see thePTC Arbortext Help Center. Help Center includes web-based
HTML information and is accessed from the Help ▶ Help Center menu.
If you are using Arbortext Publishing Engine, see Installation Guide for Arbortext
Publishing Engine and Configuration Guide for Arbortext Publishing Engine for
information on Arbortext Publishing Engine installation, setup, and configuration.
Refer to W3C at http://www.w3.org/Style/XSL/ for more information
on the XSL standard.
www.ptc.com/support/refdoc
You must have a Service Contract Number (SCN) before you can access the
Reference Documents site. If you do not know your SCN, see “Preparing to
contact TS” on the Processes tab of the PTC Customer Support Guide for
information about how to locate it:
www.ptc.com/support/csguide
• Help Center
Use the following link to access all PTC Help Centers:
support.ptc.com/apps/help_center/help/
Global Services
PTC Global Services delivers the highest quality, most efficient and most
comprehensive deployments of the PTC Product Development System including
Creo, Windchill, Arbortext, and PTC Mathcad. PTC’s Implementation and
Expansion solutions integrate the process consulting, technology implementation,
education and value management activities customers need to be successful.
Customers are led through Solution Design, Solution Development and Solution
Deployment phases with the continuous driving objective of maximizing value
from their investment.
16 User's Guide
Contact your PTC sales representative for more information on Global Services.
Comments
PTC welcomes your suggestions and comments on its documentation:
• To send feedback about a topic you are viewing in the PTC Arbortext Help
Center, click the send feedback icon in the top right corner of the topic.
The title of the help topic you were viewing when you clicked the icon is
automatically included with your feedback.
• You can also send an email to [email protected].
To help us more quickly address your concern, include the name of the PTC
product and its release number with your comments. If your comments are
about a specific help topic or book, include the title.
Documentation Conventions
This guide uses the following notational conventions:
• Bold text represents exact text that appears in the program's user interface.
This includes items such as button text, menu selections, and dialog box
elements. For example,
Click OK to begin the operation.
• A right arrow represents successive menu selections. For example,
Choose File ▶ Print to print the document.
• Monospaced text represents code, command names, file paths, or other
text that you would type exactly as described. For example,
At the command line, type version to display version information.
• Italicized monospaced text represents variable text that you would
type. For example,
installation-dir\custom\scripts\
• Italicized text represents a reference to other published material. For example,
If you are new to the product, refer to the Getting Started Guide for basic
interface information.
Arbortext Styler helps you create simple to complex stylesheets for publishing to
multiple outputs. This section describes its basic concepts.
19
Overview of Arbortext Styler
Arbortext Styler helps you create simple to complex stylesheets for publishing to
multiple outputs. There are two versions of Arbortext Styler:
1. The free version of Arbortext Styler is available with Arbortext Editor and
enables you to develop stylesheets to control display in Arbortext Editor. You
cannot use the free version of Arbortext Styler to develop stylesheets for any
kind of output.
2. The full version of Arbortext Styler is a separate product and enables you to
develop stylesheets for all supported output formats.
Available on all supported Windows operating systems, Arbortext Styler can be
used to create stylesheets to format all documents that use the same set of DTD or
schema elements. You can also create stylesheets for publishing to multiple output
formats, such as print, PDF, and HTML. Creating a stylesheet involves defining
rules for how elements are to be formatted in all the contexts in which they can
appear, and for all the desired outputs.
Stylesheets created with Arbortext Styler are saved with a .style extension.
Arbortext Editor and Arbortext Publishing Engine automatically recognize a
.style file as a stylesheet. If you want to use XSL or FOSI stylesheets, you can
export a .style stylesheet to these formats from within Arbortext Styler. You
can also export a stylesheet as a PTC Advanced Print Publisher (PTC APP)
template (a .3f file).
Arbortext Styler supports modularized stylesheets. This enables you to develop a
stylesheet from modular components. Multiple stylesheets can share common
modules, which adds flexibility to stylesheet design and reduces development
time. A stylesheet can reference any other stylesheet as a module.
20 User's Guide
In addition to these foundation concepts, a stylesheet uses the following object
definitions. These objects allow you to individually format or reference the
various principle parts of a document:
• Element - an object for each of the elements in the document structure, to
which contexts and conditions can be applied to increase specificity. See
Elements List on page 769 for further information.
• Property set - a named group of properties. See Property Sets List on page 771
for further information.
• Page set - a page format definition. See Page Sets List on page 772 for further
information.
• Page type - an object outlining the layout of a page See Page Types List on
page 772 for further information.
• Page region - an area on a page that can contain text or graphics. Page regions
are placed on page types. See Page Regions List on page 774 for further
information.
• Generated content - an object defining generated content for page regions, for
example, generated text or graphics. See Generated Contents List on page 774
for further information.
• Table of Contents - object defining formatting for tables of contents. See
Tables of Contents List on page 774 for further information.
• Indexes — object defining an index. See Indexes List on page 777 for further
information.
• Custom table - a table style. See Custom Tables List on page 777 for further
information.
• Cross reference - an object defining the format of cross reference links. See
Cross References List on page 778 for further information.
• Size - a size definition that can be referenced anywhere a measurement is
required. See Sizes List on page 778 for further information.
• Combined font - a single font definition object that defines mappings between
characters from the Unicode specification and the system fonts that should be
used to output them. See Combined Fonts List on page 780 for further
information.
The free version of Arbortext Styler is packaged along with Arbortext Editor. This
section gives an overview of its features and limitations.
23
Overview of Free Version of Arbortext
Styler
There are two different versions of Arbortext Styler: a free version packaged
along with Arbortext Editor and a full version that must be licensed as a separate
product. The free version of Arbortext Styler enables you to develop stylesheets to
control display in Arbortext Editor, but does not permit development for other
editors or outputs. In contrast, the full version of Arbortext Styler enables you to
develop stylesheets for all supported output formats.
Note
If you do not want the free version of Arbortext Styler to be available in
Arbortext Editor, use the Options element's allowStyler attribute in the
document type configuration file (.dcf file) to disable the free version of
Arbortext Styler. See Document Type Configuration Files in Arbortext Editor
online help for more information about document type configuration files.
The free version of Arbortext Styler has reduced functionality when compared to
the full version. The Arbortext Styler features required to develop stylesheets for
any print, PDF, or HTML outputs cannot be accessed in the free version, only the
functionality required for developing Arbortext Editor stylesheets. See Limitations
of Free Version of Arbortext Styler on page 25 for more information about the
functionality available in the free version of Arbortext Styler.
If you elect to use the free version of Arbortext Styler to edit an existing stylesheet
originally developed with the full version of Arbortext Styler, you will only be
permitted to change the Arbortext Editor properties of that stylesheet. A warning
message will advise you of this if you attempt to open a full stylesheet in
Arbortext Editor, when your installation does not include a separately licensed
version of Arbortext Styler:
You can, however, migrate a stylesheet developed in the free version of Arbortext
Styler to the full version of Arbortext Styler. See Migrating Stylesheets from the
Free Version to the Full Version of Arbortext Styler on page 25 for more
information.
24 User's Guide
Limitations of Free Version of Arbortext
Styler
The free version of Arbortext Styler has much less functionality than the full
version. Only options for developing Arbortext Editor stylesheets are available.
You cannot access the Arbortext Styler features used to develop stylesheets for
any print, PDF, or HTML outputs.
27
Converting a FOSI to a Stylesheet
Arbortext Styler provides a conversion utility that partially converts a FOSI to a
stylesheet (.style file). Before converting a FOSI, refer to the following
limitations of the conversion program.
As a general rule, Arbortext Styler's FOSI conversion generates two contexts for
each FOSI e-i-c (note that this does not apply for titles, or contexts that start with
a “*” wildcard - see limitations below). Arbortext Styler will generate one context
that matches the FOSI e-i-c exactly, e.g. blockquote in para, and one that
contains an additional implicit wildcard, e.g. blockquote anywhere in
para. This ensures that Arbortext Styler matches the FOSI e-i-c matching
process - a built in rule states that, once FOSI has searched unsuccessfully for a
matching e-i-c using context as specified, it prepends a “*” wildcard to all
contexts and starts searching again.
Note
In most cases it is the job of the stylesheet developer to decide which of the
two (almost identical) contexts they wish to keep after the conversion from
FOSI, and delete the other. In most cases, it is recommended that they delete
the “anywhere in” context and keep the “in” context.
28 User's Guide
• Keep floats out (keeps:floatsout)
• L-page column spans (span:pageflow)
• Run-in titles
• Security description (secdesc)
• Sentence spacing (sentxsp)
• Word spacing (wordsp)
• Use values (fillval)
• Test values (specval) that use #FOSI, system-var (other than editor-
only, print-only, html-only), system-func or the use of a
textid in the attval characteristic
• Title element contexts that use initial wildcards, i.e. those whose context
attribute value begins with a “*”., for example <e-i-c gi=”title”
context=”*chapter”>. These need to be manually fixed once the FOSI
has been converted to remove the initial wildcards. The steps to carry out this
correction are:
1. Select the element context in the Elements list
2. Choose the Edit ▶ Edit Context menu option
3. In the Edit Context dialog box, select the node that contains the “*”
character and delete it
The numbering of titles will be adversely affected if the wildcards are not
removed in this way.
The following generated text FOSI features are not converted during the
conversion process, but Arbortext Styler provides corresponding capabilities.
Once you have converted your FOSI, you can duplicate the formatting of these
features using the Generated text category in Arbortext Styler:
• Character fills (charfill)
• Counters, reset, and enumerate (enumerat)
• Generated graphics (putgraph)
• Rules (ruling)
• Saved text (savetext)
• Use text (usetext)
• listitem gentext is converted to bullets, and indentation may need to be
modified
30 User's Guide
○ idAttribute - the name of the attribute that is treated as an ID attribute
See Document Type Configuration files in Arbortext Editor online help for
further information about document type configuration files.
• Their case sensitivity setting is the same
If any of the conditions are not met, you will see an error message that advises
you that the stylesheets are incompatible for sharing, followed by a confirmation
of the condition in which there is an anomaly. Make the necessary changes in the
.dcf file for the document type that is causing the error.
The ability to open the same .style stylesheet for multiple documents also
applies to DITA documents. You can use the same stylesheet to open both the
ditamap and its constituent topics, open multiple topics from the same ditamap,
preview and publish the ditamap, or edit and publish the Resolved Document for
Editing or the Resolved Document for Styling.
If you are working with FOSI stylesheets, you may also use the same stylesheet
for multiple documents of different document types. Note , though, that this works
in all instances, without having to meet the conditions outlined above for .style
files.
Arbortext Styler opens a new stylesheet that's pre-populated with all the
elements of your document type, a default set of property sets, page sets, and
other definitions, plus all the Styler Formatting Elements.
4. Choose File ▶ Save As to save your stylesheet to the required directory
location, and with your required stylesheet name.
Language Settings
Documents to be published via your Arbortext Styler stylesheet may contain
language definitions. If you want these language definitions to drive styling or
formatting such as hyphenation or translation, you must set up your stylesheet to
recognize the definitions. The Language tab on page 1040 of the Stylesheet
Properties dialog box contains options by which you can make these settings. You
can access the tab from the Stylesheet Properties dialog box on page 1031, or by
choosing the Tools ▶ Language Properties menu option.
You can configure the following language settings:
• Default document language: confirming the language of a document will
ensure that the correct language-specific formatting or information is provided
when your document is published. The document language value will be
analyzed when Arbortext Styler is processing the following:
○ Hyphenation
32 User's Guide
The default document language information provided here will give
Arbortext Styler the information it needs to set the required hyphenation
language when:
1. The Hyphenation field in the Breaks category on page 804 is set to a
value of (Use document language), and the document language is not
specified in the document scope.
2. The Hyphenation field is set to <Derive> and there is no value to
inherit.
○ Generated text translation
Arbortext Styler will use the document language specification methods
defined here to assess the document language that is in effect when it
encounters a piece of generated text that is set to be translated. It can then
output the correct language version of that generated text. This applies
when the document language is not specified in the document scope.
• Mappings for language codes that could be encountered in documents
Documents to be formatted by the stylesheet could contain generic or non-
standard language codes. Here you can provide more specific information
about the actual language Arbortext Styler should use when it encounters such
codes. You can also provides alternatives to the code that is encountered, for
example swapping US English (en-US) for UK English (en-GB).
For example, a stylesheet may have its hyphenation Language field in the
Breaks category set to (Use Document Language), and a document formatted
by the stylesheet has de as the code for its document language. This specifies
German, but does not make it clear if this should be Reformed or Traditional
German. To apply the correct German hyphenation rules, this distinction must
be made. A mapping matching de to de-1996 (German, Reformed) in the
Document Language Mapping field will ensure that reformed rules are used in
hyphenation.
Similarly, if a document contains a non-standard language code, a mapping
here could provide the additional information to identify the correct language.
For example, if the document’s language code is ENG, a mapping here could
align it with the en-US (United States) language.
34 User's Guide
The following rules define how Arbortext Styler determines the document
language:
1. A document language is derived from the document by following the
Document language specification parameters defined in the Language tab of
the Stylesheet Properties dialog box.
2. If no document language can be extracted from the document, the value of the
Default document language field is set as the document language.
3. If the extracted document language is defined with a Document language
mapping entry, the mapped Language to use (alias) value becomes the
document language. Otherwise the extracted document language is set as the
document language.
The following rules define the precedence used to determine a match between the
document language and a target. A target is either a language with an associated
hyphenation rule or a generated text language. Note that language matching is
case insensitive.
1. If the document language exactly matches the target language, for example if
both have a value of en-GB, the target is used.
2. If the first part of the document language (before a hyphen) exactly matches a
target language, it is considered a match. The largest portion of the target
language to match takes precedence. For example, for a document language of
en-US-nor, Arbortext Styler will test en-US-nor, en-US, and en in that order to
find a match.
3. If no match is found after carrying out the two set of tests above, next steps
will differ between generated text and hyphenation targets:
• For generated text targets, the Source Language defined in the Generated
Text field is used. You may see a warning message if this happens.
• For hyphenation targets, hyphenation is deactivated. You will not be
presented with a warning in this case as this may be intentional. Some
languages do not include hyphenation rules and should not be hyphenated.
You may see a warning if the target is invalid.
Styles Overview
You can use Arbortext Styler to create a simple stylesheet by mapping the
elements in the current document to a set of predefined styles. A style applies a set
of initial properties (such as font characteristics, spacing, and indentation) and in
some cases a set of appropriate contexts.
For example, the following is a list of the initial properties and contexts added to a
set of elements when specific styles are applied. In this case, the chapter
element is mapped to the Division style, level 1, the section element is mapped
to the Division style, level 2, and the title element is mapped to Title.
Arbortext Styler creates three contexts for the title element:
• title in chapter
• title in section
• title everywhere else
Arbortext Styler also applies the following properties to these contexts:
• sanserif, bold, and blue text effects
○ 20pt in chapter
○ 18pt in section
○ 12pt everywhere else
• a division number
• spacing before and after
• a keep with next to prevent title from displaying as the last element on a
page
When you create a new stylesheet, Arbortext Styler applies default styles to
certain elements based on settings in the document type's .dcf file (specifically,
link, link target, document, title, graphic, and paragraph). Changes made to these
elements in Arbortext Styler will override the settings for these elements in the
.dcf file.
Refer to Applying styles on page 37 for more information on styles.
36 User's Guide
easy way to identify them as you edit your stylesheet. Once you have elected to
highlight unstyled elements in this way, the tags representing these elements are
displayed with a pink background in any document associated with the stylesheet:
Note
If you choose this setting, unstyled elements will also appear highlighted
in previews executed from Arbortext Styler.
Applying Styles
The first step in creating a stylesheet is to apply styles to those elements whose
styles were not automatically determined by the .dcf file.
Note
You must apply a style to an element before you can add contexts or
conditions.
Predefined Styles
38 User's Guide
Predefined Styles (continued)
Style Description Requires
additional
details?
Division Hierarchically nested elements that contain Yes - see
titles, such as chapters or sections. Arbortext Division Details
Styler supports up to nine division levels. Dialog Box on
page 941
Note
Refer to Assigning division levels in your
stylesheet on page 43 for more information
on the Division style.
Document Identifies the top-level element in a document. No
Assign the Document style to an element
when the element will always be used as the
top level element in documents.
If the element sometimes is the top level
element, and sometimes is not, then it is
preferable not to assign the Document style
but instead to define a context to be used when
the element does occur at the top level. Assign
the At top level of document option to the
context. See Context Dialog Box on page 929
for further information.
Caution
It is important that the top level element in
the document instance is either given the
Document style or has a context where At
top level of document is checked. If the
outermost element of a document instance
is styled in this way, publishing may fail.
Footnote An element that is associated with a footnote.
This element may contain the text for the
footnote or may be a reference to another
element that contains the footnote text.
Formal Block An element that may contain a title or a No
caption, where those titles can be cross-
referenced, or appear in a table of contents.
These elements differ from divisions because
they can be used at different levels in the
document hierarchy. Formal Block elements
are commonly used to wrap figures or tables
40 User's Guide
Predefined Styles (continued)
Style Description Requires
additional
details?
Initially, Arbortext Styler applies this style if
the element is configured as a link in the
.dcf file. Changes made to a Link element in
Arbortext Styler override the settings in the
.dcf file.
Note
You cannot assign this style to a User
Formatting Element.
Link Target An element that serves as the destination of a Yes - see Link
link. An element must have an id attribute if Target Details
you want to format it as Link Target. If the Dialog Box on
selected element does not have an id attribute, page 1006
the Link Target option will be unavailable.
Initially, Arbortext Styler applies this style if
the element is configured as a link target in the
.dcf file. Changes made to a Link Target
element in Arbortext Styler override the
settings in the .dcf file.
List - Bulleted An element that wraps a set of list items to No
form a bulleted list. Nested bulleted list
elements are formatted appropriately to
differentiate various levels.
List - An element that wraps a set of list items to No
Numbered form a numbered or ordered list. Nested
numbered list elements are formatted
appropriately to differentiate various levels.
List Item An element that is included in numbered or No
bulleted lists. This style is also applied to
elements that wrap term-definition pairs in
definition lists.
No Style An element that does not affect formatting. No
Paragraph A block element that can contain text. No
Initially, Arbortext Styler applies this style if
the element is configured as a paragraph in the
.dcf file. Changes made to a Paragraph
element in Arbortext Styler override the
settings in the .dcf file.
42 User's Guide
Starting the Style Helper
The Style Helper is an alternative mechanism for attaching a style to an element. It
guides you through dialog boxes that help narrow your choices for selecting a
style.
To access the Style Helper:
1. Open Arbortext Editor, and choose File ▶ Open to open the document whose
stylesheet you want to modify.
2. Choose Styler ▶ Edit Stylesheet to open the stylesheet associated with the
current document, or Styler ▶ Open Stylesheet to open any stylesheet, not
necessarily that currently associated with the document.
3. Select any unstyled element and select the Edit ▶ Style Helper menu option.
You will be presented with the Style Helper wizard, a series of dialog boxes
that allow you to make choices as to the kind of styling that should be applied
to your element.
Validating Stylesheets
Once you have created your stylesheet, you may use Arbortext Styler's Validate
Stylesheet feature to confirm that any of the objects in the stylesheet contain
errors. Choose the Tools ▶ Validate Stylesheet menu option to invoke the
verification process.
If your stylesheet contains no errors, you will be presented with a message in the
status bar in the bottom left corner of the Arbortext Styler window:
[A23592] No stylesheet errors
If your stylesheet contains errors, for example if a custom table is invalid or a
condition relationship is incorrect, you will see the Styler Log window with details
of the error.
44 User's Guide
Some errors in your stylesheet, for example title contexts that are not set correctly
to be used as PDF bookmarks, may not generate error messages when the
stylesheet is validated. If they are displayed as part of the Arbortext Styler UI they
will be shown in the designated Arbortext Styler error color for your environment.
You may set the error color via the stylererrorcolor command - as a
default it is set to red.
A validate stylesheet action is also invoked automatically every time you request a
preview from the Arbortext Styler UI.
If you add the module, Arbortext Styler will automatically regenerate the IDs
in the module to remove the duplicates.
Outstanding translations are those that have been exported to an XLIFF file
(and possibly already been translated) but have not yet been imported into the
stylesheet. As mentioned in the dialog, these should be imported into the
module before the IDs are regenerated, to ensure completeness. Import any
outstanding translations then try again to assign the module to the stylesheet.
Unique IDs will then be applied to the translation units in the module, and
they will exist with their own translations.
Saving Stylesheets
When you choose File ▶ Save in Arbortext Styler, Arbortext Editor saves the
stylesheet with a .style extension.
To save a stylesheet:
• Choose File ▶ Save from the Arbortext Styler window. If the current stylesheet
has already been saved, changes are automatically saved.
• If the stylesheet has never been saved, the Save Stylesheet As dialog box
opens.
Specify the path and file name for the stylesheet in the File Name field, either
manually or using the Browse facility.
Click Use for to save your stylesheet as the default stylesheet for specific
documents. You will see the Use Stylesheet for dialog box, which enables you
to specify the type of document with which the stylesheet should always be
used as default.
• If the current stylesheet has already been saved, and you wish to save it with
another name or to a different location, choose File ▶ Save As.
Specify the desired path and file name in the Save Stylesheet As dialog box.
46 User's Guide
startup can be avoided by saving the .style file in both .style and .genfos
formats - Arbortext Editor will then no longer need to auto-generate the
.genfos since that file already exists. This will ensure that the time taken to
open the original document is kept to a minimum.
To support this process correctly, the .genfos file must have the following
characteristics:
• The same base name as the source .style file
• The same directory location as the source .style file
• A later saved date/time than the original source .style file
The procedure detailed here must be carried out every time you modify the
source .style file.
If you attempt to open a document whose stylesheet is younger than its
associated .genfos file, i.e. if you have made changes to the stylesheet
without subsequently re-exporting the .genfos file, you will see the
following error message:
48 User's Guide
5. Follow the prompts to update the stylesheet.
6. Select the Close button to close the Select Stylesheets dialog box.
7. Make sure you save the stylesheet to make the updates permanent. After
you save the updated .style file, it cannot be used by previous releases
of PTC Arbortext software. The automatic updating process saves a
backup of the original stylesheet, that you can access if necessary.
8. Perform this operation for all stylesheets you are migrating to the upgraded
release. Be sure to check all custom directories your site uses for stylesheet
.style files.
If your stylesheet contains edited source for elements that was created in an earlier
release of Arbortext Styler, or you suspect that it may, it is useful to review the
stylesheet with this in mind when you wish to update it. You may need to recreate
existing source code edits to take into account any new features introduced in the
release.
Refer to Editing Stylesheet Source Overview on page 703 for details about editing
the source of an element context.
50 User's Guide
4
Document Preview and Publishing
Overview of Preview and Publishing ...........................................................................52
Preview Options in Arbortext Styler.............................................................................53
PTC Advanced Print Publisher in Arbortext Styler ........................................................55
Print Features Available with PTC Advanced Print Publisher.........................................61
PDF Configuration File for the PTC APP Engine ..........................................................87
PTC APP PDF Configuration File (.appcf) ...................................................................96
Generating Accessible PDF Output .......................................................................... 138
Chunking Data in HTML Output ................................................................................ 148
Generating XHTML Output....................................................................................... 153
Generating HTML5 Output ....................................................................................... 153
Publishing EPUB Output .......................................................................................... 153
Generating Accessible HTML Output ........................................................................ 155
Managing CSS Files in HTML Output........................................................................ 159
Styling HTML Files from Different Document Types.................................................... 165
Passing Metadata to PDF Output.............................................................................. 169
Alternate Text Support for Graphics .......................................................................... 172
51
Overview of Preview and Publishing
The majority of preview and publishing actions for your document are instigated
via Arbortext Editor or Arbortext Publishing Engine:
• Print preview — see Previewing a document in Arbortext Editor help for
further information
• Print — see Printing in Arbortext Editor help for further information
• Publish the final document in the required format:
○ EPUB — see Publishing a document for EPUB in Arbortext Editor help
for further information
○ HTML File — see Publishing a document as an HTML file in Arbortext
Editor help for further information
○ HTML Help — see Publishing a document for HTML Help in Arbortext
Editor help for further information
○ PDF — see Publishing a document as a PDF File in Arbortext Editor help
for further information
○ Web — see Publishing a document for the Web in Arbortext Editor help
for further information
○ using XSL — see Publishing a document using XSL in Arbortext Editor
help for further information
Arbortext Styler supports the publishing process by providing the following
options:
• Creation of a stylesheet that supports each format to which the document may
be published:
○ Arbortext Editor
○ HTML — HTML File, EPUB, HTML Help, and Web
You have options to generate HTML, XHTML, HTML5, or XHTML5
formats.
○ Print/PDF
○ RTF
Once created, the Arbortext Styler stylesheet can be exported from Arbortext
Styler to FOSI or XSL formats, or saved as a PTC Advanced Print Publisher
(PTC APP) template, a .3f file. The exported stylesheet/template can then be
associated with a document and used as the default stylesheet for publish
actions in Arbortext Editor. .3f files can be used in standalone PTC APP
applications to form the basis of new documents.
52 User's Guide
Note
XSL stylesheets exported from Arbortext Styler do not conform strictly to
the XSL specification. They are designed be supported in other PTC
applications such as Arbortext Publishing Engine. PTC cannot guarantee
that they will work in other XSL-FO applications and do not support this
use case.
Note
The FOSI and XSL-FO print engines are on sustained support and do not
receive enhancements or maintenance fixes. PTC APP is the recommended
engine for print/PDF output.
54 User's Guide
PTC Advanced Print Publisher in
Arbortext Styler
The print engine functionality of PTC Advanced Print Publisher (PTC APP) is
available when working in a Arbortext Editor environment that includes Arbortext
Styler or Arbortext Publishing Engine. PTC APP is the default print engine for
these environments. You can preview and publish documents based on a Arbortext
Styler stylesheet for print or PDF with the PTC APP print engine. The inclusion of
PTC APP extends the functionality available from a Arbortext Styler stylesheet.
See Benefits of Publishing with PTC APP on page 56 for further information.
The PTC APP print engine and associated support files are built into the install
tree when you perform a full installation of Arbortext Editor with Arbortext Styler
or Arbortext Publishing Engine. Once you have installed Arbortext Styler or
Arbortext Publishing Engine you will have the option to set your stylesheet to use
the PTC APP print engine for its preview and publishing actions. See Setting PTC
APP as the Default Print Engine for a Stylesheet on page 58 for further
information on how to do this.
Note
Stylesheets created in earlier versions of Arbortext Styler will retain their
existing print engine setting when updated. New and most distributed
stylesheets use the PTC APP engine as a default.
Arbortext Editor and Arbortext Styler preview and publishing options will reflect
the ability to provide the required output with the PTC APP print engine:
• Arbortext Editor
○ Print preview - see Previewing a document in Arbortext Editor help for
more information
○ Print - see Printing in Arbortext Editor help for more information
○ Publish PDF - see Publishing a document as a PDF File in Arbortext
Editor help for more information
• Arbortext Styler
○ Preview of print or PDF output - see Preview Options in Arbortext Styler
on page 53
With each of these processes, any PTC APP template files (.3f files) that exist in
the document or doctype directories will be listed alongside .style files in the
list of available stylesheets for the process. The option to select .3f files is
possible in the stylesheet file chooser dialog boxes presented for these processes,
where applicable. If you elect to preview your document for print with the PTC
56 User's Guide
You can associate an PTC APP template (.3f file) with your Arbortext Styler
stylesheet. If you select this option you can extend the stylesheet with the code
from the PTC APP template. Your stylesheet can then perform PTC APP tasks
not available from the Arbortext Styler interface or edited source, such as
scripting, style code, and control stream-driven functionality, e.g. anchors and
colors. If you associate a template with your stylesheet, the template code will
override the stylesheet code if definitions of the same object exist in both files.
The PTC APP tag description contained in the template code will therefore
take precedence over that contained in the stylesheet, such as that generated by
stylesheet conversion. For example, if your PTC APP template contains an
autoexec script this will be used in preference to any default scripting
provided by the stylesheet.
See Associating an PTC APP Template With a Stylesheet on page 59.
• Exporting the stylesheet as an PTC APP template
If you have created a Arbortext Styler stylesheet that contains PTC APP-
specific information, you can export that stylesheet from Arbortext Styler as
an PTC APP template. Once you have created the template in this way you
can use the template in a standalone PTC Advanced Print Publisher
environment, without the need for Arbortext Styler to be running to interpret
the stylesheet/template. You may also then use PTC Advanced Print Publisher
to touch up, extend, or update the template.
Note
The template can only be opened successfully in the same PTC Advanced
Print Publisher release in which the template was created - you will see an
error message if you try to open the document in an earlier release.
Note
Using this option sets the default print engine preference for actions performed
using this stylesheet. Print engine settings made elsewhere in your
environment may mean that a different print engine is actually used for the
action.
58 User's Guide
• Page type
• Page region
To access the PTC APP source of an object in a Arbortext Styler stylesheet for
edit::
1. Select the object in the relevant list view.
2. Select the Edit ▶ Edit objectname Source ▶ PTC APP menu option.
The source of that object opens.
The menu option is only available when your stylesheet is set to use PTC APP
as the print/PDF engine.
3. Make the necessary changes to the object, using JavaScript code that
references objects from PTC Advanced Print Publisher’s Formatting Object
Model.
Refer to the Stylesheet Developer’s Guide to APP Code for information on
making stylesheet edits for PTC APP, plus examples.
Refer to the Formatting Object Model Reference for details of the objects
described by the Formatting Object Model.
See Overview of Autogenerated APP Source on page 714 for further information
on the source generated for objects for PTC APP.
Note
Selecting a .3f file in the file chooser dialog box will not open it. It will
associate the template with the current stylesheet to extend the stylesheet's
capability.
5. Alternatively, you can type the path to a template in the Optional APP template
to associate with stylesheet field.
If you enter a full path to a template here, and it cannot be found, no error will
be generated.
Best Practice
It is recommended that you place the .3f file in the same directory as the
stylesheet and specify only its file name, with no path.
6. Click OK to accept the selection. The Optional PTC APP template to associate
with stylesheet field contains the full path and filename information for the
selected template file, which will be stored in the stylesheet. Once the change
to the stylesheet has been saved, this setting will persist for the stylesheet in
this and succeeding Arbortext Editor with Styler sessions, until removed or
edited.
60 User's Guide
PTC Advanced Print Publisher unless the stream exists in the template, so it is
recommended that the frame object itself is edited to include
text "editorDom0",0,0,0,0,0
• The stylesheet compilation process creates numerous tags in the PTC APP
document prior to formatting the content. An existing tag in the template with
the same name as one that would get created during the compilation process
will be used in preference.
• Any autoexec script present in the root namespace will not be run.
• Some (if not all) document preferences set in the template will persist in the
created document unless specifically set by the stylesheet compilation process.
This includes frame guides, which will appear in the PTC APP Preview
window if they have been activated.
62 User's Guide
Associat-
ed PTC Native PTC
Arbortext Source APP APP
Feature Styler UI code edit template template
Region placement • •
Region properties • •
Region content • •
Typography on page
78
Hyphenation • •
Spacing •
Kerning •
Ligatures •
Character effects •
Blocks •
Drop capitals and • •
words
Paragraph reposition •
Tab stops •
Justification •
Text decoration • •
Testing on page 84
Format result testing •
Content as trigger for •
style change
Direct use of attribute •
values
Content Streams on
page 86
Multiple main content •
streams
External content •
streams
Arbortext Styler UI
Can be selected/configured in the Arbortext Styler UI, when working with a
.style stylesheet
You may need to select the PTC APP print engine to fully support the feature.
You will see a note in the UI to indicate if this is required.
Output
Multiple files from one publishing process
PTC Advanced Print Publisher is capable of generating multiple output files from
a single composition process. The following options are available:
• PDF - from Arbortext Styler UI
• PostScript - from Arbortext Styler UI
• PTC APP application (.3d) file for touchup - from Arbortext Styler and
Arbortext Publishing Engine UIs
• Graphical output formats - requires custom code in an associated template
PTC Advanced Print Publisher‘s super print (sprint) function allows multiple
output formats to be generated in a single pass. A customized print configuration
file will provide a simple means to access this capability.
64 User's Guide
Options include preview type (TIFF, EPSI) and resolution, font embedding,
color mode
• TIFF
Options include DPI, color mode (mono, RGB, or CMYK), anti-aliasing,
compression (LZW)
• GIF
• PNG
• SVG
Use custom code in an PTC APP template associated with your .style
stylesheet to generate these output types.
Post-Publishing Touchup
.3d files created during publishing can be opened on a PTC Advanced Print
Publisher Desktop license for touch up editing. You must use native PTC APP
templates configured to allow post-publishing changes.
You can carry out these types of touchup task in an PTC APP template:
• Move floating items and reflow pages
• Make text corrections to the content
• Introduce processing instructions or custom markup to change any formatting
property
• Introduce or change page, column, and line breaks. Note: this may require a
document reformat if the page ending has changed
Note the following limitations and considerations:
• The system setup (version, available libraries, fonts, configuration file etc.)
must be identical between the server and desktop environments
• PTC Advanced Print Publisher currently has no DOM editing tool. Making
content changes for documents composed using Arbortext Styler stylesheets
will be cumbersome, but not impossible
The DOM editing tool is expected in a later release.
Language Formatting
Japanese
PTC Advanced Print Publisher addresses a number of features specific to Japanese
typography:
• Ruby
Ruby is the display of a set of characters above another set. It is often used to
provide pronunciation or descriptive information about the main content. PTC
Advanced Print Publisher provides the ability to format Ruby content with
different properties, such as alignment
An PTC APP source code edit is required to apply Ruby content.
• Warichu (annotation)
Annotation is the method of outputting a number of lines of text within a
single line. PTC Advanced Print Publisher supports up to five lines of text.
An PTC APP source code edit is required to apply Warichu text.
• Yakumono
Yakumono is the method by which punctuation characters are resized in order
for them to be displayed correctly. It is possible to remove an amount of a
character's display box from the left (for opening punctuation), from the right
(for closing punctuation) or from either side (for items such as colons).
Behavior differs depending on whether the character is appearing at the start
of a line (for opening punctuation), the end of a line (for closing punctuation)
66 User's Guide
or in the middle of a line (for all types of punctuation). These properties are
applied when trying to justify the line of text.
PTC APP source code edits are necessary to change default Yakumono
settings.
Thai
Thai formatting support is provided with PTC Advanced Print Publisher,
including line breaking and character building capabilities. No additional code is
required. Select the PTC APP print engine and any Thai content in your document
will be formatted correctly.
Hanging punctuation
In PTC Advanced Print Publisher hanging punctuation is provided using a custom
kerning table. The kerning table tells PTC Advanced Print Publisher how to
handle a list of punctuation characters when they appear at the end or start of a
line of text.
Basic hanging punctuation support is provided through the Arbortext Styler user
interface. The default kerning table instructs PTC Advanced Print Publisher to
hang the following characters into the right margin when the hanging punctuation
option is selected:
• Western full stop / period (.)
• Western comma (,)
• Ideographic full stop / period (。)
• Ideographic comma (、)
An alternative kerning table is provided as part of the PTC APP integration. This
provides support for many more punctuation characters. To access this table, use a
very simple PTC APP source code edit in the style you wish to enhance. Look for
this line:
style.kerningTable = '_app:HangingPunctuationSimple';
Change the line to:
style.kerningTable = '_app:HangingPunctuation';
The enhanced kerning table provides support for:
• End of line
○ Western punctuation
◆ .
◆ ,
◆ !
◆ ?
68 User's Guide
◆ “
◆ „
◆ ‟
◆ ‹
◆ «
◆ 〈
◆ 《
○ CJK punctuation:
◆ 「
◆ 『
◆ 【
◆ 〔
◆ 〖
◆ 〘
◆ 〚
◆ 〝
If you wish to create your own kerning table for use in Arbortext Styler or
Arbortext Publishing Engine, use the PTC APP tags inside the _app namespace
in the _app.3ns file within the Arbortext-path/APP/libs directory as a
basis.
Vertical formatting
• Vertical formatting
• Embedded western text
You will need to configure vertical formatting in a native PTC APP template.
Right-to-left languages
• Hebrew
• Arabic
• Bidirectional
Right to left formatting is provided through the Arbortext Styler UI. You will need
to select the PTC APP print engine for your publishing action to use the feature.
Color spaces
PTC Advanced Print Publisher provides support for a number of color spaces that
are more specific to print. By default, PTC Advanced Print Publisher uses the
CMYK color space to define colors for all objects in a template, but it is also
possible to use HSB and RGB values.
PTC Advanced Print Publisher also provides support for a number of color books
from the CSS specification and Pantone. These color books provide predefined
definitions of colors that should be displayed or printed the same on any output
device. The Pantone color books supported by PTC Advanced Print Publisher are:
• Pantone Matching System (4/C process)
• Pantone Matching System (coated)
• Pantone Matching System (uncoated)
• Pantone Process
• Pantone Process coated Euro
• Pantone Solid to Process coated Euro
Colors from the Pantone and CSS color books are used by name and should be
used as a named color.
PTC Advanced Print Publisher color spaces will require PTC APP source code
edits in your .style stylesheet, or native PTC APP templates.
Gradients
PTC Advanced Print Publisher provides support for graduated colors. They can be
created and used in the same way any other color.
PTC Advanced Print Publisher's graduated colors are built from a number of base
colors and stops. PTC Advanced Print Publisher creates a blend from one color to
the next. A gradient can have several stops, each with their own color. The stops
70 User's Guide
are positioned along a linear range. You may also control the resolution of the
gradient and the way the gradient should expand or tile within the area that uses it.
The gradient can also be rotated.
To use a gradient, create it as a named color in an PTC APP template associated
with your .style stylesheet. Use PTC APP source code edits to call the named
color, referring to it by name, wherever you wish to use that color.
Rasters as colors
You might wish to use a raster as a color if you have large text that should be
printed using an image. For example, if you would like text to appear as though
created from an image of clouds, you can use the cloud image as a color and apply
that to the text.
It is possible to specify that a color is derived from a raster that is loaded, or
linked, to a template. As with gradients, raster colors can be used wherever a color
can be used. A raster color also has controls for its appearance and alignment
within the area that uses it.
Create a raster color as a named color in an PTC APP template associated with
your .style stylesheet. Use PTC APP source code edits to call the color,
referring to it by name, wherever you wish to use that color.
Color mode
When creating PDF in PTC Advanced Print Publisher, it is possible to specify the
color mode. You can select from:
• Color
Uses the color as defined in the template or attached images
• Monochrome
Produces a monochrome PDF with no color
• CMYK
Transforms all colors to the CMYK color space
Rules
Rounded corners
PTC Advanced Print Publisher rules around objects can have rounded corners.
You specify the corners that are to be rounded and the radius of the rounding.
Positive and negative rounding values can be used to give some interesting results.
PTC APP source code edits will give access to rounded corners on blocks and
frames.
Refer to Stylesheet Developer’s Guide to APP Code for samples of how to draw
rules with rounded corners.
Rule patterns
PTC Advanced Print Publisher's rule functionality allows you to create your own
rule patterns. You can combine pre-existing pattern components to create your
own, and even create your own pattern components (marks) if a highly
customized rule pattern is required.
The rule patterns and their components can use any PTC Advanced Print
Publisher color (see above).
PTC Advanced Print Publisher will try to justify the pattern over the area it is
being drawn. It does this by allocating a stretch factor to the pattern components.
For dot and dash type patterns, the space between marks can be stretched.
In addition to the simple pattern, a rule can have a start and end pattern which
includes arrowheads and other terminal marks. As with pattern components,
custom versions of these can be made.
PTC APP source code edits will allow you to set the rule pattern on underline,
strikethrough, blocks, and page regions.
Refer to Stylesheet Developer’s Guide to APP Code for samples of how to draw
rules based on patterned line styles.
72 User's Guide
Multiple rules
Each one of these objects can have up to 20 rules applied with PTC Advanced
Print Publisher:
• Paragraphs
• Blocks
• Block columns
• Tables
• Table cells
• Frames (regions)
It is possible to assign a color of none to rules in order to provide an offset. Rules
with a positive value push inwards on the object, negative values push outwards.
PTC APP source code edits allow you to set additional rules on blocks and
regions.
Refer to Stylesheet Developer’s Guide to APP Code for samples of how to draw
multiple rules.
Note that rules on tables are only accessible by customizing the PTC APP tables
library provided with Arbortext Styler.
Region Control
Number of regions
Arbortext Styler provides access to more page regions than were previously
available. You can design page layouts that feature more than the standard three
page regions (main, header and footer).
PTC Advanced Print Publisher provides the ability to have up to 400 regions
applied to the same page.
The Arbortext Styler UI does not permit the use of multiple regions on the same
page to contain the main content flow. This could be used when creating title and
cover pages, or when creating parts catalogs where one region contains tabular
content and the other regions hold descriptive information. To create additional
regions on a page layout to contain the main content, use PTC APP source code
edits for the page type object that defines the page layout. Add a new region that
references the editorDom0 content stream.
Region placement
Arbortext Styler provides access to a number of positioning methods for regions.
Regions can be placed relative to margins or page edges, or with absolute
coordinates.
PTC Advanced Print Publisher inherently uses absolute positions. Relative values
can be configured through the Arbortext Styler UI.
The following complex region placement requirements can also be met with PTC
Advanced Print Publisher. It is advisable to engage GSO or an PTC APP partner
to achieve them:
• Inline region creation
It is sometimes necessary to extract some content from the main text and place
it into a separate page region. PTC Advanced Print Publisher allows users to
create a frame (page region) dynamically during formatting and place it on the
current page at the position required. It is possible to place the frame relative
to the position of the markup item in the document that triggers its creation.
74 User's Guide
To create inline regions, use custom FOM code to create a frame and place it.
The frame can be populated with any information and carry any of PTC
Advanced Print Publisher's frame properties. Content can be extracted from
the main content stream using XPath or PTC Advanced Print Publisher's show
strings. External files (text or graphics) can be loaded into the frame.
Refer to Stylesheet Developer’s Guide to APP Code for a simple example of
how to create a frame, position it at the same vertical position in the document
at which an element should be, and populate it with content.
• Anchored regions / floats
Anchored regions are PTC Advanced Print Publisher frames placed on a page
according to conditions and rules. They typically hold text and/or graphics. An
example of an anchored region is a figure in a book with a caption that is
placed near its reference in the text.
PTC Advanced Print Publisher allows the creation of complex placement
rules, such as place in my current column or place in column X on the next
page but not before frame Y.
• Regions that span pages
With PTC Advanced Print Publisher you can create regions that span facing
pages, in order to place very wide content. This is achieved by tying pages
together. The tied pages are formatted as one and the frame placed across the
two pages. It is possible to create rules that govern how a table should be
formatted when it spans the two pages, including how to avoid the gutters
between the two pages.
Region properties
A number of PTC Advanced Print Publisher's advanced page region properties are
available through the Arbortext Styler UI:
• Avoid
When a region overlaps another, the content of the lower region wraps around
the boundary of the upper region.
• Page clipping
If a page region should extend beyond a page boundary, the content can be
clipped to the page boundary. Any content that overlaps the edge of the page
will not be output to the printed file.
Deactivating page clipping allows items to run off the page. This enables the
creation of bleed tabs, which rely on blocks of color extending off a page
when printed.
• Rules
76 User's Guide
this, however, as it will affect the content being formatted at the column
(or page) break
○ Paragraph start references
Executed when PTC Advanced Print Publisher starts a new paragraph.
Paragraph start references occur before any paragraph styling.
○ Line start references
Executed at the start of every line. They occur before paragraph start
references. Line start references have been used as part of a line-
numbering implementation as it is possible to use the reference to store
both line number and vertical position in a variable or stream. The
information is then output later.
• Filler
If content runs short in a frame, filler references can be used to add content to
fill the frame up. That content could be a graphic, rules, text, or leaders.
• Cutting guides
Each frame can carry its own cutting guides. This is useful if you are
producing a layout that will be cut into smaller parts (for example, business
cards) or if you wish to add lots of extra content off the edge of the main page
area. Apply cutting guides to regions to achieve this, rather than outputting
them for the whole page.
Region content
When configured in the Arbortext Styler UI, regions are permitted to hold three
types of content:
• Main content (one region per page)
• Generated content (for example headers and footers
• Graphical content (extracted from the main text using an XPath expression, or
referencing an external file)
If other content is required, you can make PTC APP source code edits in the .style
stylesheet to point a page region to the content you wish to apply to it.
PTC Advanced Print Publisher can accept non-XML or SGML text content so it is
possible to pull in any external files, regardless of their content type.
Style can be applied to the content as long as it contains &entities; or
<elements>. To apply style in this way, create a tag in an PTC APP template
and associate the template with your .style stylesheet. PTC APP will look for
an element or entity with the same name in the stylesheet.
78 User's Guide
○ At the end of a paragraph
○ At the end of a column
○ At the end of a page
As with FOSI, exception dictionaries can be used. These allow you to specify
custom hyphenation points in words. Two dictionaries can be applied with PTC
Advanced Print Publisher.
You can also define the hyphenation character to be used, on a paragraph or an
inline basis. The normal hyphen character (-) can be replaced with any other
character, or set to nothing. This is useful when formatting chemical names, URLs
and so on.
PTC Advanced Print Publisher provides the ability to specify word break
characters. These are the characters that are permitted to break lines without
introducing a hyphen. By default, this is set to the hyphen (-) and the forward
slash (/), but it is simple to add and remove characters. PTC Advanced Print
Publisher can have up to 16 characters configured as permitted word break
characters.
PTC APP source code edits are required to access PTC Advanced Print Publisher's
hyphenation control. Refer to Stylesheet Developer’s Guide to APP Code for some
samples of how to configure hyphenation.
PTC Advanced Print Publisher also provides support for the Dieckmann
hyphenator, which provides superior hyphenation rules for many different
languages. You must purchase dictionaries to use this function. These are
available from Dieckmann or DataCopy, a PTC partner. Engage the services of
GSO or an PTC APP partner to implement this hyphenator.
Spacing
Letter and word spacing is used to improve the aesthetics of justified text by
varying the amount of space between letters and words. PTC Advanced Print
Publisher can apply a basic setting, but also set maximum values for 'stretch' and
'squash', which allows an amount of flex when making the text fit onto a line.
Spacing works in conjunction with hyphenation settings to produce nice looking
text.
To access PTC Advanced Print Publisher's spacing settings, use PTC APPsource
code edits to the style. The following properties are exposed to the user through
the FOM:
• Letter spacing
○ Basic letter spacing — fStyle.letterSpace
○ Letter spacing stretch — fStyle.letterSpaceExtra
○ Letter spacing squash — fStyle.letterSpaceSquash
• Word spacing
Kerning
You may apply custom kerning tables with PTC Advanced Print Publisher. You
will need to configure this in an PTC APP template that can then be associated
with your .style stylesheet.
Ligatures
You may apply custom ligature tables with PTC Advanced Print Publisher. You
will need to configure this in an PTC APP template that can then be associated
with your .style stylesheet.
Character effects
Some fairly uncommon requirements for text character position and visual effects
can be achieved in PTC Advanced Print Publisher:
• Vertical position
Text is usually positioned on a baseline, an invisible line on which the
majority of characters sit. PTC Advanced Print Publisher can align text so that
the tops, centers, or bottoms of the characters align. It can also provide an
offset to align the characters at a specified position relative to the true
baseline.
• Rotation
Characters can be rotated 90, 180 or 270 degrees on the line. This is
sometimes used when vertically formatting text. Rotation does not effect the
order in which the characters appear.
• Character width
Characters in any font can be output at a specified fixed width. The alignment
of the characters in that width can also be controlled.
• Flip and mirror
Characters can be flipped (vertically mirrored) or mirrored horizontally. Flip
and mirror do not effect the order in which characters appear.
• Pseudo-italic and pseudo-bold
80 User's Guide
Both pseudo-italic and pseudo-bold can accept a value to specify the amount
of slant (italic) or offset (bold). For pseudo-italic, negative values can also be
used. PTC Advanced Print Publisher's pseudo-bold applies a copy of the
character offset from the true character. Text outline (see below) may also be
used to make a character appear thicker.
• Character outline
PTC Advanced Print Publisher can change the outline thickness of a character.
By default, the color of the character's outline is none, but this can also be set
to any color supported by PTC Advanced Print Publisher. Character outlines
have been used to provide a pseudo-bold effect. With additional coding they
can also provide a drop shadow effect by underprinting numerous copies of
the same text in lighter colors and greater outline thickness.
All character effects can be accessed via PTC APP source code edits. Refer to
Stylesheet Developer’s Guide to APP Code for some samples of how to configure
character effects.
Blocks
Blocks are a layout feature common to Arbortext Styler, XSL-FO, and CSS. They
are available in PTC Advanced Print Publisher as a new formatting object,
alongside tables and paragraphs. PTC Advanced Print Publisher blocks have
additional functionality which will be of use to stylesheet designers.
• Block width
PTC Advanced Print Publisher's blocks can carry a width property, which
specifies how wide the block should be within its measure. The block width
can be a percentage of the available space, or an absolute value.
• Boxing
Blocks can have a background color and rules on all sides.
• Columns
○ Columns within columns
Content can be displayed in multiple columns within a parent column, for
example a list in text.
○ Column width control
PTC Advanced Print Publisher uses blocks to specify page columns, rather
than controlling frame columns mid-page. Unequal column widths can be
configured in the Arbortext Styler UI. If further control is needed, add
PTC APP source code edits to a block or page set to allow even more
precise control of column appearance.
○ Column alignment control
Paragraph reposition
When a paragraph starts after another, it is usual for it to start below the preceding
paragraph at a distance specified by margins and leading. However, it is possible
to start a paragraph at a different position. PTC Advanced Print Publisher provides
simple tools to position paragraphs:
• To last para start
Some side by side layout requirements can be achieved by repositioning the
current paragraph to the start position of the preceding paragraph. This allows
either paragraph to run as long as necessary.
• To last para end
82 User's Guide
PTC Advanced Print Publisher allows a paragraph to be repositioned to the
baseline position of the last line of the preceding paragraph.
• Vertically center in measure
Some titles, for example cover page titles, need to be vertically centered in the
page area. PTC Advanced Print Publisher provides a simple instruction to
achieve this.
• Flush to column bottom
PTC Advanced Print Publisher can position text flush to the bottom of a
measure without using margins.
Tab stops
Tab stops allow content to jump to and align on specified horizontal positions
based on the presence of tab characters. For example, text on a line might be left
aligned at 10mm, centered at 100mm, and right aligned at 200mm.
PTC Advanced Print Publisher allows the configuration of tabs to align text in the
following ways:
• Justified
• Non-justified
• Centered
• Right aligned
• Decimal aligned
When setting up tabs it is possible to specify leader properties (character and
spacing). You can also set up trigger characters other than the TAB character.
PTC APP source code edits are required to access tab stops.
Justification
Refer to Spacing on page 79 for information on how word and letter spacing work
with justification.
In PTC Advanced Print Publisher it is possible to specify a justification limit. This
is the distance from the right measure at which text justification is turned off in a
line. If a line falls very short of the measure, forcing it to justify would add too
much space between letters or words. The justification limit tells PTC Advanced
Print Publisher how short the line can be before deactivating justification.
PTC APP source code edits can achieve this effect.
Testing
Testing is one of PTC Advanced Print Publisher's strongest features. It provides
access to content hierarchy testing though XPath. It also supplies a number of
other tools that allow you to associate formatting properties and behavior, and
output, with the results of the tests.
84 User's Guide
• Table properties
○ Number of current row
○ Number of current cell in row
○ Column width
• Content properties
○ Size of text content stream (number of characters)
○ The depth a content stream would format to, when it is of a certain width
○ Current position in text stream
○ Dimensions of a graphic
○ Graphic resolution
○ File type
○ Location of source file
○ Color type of graphic
• System and interface information
○ Current date and time
○ Mouse position
These values are mostly available through PTC Advanced Print Publisher getvars,
which are exposed as global variables. Others are available through certain
functions. Any of these values can be accessed through PTC APP source code
edits to the .style stylesheet.
Refer to Stylesheet Developer’s Guide to APP Code for some examples of how to
test and use formatting information.
Content Streams
PTC Advanced Print Publisher can format most types of content, providing the
content , provided the content includes tokens to which to assign formatting, A
token is either an <element> (in angle brackets) or an entity &reference;
(delimited by ampersand and semi-colon). By default, when PTC Advanced Print
Publisher is formatting a content stream, when it encounters one of these tokens it
will search its list of tags to find a match by name. If a match is found, the tag will
be processed.
An PTC Advanced Print Publisher tag is a container for information. There are
many tag types. A tag’s type indicates how it will be processed.
86 User's Guide
PDF Configuration File for the PTC APP
Engine
A default XML configuration file that supports publishing of PDF with the PTC
APP engine is provided with a Arbortext Editor environment that includes
Arbortext Styler or Arbortext Publishing Engine:
Arbortext-path/app/standard.appcf
You can save a custom version of this file if you wish to tailor your own PDF
publishing process/output. Open the file in Arbortext Editor (without a stylesheet),
make changes, then save the custom file, with the same file extension, in any of
these locations:
• Publishing PDF from Arbortext Editor or Arbortext Styler — you can browse
for a custom file, or locate it in the APTCUSTOM\app directory where PTC
APP will find it
• Publishing PDF via Arbortext Publishing Engine — a custom file must be
located on the PE server, in any of these locations:
○ Arbortext-path\app
○ any APTCUSTOM\app directory
○ an application or custom doctype\nnn directory, where nnn is the
short doctype name of the doctype of the document being published.
Custom .appcf files must contain a single Print and a single Format
element, although these do not require child elements to be valid.
Use the set appconfigfile command to specify an alternate location for an
PTC APP configuration file. For more information, see the Arbortext Command
Language Reference.
See APP PDF Configuration File (.appcf) on page 96 for information on the
contents of the PTC APP configuration file.
Guidelines for customizing some common PDF properties in the configuration file
are provided here:
• Initial View on page 88
The default configuration file defines these initial view document properties:
○ Navigation tab — Page Only
○ Page layout — Single Page
○ Magnification — Default
○ Open to page — 1
○ Window Options — Resize window to initial page
Initial View
You can configure the following initial view options for a PDF:
• Navigation tab
• Page layout
• Magnification
• Open to page
• Window Options
• Show
• User Interface Options
88 User's Guide
Initial view settings are configured with attributes of the Open element in a
.appcf file. In the file, add the following element hierarchy to the required
Print element:
Print
PDFPrinter
Open
Define an optional attribute for the Open element for each initial view setting:
Initial View Setting Attribute of Open Possible Values
Navigation tab show • useNone — Page
Only
• useOutlines —
Bookmarks Panel and
Page
• useThumbs — Pages
Panel and Page
• useAttachments —
Attachments Panel
and Page
• useOC — Layers
Panel and Page
• fullScreen — full
screen mode
Page layout pageLayout • singlePage — Single
Page
• oneColumn — Single
Page Continuous
• twoPageRight —
Two-Up (Facing)
(Odd pages on right)
• TwoColumnRight —
Two-Up Continuous
(Facing)
(Odd pages on right)
Magnification magnification • default — Default
• fitWindow — Fit Page
• fitWidth — Fit Width
• fitHeight — Fit
Height
Compression Level
You can reduce the size of an output PDF file by setting its compression level. The
level of compression that is possible depends on the content of the PDF:
• Using a moderate compression will give the best quality output.
• PDFs that only contain text are already compressed as far as possible with the
default settings
• When PDFs contain raster graphics (TIFF, JPEG, PNG, etc.), the default
setting is to use the Flate (zip) lossless compression scheme
Compression settings are configured with the Compression element in a
.appcf file, and its child elements. In the file, add the following element
hierarchy to the required Print element:
Print
PDFPrinter
Compression
90 User's Guide
Text Compression
The attribute compressText for the Compression element activates compression
for text and line art. Use the value yes.
Image Compression
Child elements of the Compression element define the compression level for
images.
92 User's Guide
Child element of
Image Type Compression Attributes and Values
appropriate
compression for
image type
• flate
• jpeg
• none — do not
compress
quality
Amount of compression
to apply when printing to
JPEG
• high
• low
• max
• med
• min
94 User's Guide
PDFMode
Set the fastWebView attribute of the PDFMode element to yes to optimize PDF
output for fast web viewing.
96 User's Guide
Debugging settings
Changes made to this element and its children would most likely not be
supported. They have a significant impact on performance and can negatively
alter the publishing process.
98 User's Guide
Attributes of
BoundingBoxes Property Permitted values
trimBox Whether to output trim • yes — output trim
boxes in PDF output boxes in PDF output
• no (default) — do not
output trim boxes in
PDF output
artBox Whether to output art • yes — output art
boxes in PDF output boxes in PDF output
• no (default) — do not
output art boxes in
PDF output
cropBox Whether to output crop • yes — output crop
boxes in PDF output boxes in PDF output
• no (default) — do not
output crop boxes in
PDF output
bleedBox Whether to output bleed • yes — output bleed
boxes in PDF output boxes in PDF output
• no (default) — do not
output bleed boxes in
PDF output
Note
This option is ignored for linked images when passthrough is enabled. See
Images on page 113 for information.
Attributes of
ColorImages Property Permitted values
downsampleDPI The size to which to Number (default value
downsample images 150)
downsampleMode Algorithm for • off (default)
downsampling • subsample — fastest,
When downsampleMode uses nearest pixel
is set to a value other than from original image
off, and the DPI of an
image is equal to or above The original image
the value of type will not be
downsampleThreshold, changed with this
the image is method.
downsampled to • average — uses
downSampleDPI. average of the group
of pixels surrounding
Attributes of Compatibility define PDF tag and PDF layer support. Its child
elements define PDF version and standards support.
Attributes of
Compatibility Property Permitted values
tagging Whether to process any • inherit (default) —
PDF tag instructions in obey the setting in the
the stylesheet/template stylesheet/template
when publishing to PDF • forceYes —override
the stylesheet/
template setting and
process PDF tag
instructions
• forceNo — forceYes
—override the
stylesheet/template
setting and do not
process PDF tag
instructions
layers Whether to process any • yes
PDF layer changes found • no (default)
in the template when
publishing to PDF
Caution
These options can have a significant impact on performance and drastically
alter the way the document is published. They should only be used when
absolutely required. Custom settings for these options will most likely not be
supported.
The Format element defines formatting options, for example the number of
passes to be made and whether page checksums should be generated.
Caution
These options can have a significant impact on performance and drastically
alter the way the document is published. They should only be used when
absolutely required. Custom settings for these options will most likely not be
supported.
Note
This option is ignored for linked images when passthrough is enabled. See
Images on page 113 for information.
Attributes of
GrayscaleImages Property Permitted values
downsampleDPI The size to which to Number (default value
downsample images 150)
downsampleMode Algorithm for • off (default)
downsampling • subsample — fastest,
When downsampleMode uses nearest pixel
is set to a value other than from original image
off, and the DPI of an
image is equal to or above The original image
the value of type will not be
downsampleThreshold, changed with this
method.
Attributes of Images specify how to handle linked images in the PDF, and the
DPI to use when converting EPS files.
Attributes of Images Property Permitted values
linked How to process linked • original — use the
images imported image from
PTC APP,
compressing
according to values in
the Compression
on page 103 element
• draft — use the low
quality preview
version of the image
• passthrough (default)
— use the actual
image file without any
conversion
epsDPI The DPI to use when Number (default value
converting EPS files 600)
Attributes of Media define support for paper types when printing to PostScript
output.
Attributes of Media Property Permitted values
firstPage The paper tray to use • default (default)
when printing the first • tray1
page of the document
• tray2
• manual
otherPages The paper tray to use • first (default)
when printing the • tray1
remaining pages of the
• tray2
document
• manual
duplex Whether to enable duplex • yes (default)
printing • no
pageSize Whether to select paper • auto (default) —
size based on the size of automatically select
page in the document • none — do not select
different paper size if
page size changes
autoRotate Whether to automatically • yes (default)
rotate the page to fit the • no
media size
Note
This option is ignored for linked images when passthrough is enabled. See
Images on page 113 for information.
Attributes of
MonochromeImages Property Permitted values
downsampleDPI The size to which to Number (default value
downsample images 300)
downsampleMode Algorithm for • off (default)
downsampling • subsample — fastest,
When downsampleMode uses nearest pixel
is set to a value other than from original image
off, and the DPI of an
image is equal to or above The original image
the value of type will not be
downsampleThreshold, changed with this
the image is method.
downsampled to • average — uses
downSampleDPI. average of the group
Note of pixels surrounding
the nearest pixel from
linked=
the original image
"original" must
be set for Images on • bicubic — slowest but
page 113 for best quality, an
downsampling enhanced bicubic
settings to have an algorithm
effect in PDF output.
Note
Monochrome images
are converted to
grayscale to achieve
the average values
required for average
or bicubic modes.
This may result in a
larger PDF file,
although
downsampling and
compression could
make it smaller than
including the original
(subsample method)..
downSampleThreshold The threshold size of an Number (default value:
input image 450)
type (required) Compression type • auto — use the most
appropriate
compression for the
type of image
• none — do not
compress
• ccitt3 — CCITT3
• ccitt4 (default) —
CCITT4
• flate — Flate
encoding
You can also set this field to Before-text PDF tag or Element content PDF
tag to produce a list of secondary (nested) PDF tags. See Configuring
Primary and Secondary PDF Tags on page 145 for information.
• Assigned any value
4. Run the search with Find. Arbortext Styler generates a list of all contexts that
have a PDF tag assigned in this sample stylesheet.
A Tools ▶ Validate Stylesheet action will flag errors if secondary tags are
not configured according to these rules.
• Certain secondary tags are available, based on the category of the Element
tag:
A Tools ▶ Validate Stylesheet action will flag errors if secondary tags are
not configured according to these rules.
• Primary and secondary tags are configured as a single group. It is not
possible to explicitly set one and inherit the other.
• PDF tag attributes can be applied to Element tags only. If the Element tag
is configured as (No tag), an attribute cannot be set.
PDF/UA Output
PDF/UA (PDF/Universal Accessibility) is a standard that defines requirements for
accessibility in PDF documents and applications. Conformance to the PDF/UA
standard means that PDFs are accessible with assistive technology such as screen
readers, screen magnifiers, and other technologies to navigate and read electronic
content.
Arbortext Styler provides the option to generate tagged PDF that conforms to the
PDF/UA standard. The PDFUA element in the PTC APP configuration file, when
included and set to a value of 1, will specify that PDFs generated are PDF/UA
compliant.
For more information, see PTC APP PDF Configuration File (.appcf) on page 96.
You must ensure your stylesheets and PDF publishing action are set to generate
tagged PDF if requesting PDF/UA compliant PDF.
For more information, see Stylesheet Properties — Print/PDF on page 1042
You can use the Conformance section in Adobe Acrobat to confirm that your PDF
conforms to the PDF/UA standard. The Standards panel provides the
Conformance section of information.
Note
By default, if the id attribute is set for the resourceid element in a
DITA topic, it will be used as the filename for the equivalent output
HTML file.
5. In the MetaValue field, type the value for the Author metadata type.
You can also generate the value of the MetaValue field programmatically if
you wish. For example, if your chapter contained keywords, you could enter
the Keywords metadata type in the MetaName field, then use the Insert ▶
Element Content menu option in the MetaName field to insert all occurrences
of the keyword element from the chapter into the field. In this instance
Arbortext Styler will extract the content of each keyword element and insert
them in the MetaValue field wrapped in an _sfe:CollectionItem
element, creating a comma separated list of keywords for the chapter.
6. Place your cursor after the Meta tag, and choose a second Insert ▶ Advanced ▶
Metadata action. This time, check the Dynamic option in the Insert Metadata
dialog box and click OK. Arbortext Styler inserts a Meta tag again, this time
with both MetaName and MetaValue tags blank.
7. In the MetaName tag, type the metadata type Title.
8. In the MetaValue tag, choose the Insert ▶ Element Content menu option. In
the Insert Element Content dialog box, configure the following settings:
• Select the By XPath option
• In the Expression field, enter the expression title
• Set the Insert field to Only content
Here you have specified that the value of the Title metadata type for a
chunk will be set to the title of the chapter upon which the chunk is based.
Click OK to exit the dialog box . Arbortext Styler enters an
ElementContent tag into the MetaValue field.
9. Choose File ▶ Apply and Close to exit the Generated Text Editor. The Add
before element content field now contains <_gte:Meta>,
<_gte:MetaName>, and <_gte:MetaValue> tags defining the metadata
settings you made.
10. In Arbortext Editor, choose File ▶ Publish ▶ For Web. In the Stylesheet field of
the Publish for Web dialog box (see Publish for Web dialog box in Arbortext
Note
If you are publishing EPUB with Arbortext Publishing Engine, you must still
install Calibre on the Arbortext Editor client. The EPUB viewer must run on
the client to enable you to view the resulting output. Use a set
epubinstalldir=path command in an ACL script in the Arbortext-
path/custom/init directory to declare the location of the installation.
Note
Generated text, including automatic numbering, is created when the XML is
transformed to HTML or XHTML. You cannot change its content by making
changes to a CSS file. Be sure to configure generated text before publishing.
Existing stylesheets
Use this process if you already have stylesheets to support documents of different
document types and you want to amend them so that all resulting documents
display the same styling.
1. Determine the set of property sets that will be used in all stylesheets to provide
the styling for the required HTML output.
2. Create a new stylesheet module and move all property sets to the new module.
Referencing property sets from a module is considered best practice for this
process. It facilitates the sharing of property sets between stylesheets and
ensures consistency of name.
3. Create a new module for any objects defining TOCs that will appear in the
body of the final document, if applicable. Move all such TOC objects to the
module.
This step does not include the TOC that appears in the left hand frame of
EPUB, HTML Help, and Web outputs.
Referencing TOC objects from a separate module is considered best practice
for this process, as above. You could include the TOC objects in the same
module as the property sets.
4. Create a new module for any combined font definitions in the stylesheet, if
applicable. Move all combined font definitions to the module.
Referencing combined font definitions from a separate module is considered
best practice for this process, as above. You could include them in the same
module as the property sets and/or TOC objects.
For more information, see PTC APP PDF Configuration File (.appcf) on page
96
5. Set the value of the xmpMetadata attribute for the element to the path to your
custom XMP file, for example xmpMetadata=”D:\test.xmp”. Save the file.
6. Publish your document to PDF output.
7. The metadata defined in the XMP file is included as metadata for the PDF file.
For example, you can open the PDF in Adobe Acrobat and navigate to this
path to view the XMP metadata:
File ▶ Properties ▶ Document Properties ▶ Additional Metadata ▶ Advanced
This section describes the formats to which you can export your stylesheets for
use with processors other than Arbortext Styler.
175
Exporting Stylesheets
Arbortext Styler stylesheets are saved with a .style extension, a format that
Arbortext Editor and Arbortext Publishing Engine automatically recognize. Since
.style files are proprietary, you can also export your stylesheet to a standard
format.
Note
The template can only be opened successfully in a compatible PTC
Advanced Print Publisher release - you will see an error message if you try
to open the document in an earlier release.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
Your stylesheet must be set to use XSL-FO at its effective print engine.
• XSL-EPUB
• XSL-HTML File
• XSL-HTML Help
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
5. Click Save.
If you will be generating an XSL-HTML stylesheet from the .style file, you
can specify that the XSL-HTML stylesheet should produce XHTML output when
publishing, rather than the standard HTML. In the HTML tab of the Stylesheet
Properties dialog box, select the Generate XHTML option for the required output.
You can then export the .style file to the required XSL format and use it to
support publishing.
Note
XSL stylesheets exported from Arbortext Styler do not conform strictly to the
XSL specification. They are designed be supported in other PTC applications
such as Arbortext Publishing Engine. PTC cannot guarantee that they will
work in other XSL-FO applications and do not support this use case.
This section describes how to define the layout of pages using page sets.
179
Page Layout Overview
Arbortext Styler uses page sets to define page layout. Page sets are a set of page
layout descriptions for a sequence of pages in a major division of a document. All
pages using the same page set are numbered sequentially in the document and
typically share some basic characteristics.
Every element that generates output must either specify a page set or have an
ancestor that has specified a page set. Once an element has specified a page set,
the page set is used until the element ends.
The Page Sets list displays a list of page sets configured for the stylesheet.
You can configure the following features in a page set:
• Page size and orientation: see Setting a Page Size and Orientation for a Page
Set on page 182 for information
• Page layout: page types made up of a specific set of page regions define page
layout. See Defining Page Regions on page 190 for information.
• Margins: see Setting Margins in a Page Set on page 185 for information
• Columns: see Setting Columns in a Page Set on page 186 for information
• Regions to hold text or graphic content: see Defining Page Regions on page
190
• Headers, footers and other generated content: see Adding Headers and Footers
to a Page Set on page 198 for information
• Page numbers: see Configuring Page Numbers for a Page Set on page 199 for
information
Some characteristics of page sets are listed below, which may be useful when you
are deciding how to set your pages:
• A page set is either single or double-sided and a set of properties can be
applied accordingly. It is not possible to mix single singled and double sided
properties in a single page set: you cannot, for example, choose double-sided
margins and single-sided headers.
• Single-sided documents have the same page layout on left and right pages.
• Double-sided documents are designed to print on both sides of a page. You can
specify different settings for left and right pages.
• First pages usually occur on the right side of a two page spread. They are also
known as “recto” pages. Note , though, that the first page of a document that is
formatted right-to-left will occur on the left. You can also specify that the first
page should start at any number in the Breaks category.
1
FOSI and XSL-FO require that the main content flow region be the same
width for all pages.
2
FOSI and XSL-FO support rotation of 90 degrees only for the main content
flow region.
1. Open the Page Sets list . You will see a list of page sets configured for the
stylesheet.
2. Alternatively, choose the Insert ▶ Page Set menu option to create a new page
set. Give the new page set a name, for example body-usletter.
3. If you want to create a double-sided page set, select the Double-sided option.
Don't select the option if you want to create a single-sided page set.
Note
When you select Double-sided, the Preview window displays two pages
instead of one.
Note
If you change the width and height settings for a distributed page size, the
selected page size changes to Custom.
If you wish to create a custom page size, set the value of the Width and Height
fields. You may either type an arbitrary size in the fields or choose a defined
measure by selecting from the list of Size objects configured for your
stylesheet. For the latter option, click the Select Size button next to the
field for which you wish to set the measurement and select the name of the
required Size object from the resulting list. Once you have selected a Size
object the measurement it defines will be displayed wrapped in angle brackets
(< > characters) in the relevant field. For example, the Size object InchSize
defines a measurement of 1.00in:
1. Open the Page Sets list . You will see a list of page sets configured for the
stylesheet. Select the one you want to update.
2. Alternatively, choose the Insert ▶ Page Set menu option to create a new page
set. Give the new page set a name, for example body-50pages.
3. Go to the Other category.
For more information, see Page Sets — Other Category in the User's Guide to
Arbortext Styler.
4. Select a number of pages in the Make last page a multiple of field, or enter your
own value (between 1 and 64). For example, enter 50.
This is the multiplier for the number of pages — the page set will output a
multiple of this number.
When publishing a document to PDF (with the PTC APP engine), the element that
is assigned the body-50pages page set will output a multiple of 50 pages to fit
its content. The page set will output blank pages to make up the page count if
necessary.
You can set the length of a document in this way, by assigning the page set to the
document element. Any child elements formatted by page sets with an extent set
will output their own number of pages within those output by the document page
set.
Be aware of the following:
Note
When working with FOSI and XSL-FO engines, blank pages in a double sided
document will always display the margins configured for left pages. In some
earlier releases of Arbortext Styler blank pages were laid out with odd page
margins when the document was published with XSL-FO. You may need to
update your page sets to take account of this change.
This constraint does not apply to content generated via the PTC APP engine.
1. Select the page set whose margins you would like to set.
2. Got to the Page size category in the properties area of the Page Sets list.
3. Select the Double-sided option.
4. In the Top and Bottom fields, specify top and bottom margins as desired. Refer
to Units of measurement in Arbortext Editor help for more information about
the units that are permitted in the fields.
5. If you want to draw the same margins on both left and right pages, select the
Mirror margins option. Specify values for the left and right margins in the Left
pages field. The settings you make here will be effective in all pages
formatted by the page set.
6. If you wish to have different margins on left and right pages, deselect the
Mirror margins option. Specify individual values for left and right margins in
both the Left pages and Right pages fields.
7. The graphic representation of the page layout in the Preview window will
change as you amend the margins, to give you an idea of how the page will
appear. The solid horizontal lines represent the page content and show how the
margins change. Note that this preview is not a WYSIWYG preview.
Note
When you specify justified columns, you must also specify variable
spacing for some of the elements within the page set. Arbortext Styler
applies variable spacing to elements in the page set to justify the content.
Arbortext Styler cannot justify the content within a page set if you do not
specify variable spacing. It does not know where to distribute the extra
space added to make the content fill the page.
Note
An explicit setting in the Columns field in the Breaks category for an
element will override this setting.
4. Select the alignment of the columns in the Column horizontal alignment field.
Note that the setting made here does not affect the alignment of content within
the columns.
5. Confirm if the columns should be balanced across the page by selecting the
Balance columns option.
6. In the Default gutter width field, set a width of gutter that should be used if you
do not plan to explicitly define column widths.
7. In the Gutter rules field, configure any rules to be drawn around column
gutters. Rules will apply to default gutters or gutters explicitly set in the x
columns property categories.
This option only applies to print/PDF output generated with the PTC APP
engine. The field is not available if your stylesheet is set to use FOSI or XSL-
FO as the default engine.
8. Navigate to the x columns property categories. Here you explicitly configure
column and gutters and define their widths.
You can maintain a different column layout for each number of columns in the
same page set.
9. Select the Unequal columns option if you want to set different widths for the
columns in a Width field for each column. Leave the option unchecked if you
want all columns to be the same width. You will be presented with a single
Width field.
This option only applies to print/PDF output generated with the PTC APP
engine. The field is not available if your stylesheet is set to use FOSI or XSL-
FO as the default engine. You will only be able to set one column and gutter
width to be repeated across all columns.
10. Select the Unequal gutters option if you want to set different widths for the
gutters between columns in a Gutter field for each column. Leave the option
unchecked if you want all gutters to be the same width. You will be presented
with a single Gutter field.
Note
If a column doesn't justify, you may need to specify a larger value in
the Maximum field to add more variable space. However, if the content
in the last column on a page fills less than half the column, Arbortext
Editor will not justify the content, even if you have selected
Justified and specified variable spacing.
Note
Only page regions that can be identified as headers or footers will be included
in RTF output.
Arbortext Styler provides an option to create commonly used page regions via a
built in helper. Please refer to Add Page Region on page 192 for further
information.
The steps to creating and using page regions for your page set in the Page Regions
list are:
1. Create the page region in the Page Regions list.
2. Configure the background color, position, content, and rotation of the page
region.
3. Assign the page region to a page type in the Page Types list so it forms part of
a configured page layout. Add page regions in a specific order to ensure any
avoid settings are obeyed.
4. Preview the page type with the relevant page set in the Page Types list.
5. Assign the page type to the relevant page set by choosing it to format certain
pages within that page set, for example Right pages or First page. Use the
Page types category for the Page Sets list.
The example assumes that a single sided page set based on the Letter page size
(8.5in x 11in) is already available in the stylesheet.
1. In the Page Regions list , create two new Page Region objects using the
Insert ▶ Page Region menu option. Name them as required, for example
firstpage-graphicfirstpage-content.
2. Configure settings for the region that will hold the graphic:
• Position category:
○ In the Avoid field, select the Underlaid regions avoid this region option.
This field is only available when your stylesheet is set to generate
print/PDF output with the PTC APP engine.
3. Configure settings for the region that will hold document content:
• Position category:
The option is only available when the Arbortext Styler environment is set to
use the XSL-FO print engine.
Nested page sets are not permitted under the XSL-FO specification. Arbortext
Styler will attempt to eliminate nesting of page sets when composing with the
XSL-FO engine. As part of the flattening process, some elements that were not
3. Page set errors are indicated by a red mark through the icon for either the
element or the page set . The number of errors found is displayed at the
bottom of the dialog box. Refer to the graphic below. The title and
productname elements have been set to start a new page but they have not
had a page set applied. Since they appear before elements that have had a page
set applied, they are flagged as errors.
Note
Properties in the Block border category are disabled if the Outputs to edit
field is set to anything other than Print/PDF (PTC APP), any of the HTML
outputs, or Base (All Outputs).
Note
A positive offset increases padding, pushing the border further away from
the content. The block may take up more space in output, and may
displace neighboring content.
7. If you want to change the default style of corner for adjoining borders, select
Yes in the Rounded corners field.
If you have activated rounded corners, you can select the stretch of curve of
the corner with the Radius picker.
Note
A rounded corner setting only applies to corners that have two borders.
8. You can also select a background color for the block element using the Color
picker in the Background properties field.
• Adding rules to a block element has an impact on its margin priority settings,
when publishing to PDF with the PTC APP engine. Margin merging cannot be
applied.
Note that the negative horizontal offset for the title will offset the left
indent configured for the rest of the content of the section. The title will
start at the parent left indent of section.
• Width: 13pc
Setting the width of the title to 13pc with reference to the section’s left
indent of 15pc implies a 2pc gap between the end of the title text (plus any
added gap) and the start of the content of the following paragraph.
• Horizontal gap: 0pc
Here you have specified that info should be aligned to the right of the
following elements (para). There is 19pc of available horizontal space for
info, and no offset value means it should fill that horizontal space. Note that
Here you have confirmed that the para element will be positioned to the left
of the info element. para will be aligned from the right of the content area
on the page, and will start at 20pc from the right margin. With reference to the
width of 19pc set for info, this implies that an additional 1pc of space will
separate the right edge of the para from the graphic in the info element.
3. For the first para in step context, configure the numbering for the steps
in the procedure. Ensure that the numbering restarts at procedure.
4. For the title in figure context, set the Spacing After field in the Spacing
category to a suitable value. This will ensure that the figure title is separated
from any text or graphic that comes beneath it.
You must avoid setting a Spacing before value for the info, figure, and
graphic elements or the first para in step context. The tops of the
graphics may not align with the top of the step text if a non-zero value is used
here.
5. For the step element, configure the following settings in the Side by side
category:
• Align side by side with following: No
• End all contained alignments: No
Here you have confirmed that all steps in a procedure will continue the side by
side alignment settings. This includes those that don’t include their own
graphics - the text of steps without their own graphics will immediately follow
the text of the previous step. See step 2 in the sample file which aligns to the
side of the graphic from step 1 in output.
6. Preview your document for print via the PTC APP engine. You will see that
the info and para elements in a step are aligned as you have described.
Activate the block guides and the grid in the PTC APP Preview window by
clicking the Show / Hide the blocks and buttons. Select the unit of
measurement you have used from the drop down list . This will
display all the blocks you have configured with your side by side settings.
It can be difficult to confirm the structure type when property sets apply for
the element, as more than one can apply in a given instance. It may be the case
that side by side formatting is applied to an inline element. When working
with HTML outputs, this can lead to unexpected results. You can try and
mitigate this:
○ Avoid setting side by side properties directly on the element that is
expected to be inline.
○ Use context and conditions to avoid setting side by side properties in
Property Sets when the element would also be inline (either by Property
Set or by direct assignment).
• If any HTML outputs are configured to create CSS rules for property sets, side
by side properties should also be specified in a property set. Side by side
properties set in a context or condition will cause HTML/CSS defects to be
reported.
Refer to Styling HTML Files from Different Document Types on page 165 for
information on creating CSS rules for property sets.
• When working with HTML outputs, some browsers ignore a Yes value for
End previous alignment on some elements, but obey it on others. The behavior
is not consistent among browsers. It may be necessary to experiment with
configuring the setting for multiple elements, or using End all contained
alignments to prevent problems. This limitation can be seen in the
procedures/procedure_left and procedures/procedure_
right sample documents in the samples directory. Refer to procedures/
about_procedure_samples.xml for further information.
• When working with HTML outputs, setting End previous alignment to Yes
Hyphenation
To set up hyphenation in your stylesheet, you need to configure the following
settings:
1. Document language
See the Language tab on page 1040 of the Stylesheet Properties dialog box.
In the Document language specification group, set a default value for the
document language and (optionally) specify the attribute that holds document
language information in a document. When the language is not specified in the
user document, the default language is used for the document language. You
then have the option to set a (Use document language) option for hyphenation,
which will pick up the current document language based on these settings.
You may also set hyphenation language to <Derive>. If no ancestor specifies a
hyphenation language to inherit, then US English is used.
2. Hyphenation setting for elements or contexts
See the Breaks category on page 804 in the Elements or Property Sets lists.
If the specified hyphenation language is not one supported by the print engine
being used for a publish action, hyphenation will not occur. This applies whether
the value is specified on the Breaks category, or derived from the document
language.
This section describes ways in which you can use properties to provide the
required formatting for the components of your document.
221
Properties Overview
Each element context or condition, or property set has formatting properties
assigned to it to control the style for a particular usage. These properties may have
been assigned by default, by styles you have applied, or by property sets
(collections of property values). In addition, each element may include any
number of contexts and conditions, which may assign different properties to an
element depending on where it is in the document or how a particular attribute has
been defined. The properties for each element, context, condition, or property set
are grouped in categories in the lower area of the Arbortext Styler window. Select
one of the categories from the Category list to access the properties in that
category:
• Text category - Specifies formatting characteristics for any text, such as bold,
italic, underline, font family, size, and color. See Text Category on page 787
for further information.
• Indent category - Specifies properties related to horizontal positioning of text
(text alignment and indents). See Indent Category on page 795 for further
information.
• Spacing category - Specifies properties related to vertical spacing of text (line
spacing, space before, and space after). See Spacing Category on page 800 for
further information.
• Breaks category - Specifies properties related to line, column, page breaks,
keeps, run-in titles and HTML chunking. See Breaks Category on page 804 for
further information.
• Generated Text category - Specifies automatically generated content including:
Derivation Chain
Derivation often involves a chain of sources, referred to as the derivation chain.
Following are some examples of derivation chains:
• A context derives from a condition that derives from a property set.
• A proper value is derived from a property set applied to a condition of the
context.
• A context has the Arbortext Styler default setting, derived from the parent
context of its parent context.
• Base properties values derived from a property set that is set to derive from an
original property set are applied to an element whose parent context derives its
properties from its parent context, where the grandparent context derives its
properties from a condition that has the original property set assigned.
The Arbortext Styler property categories use tool tips, colored labels, and a variety
of shortcut menus to assist you in determining this chain of property sources.
Note
To make them easier to use, property sets should only affect a few closely
related properties. For example, the Title Font property set should not set
spacing or alignment properties.
Derivation Exceptions
• The Property Sets category displays the property sets configured for the
stylesheet (Available property sets), and the property sets referenced by the
current object (Used property sets). However, when you resolve a context with
Label colors
The label colors on the property tabs vary depending on the source of the
property's value:
• Blue and bold — the value has been explicitly set (either directly or by
assigning a style).
• Orange and italic — the value differs for each of the selected objects or
outputs
• Black — the value has been derived from an ancestor, property set, condition,
base properties, or the Arbortext Styler default.
If you select multiple contexts, conditions, or property sets, or you select an item
from the Outputs to edit list that includes more than one output, a specific
property's value may differ among the selected objects. If the values of the objects
differ, the labels for the property fields will be orange (and italic), regardless of
whether or not any of the selected objects were explicitly set. The label is blue and
bold only if all selected objects have the same explicitly set value for a property.
Note
The label color will not be blue or orange for disabled properties. They will
still be bold and italic.
Description tab
The Description area describes explicitly set property values for an object and lists
any property sets referenced by a context, condition, or property set. For contexts
and conditions, the Description area includes and differentiates base property
settings and settings for other uses (if any). The description area is blank if you
select multiple objects from the same list.
Tool tips
Tool tips display when you place your cursor over a field in a category, indicating
the source of the value in the field.
• Derived or Derive - Indicates the value is derived.
○ Derived from - if a single item is selected the tool tip will indicate where
the value is derived from, if possible. Refer to Deriving Property Values on
page 223 for further information.
○ Derived - if multiple items are selected and they all derive the same value,
the tool tip says Derived. It is possible in this case that the value is derived
from various places.
○ Derived from Styler default - The value is derived directly from default
Arbortext Styler settings.
○ Derive - the derived value is not defined for this context, for example, if a
context will inherit a property value from its parent element. Arbortext
Styler has information about the source of the value, but not about the
value itself.
• Specified explicitly - Indicates that the value has been explicitly set. This value
may have been explicitly set by you or by assigning a style.
Shortcut menus
Arbortext Styler provides shortcut menus to allow you to view and edit the source
(s) of a property value. To display a shortcut menu for a property value, place your
cursor over the field on the category, and right click. The content of the shortcut
menu depends on whether the value in the field is explicitly set or derived.
For example, if you explicitly set a property value, the shortcut menu may only
contain Derive. If you select Derive, Arbortext Styler removes the explicit setting,
resolves the value if possible, and displays either the derived value or <Derive> in
the property field.
If a property's value has been derived, the shortcut menu displays the derivation
chain. Refer to Deriving Property Values on page 223 for more information.
For example, if you click in a para element in a Arbortext Editor document, and
then right click on the Text color property in the Text category in Arbortext Styler,
a shortcut menu displays information of this nature::
Styler default
Context book everywhere
Context chapter everywhere
Context itemizedlist everywhere else
Context listitem in itemizedlist
This shortcut menu indicates that the value for the Color field was obtained from a
Arbortext Styler default. To obtain this value, Arbortext Styler performed the
following process:
1. Checked the parent of the para element (listitem in itemizedlist ),
which did not specify a color value.
2. Checked the parent of listitem in itemizedlist (itemizedlist
everywhere else), which did not specify a color value.
3. Checked the parent of itemizedlist everywhere else (chapter
everywhere), which did not specify a color value.
Item Description
Base (All Outputs) Selects the context or condition for
which Base (All Outputs) is specified,
Base (All Outputs) is selected in the
Outputs to edit list, and the description
and property tabs change to reflect the
context or condition's values.
Note
Use the Back button to return to the
previously selected object and use.
Condition Selects the condition in the Elements
list, and the description and property
tabs change to reflect the condition's
values.
Note
Use the Back button to return to the
previously selected object.
Context Selects the context in the Elements list,
and the description and property tabs
change to reflect the context's values.
Note
Use the Back button to return to the
previously selected object.
The following example describes how to use the shortcut menu to edit a value
derived from a property set.
1. Open Arbortext Editor, and choose File ▶ Open.
2. Select the transport.xml document located at Arbortext-path/
samples/styler, and then click Open.
3. Choose Styler ▶ Edit Stylesheet. This is a read only stylesheet so you will need
to save a local copy if you want to make amendments.
4. In Arbortext Editor, click in the title element within the book element.
In Arbortext Styler, note that the title in book context is selected.
5. With the title in book context selected in Arbortext Styler, place your
cursor over the Text color property in the Text category, and right click.
6. Click on Property set Title color, which is the property set from
which the Text color field derived its value. The Property Sets list will open,
with the Title color property set selected.
7. In the Text category for the property set, change Text color to orange, and then
click OK.
8. Revert to the Elements list. Note that the title in book context is still
selected, but now the Text color field displays orange. The derived value
displays for the Text color field because it is derived from a property set.
9. Choose Preview ▶ Arbortext Editor.
10. In Arbortext Editor, scroll to the top of the document and note that the content
of the title element within the book element is now orange.
Modifying Properties
Once you have assigned a style to an element, you can modify its formatting
properties.
Note
If you want to apply the same properties to a group of contexts, conditions, or
elements, you may want to use property sets as they are easier to maintain.
Refer to Property Sets Overview on page 256 for more information.
Note
You can only apply properties on the Gentext tab to one use at a time.
Therefore, if you select a combined entry from the Outputs to edit list, the
options on the Gentext tab will be unavailable.
Note
When you choose to remove a combined entry, it is deleted.
Note
Prespace and postspace settings applied to empty elements are ignored. If you
wish to force a certain amount of vertical space in generated text, insert a User
Formatting Element (UFE) that is styled as a Block, and specify the required
Space Before or Space After setting for that UFE. The UFE must contain a
space, however, for the setting to have an effect, which in turn means that the
UFE's Line Spacing setting will also be effective. For this reason you should
ensure that the value of the UFE's Space Before / Space After setting plus its
value for Line Spacing add up to the required amount of vertical space.
For print and PDF output, spacing can be fixed or variable. Spacing is fixed when
the Minimum and Maximum values for Allow space to vary are omitted or are the
same as the Preferred value. Spacing is variable when the Minimum, Maximum,
and Preferred values are different. Variable spacing is used for vertical
justification, which is specified in the Columns category for a page set. Vertical
justification allows you to bottom-align columns. Variable spacing is also used by
the Desktop Composer to produce better looking pages when vertical justification
is not set.
Refer to Justifying columns on page 189 for more information on vertical
justification.
Specifying Precedence
Arbortext Styler allows you to specify a precedence associated with an element's
prespace and postspace. When one element applies prespace and an adjacent
element applies postspace, in most cases, only one of the values is used. The
precedence setting determines which element's spacing requirements are applied.
When a conflict occurs, Arbortext Editor and Arbortext Publishing Engine use the
value of the element with the highest precedence. If the precedences are equal,
Arbortext Editor and Arbortext Publishing Engine use the larger preferred amount.
Precedence values are none, low, medium, high, and force. The following table
describes the interaction between elements' prespace and postspace, and the role
precedence plays in determining the spacing value that Arbortext Editor and
Arbortext Publishing Engine apply.
Value Outcome
force The element's prespace takes
precedence over the preceding
element's postspace.
Note
Arbortext Editor applies the
combined preferred values for an
element's prespace and the
preceding element's postspace when
both are set to force.
high The element's prespace takes
precedence when the preceding
element's postspace precedence is set to
none, low, or medium.
medium The element's prespace takes
precedence when the preceding
element's postspace precedence is set to
none or low.
low The element's prespace takes
precedence when the preceding
element's postspace precedence is set to
none.
none The preceding element's postspace
always takes precedence, unless its
precedence is also none, in which case,
the one with the larger Preferred value
is used.
Value Outcome
force The element's postspace takes
precedence over the following
element's prespace.
Note
Arbortext Editor applies the
combined preferred values for an
element's prespace and the
preceding element's postspace when
both are set to force.
high The element's postspace takes
precedence when the following
element's prespace precedence is set to
none, low, or medium.
medium The element's postspace takes
precedence when the following
element's prespace precedence is set to
none or low.
low The element's postspace takes
precedence when the following
element's prespace precedence is set to
none.
none The following element's prespace
always takes precedence, unless its
precedence is also none, in which case,
the one with the larger Preferred value
is used.
When an element's postspace precedence and the following element's prespace
precedence are the same, Arbortext Editor and Arbortext Publishing Engine apply
the larger of the two Preferred values.
This section summarizes the order in which properties are analyzed and applied
when Arbortext Styler processes a stylesheet.
247
Understanding How Arbortext Styler
Determines Property Values
There are several ways in which properties can be assigned to elements, contexts,
conditions and property sets in Arbortext Styler - some of which take precedence
over others depending on the position in which they are applied or the
circumstances in which they are read. By understanding the precedence that a
certain instance of a property value can take over another, you will be able to
tailor your stylesheets, modules and property sets to meet any individual output or
formatting requirement.
The processing of a document takes place in two main strands:
• Processing order: the order in which Arbortext Editor matches and processes
the elements, contexts and conditions it encounters in the document. See
Processing Order During Publishing on page 248 for further information.
• Processing order in Arbortext Styler: the order in which properties associated
with each one of the objects described above are applied, and the priority
given to conflicting properties associated via different means or for different
output methods. See Processing Order in Arbortext Styler on page 249 for
further information.
Property sets associated with conditions are processed via the same logic as
for contexts.
Contexts
This section describes how Arbortext Styler resolves and displays property values
when you select a context. There are two cases - when Arbortext Styler can fully
resolve the context, and when Arbortext Styler can only partially resolve the
context. Refer to Resolving Property Values on page 227 for further information.
The following steps describe how to fully resolve property values. There are two
variants on partial resolution:
Note
Arbortext Styler follows the processing order described in Property sets
below for each property set.
Note
When examining property sets, Arbortext Styler follows the processing order
described in Property sets below for each property set.
Note
Arbortext Styler follows the processing order described in Property sets
below for each property set.
Note
Arbortext Styler follows the processing order described in Property sets
below for each property set.
Note
Arbortext Styler follows the processing order described in Property Sets
below for each property set.
Property Sets
This section describes how Arbortext Styler resolves and displays property values
when you select a property set in Arbortext Styler.
The possible sources of a property's value, and their order of precedence, are
shown in the following list. Arbortext Styler examines each possible source in the
order shown, and stops when it finds a value for the property.
1. Determine if there is an explicit setting in the property set's properties.
2. Examine the property sets that the property set references, from last to first,
and, for each property set, determine if the referenced property set specifies
the property value. Follow the processing order described here for each
property set, starting with step 1.
At this point, properties without values remain unresolved. Refer to Resolving
Property Values on page 227 for information on resolving property values.
This section describes how to create and manage property sets in your stylesheet,
and apply them to the elements in the stylesheet to produce the desired formatting.
255
Property Sets Overview
Property sets are predefined sets of formatting properties that can be applied to
contexts or conditions, or combined to create additional property sets. You can use
property sets to modularize your stylesheet, making it easier to maintain.
For example, you may have ten elements in your DTD or schema that you want to
format in the same way - 10pt, italic, and red. You can apply these properties to
each element individually. However, if you want to change the point size from
10pt to 11pt, you must change the point size for each of the ten elements.
If you configure a property set that incorporates these three properties, you can
change the point size in the property set, and Arbortext Styler applies this change
to all elements that reference the property set.
Note
Property values set by a property set do not override property values that are
explicitly set for an element.
You can use the Outputs to edit field on page 787 to configure output-specific
properties to be applied with a property set.
The order of property sets is important if you apply more than one property set to
an element and the property sets have conflicting values for a property. The value
from the last property set that sets a value takes precedence.
Note
Property sets correspond to FOSI charsubsets, and are closely related to XSL
attribute-sets.
1. In Arbortext Styler, click the Property Sets view tab. The Property Sets list
displays in the top portion of the Arbortext Styler window. This list contains
all the property sets configured for the stylesheet, if there are any.
2. Choose Insert ▶ Property Set.
This adds a property set named NewPropertySet to the Property Sets list,
and it is selected for editing.
3. Provide a descriptive name for the new property set, and press ENTER. The
new property set is added to the list in alphabetical order.
4. Specify the formatting properties you want to include in the property set using
the property categories in the lower section of the window.
The property set you just created does not display in the Available property sets
list from the Property sets category, because a property set may not reference
itself.
1. In the Property Sets view, select the property sets you want to delete from
the Property Sets list, right click and select Delete.
2. For each property set being deleted, a message displays indicating the number
of references to it in the stylesheet.
Choose Yes or No to confirm whether or not you wish to delete the property
and all references to it in the stylesheet, where possible.
2. Use the Outputs to edit field to specify the output(s) in which the property set
will be applied to the object.
3. Click on the Property sets category.
4. Select one or more property sets, and then click Add. The property sets are
moved to the Used Property Sets list.
5. If you want to change the location of the new property set in the Used Property
Sets list, click the up or down arrows.
Note
The order of property sets is important if you include property sets that
each contain values for the same property. The values of the last property
set take precedence over the others.
6. To ensure that the element looks the way you intended, choose a preview
option from the Preview menu.
Note
When a single property set is selected in either the Available property sets list,
or the Used property sets list from the Property sets category, the Description
area for the Property sets category reflects the selected property set's values.
Use the Property sets category for the Property Sets list to select the property
set to be applied to another property set.
1. Select the property set to which you want to apply another property set.
2. Use the Outputs to edit field to specify the output(s) in which a property set
will be applied to the selected property set.
3. Click on the Property sets category.
Note
The order of property sets is important if you include property sets that
each contain values for the same property. The values of the last property
set take precedence over the others.
6. To ensure that the element looks the way you intended, choose a preview
option from the Preview menu.
This section describes the types of element that can be included in a stylesheet,
and how to manage them.
263
Elements Overview
You can use Arbortext Styler to format many different types of elements as
described below:
• Elements declared in a DTD or schema
• Undeclared elements
• Namespaced elements
• Elements in a free-form XML document
• Styler Formatting Elements (SFE)
• User Formatting Elements (UFE)
Namespaced Elements
XML (optionally) allows for element names to exist within a declared namespace.
An element in a document can be namespaced via two mechanisms:
1. Its name may be written with an explicit prefix (separated from the element's
name by a colon), for example ns:elementname
2. It may be unprefixed but be within the scope of a default namespace
declaration. Certain document types define a default namespace so that all
elements within that document type are namespaced.
When an Arbortext Styler stylesheet is written for a set of namespaced elements,
all those elements will be prefixed in the stylesheet regardless of whether they are
usually prefixed in a document of this doctype or not.
Note
You cannot assign the Cross Reference, Graphic, Link or Link Target styles to
a UFE. These styles work with attributes, and you cannot create attributes for
UFEs. You also cannot assign the Document and Division styles to a UFE.
As with Styler Formatting Elements, you have access to all the options available
to regular elements for the setting of formatting properties. The UFE displays the
same formatting property categories as a regular element in the Elements list:
• Text properties: see Text Category on page 787 for information
• Indent settings: see Indent Category on page 795 for information
• Spacing properties: see Spacing Category on page 800 for information
• Breaks: see Breaks Category on page 804 for information
Note
As a default, Arbortext Styler only displays in the Elements list those elements
that have been used in the document. To view all available elements in your
stylesheet, deselect the View ▶ Only Elements in Document menu option.
Note
If you choose this menu option when any of the other list views are active,
you will be taken to the Elements list and the element will be created as
described.
2. Rename the element as required, and press ENTER. The element is moved to
its correct position in the alphabetic list. You can now apply a style and
properties to the new element.
If you want to add a User Formatting Element (UFE) to your stylesheet,
preface the name of the new element with the _ufe: namespace prefix and
Arbortext Styler will recognize the new element as a UFE.
If you want to add a namespaced element to your stylesheet, include the
namespace prefix when you are entering the element name. If Arbortext Styler
does not recognize the prefix you will see the Add Namespace Declaration
dialog box. Complete the namespace declaration in this dialog box for the
element to be valid.
If you need to rename the element, highlight the element and then either select
the Edit ▶ Rename menu choice, press the F2 key, or right-click on the element
and select the Rename menu choice.
Note
If Include declared elements from this document type is selected, the
Include declared elements from this document is selected by default.
8. Click OK. A message displays indicating how many new elements were added,
if any. The message indicates if there were no new elements to add.
To locate the elements that were added, sort the Elements list by style again,
and look for elements that have the Unstyled style (ensure that the menu
Note
We recommend that you apply a priority level to a child element that is higher
than the priority level of its parent element. This allows Arbortext Styler to
apply a keeps rule to the child element if it discards the keep on the parent
element.
Arbortext Styler is more likely to ignore low- to medium-range priority levels (1-
4) than those in the high range (5-6) if there is an overset. An element context
with a keeps priority level 7 never breaks.
Run-In Titles
Arbortext Styler provides the ability for you to create a title that starts a new line
but that runs immediately into the element that follows it, rather than appearing as
a separate block. For example, you may wish to create a run-in title that is
grouped with the paragraph that follows it in the document, and have the title
displayed at the beginning of the paragraph, rather than above it, as shown below:
This feature is not supported for property sets.
Note that the display of run-in titles is only supported in FOSI output, so will only
be visible in Editor view and print/PDF output published with FOSI. It should also
be noted that certain elements do not permit a title to run into them, for example
elements styled as Table or List.
279
Contexts Overview
Most elements have just one set of formatting properties. However, you can apply
different properties to an element based on the context in which the element
occurs. Arbortext Styler associates formatting properties with element contexts,
rather than directly with elements.
For example, you can use contexts to change the formatting of a title element.
A title in the context of a book can be formatted differently than a title in
the context of a chapter.
Note
You must apply a style to an element before you can apply contexts to it.
<front>
<abstract>
<para>
<front>
<preface>
<section>
<abstract>
<para>
Note
You can include User Formatting Elements and Styler Formatting Elements
when creating contexts. Refer to Elements Overview on page 264 for more
information.
You can further refine the elements to which a context applies by specifying a
position or XPath predicate for any of the elements in a context specification.
Refer to Using XPath in Contexts on page 288 for further information.
Context Priority
The order of contexts is significant. Contexts are displayed in Arbortext Styler in
priority order, highest priority first. Unlike conditions, in which all true conditions
are applied to an element, only one context is applied to an element. Initially,
Arbortext Styler assigns a priority to each context and, in general, more specific
contexts have a higher priority than less specific contexts. For example, title
in chapter is more specific than title anywhere in body, so title in
chapter has a higher priority.
When you add positions or XPath predicates to contexts, Arbortext Styler isn't
always able to determine which context takes priority. In such cases, you can alter
the priority by reordering contexts. You may also reorder the contexts if you wish
to override Style's default priority assignation based on complexity.
To Reorder Contexts
• In the Elements list select the context whose priority you wish to change.
• Click the up or down arrows in the Arbortext Styler toolbar to increase or
decrease the priority of the context respectively.
Note
Be careful when reordering contexts. Reordering contexts changes their
priority and thus affects formatting.
Since UFEs are used to format items in generated text, those items will
also be wrapped with a SFE element that marks generated text, such as
_sfe:BeforeOrAfterText. As such the element that appears to be
the parent of the UFE may not be its direct parent. For example, if you
insert a UFE to format a generated title in a division based on a chapter
element, the hierarchy for the title in that element will be as shown below.
<chapter>
<_sfe:BeforeOrAfterText>
<_ufe:Title>Introduction</_ufe:Title>
</_sfe:BeforeOrAfterText>
</chapter>
The chapter element is therefore an ancestor of the UFE, not its direct
parent. You should create the context _ufe:Title anywhere in
chapter.
You can repeat this step for any of the elements in your context specification
(the original element, or any parent or ancestor). That is, you can specify a
parent or ancestor for a parent or ancestor. To do this, select the element in the
context window, and click New Ancestor or New Parent.
6. Select a Position to further refine the context by specifying, for any element in
the context specification, its position relative to sibling elements of the same
type. Select the element you want to qualify with a position, then select a
position from the Position drop down list.
If you select XPath Predicate from the list, you will be presented with the
XPath Predicate dialog box, in which you must enter a valid XPath predicate.
7. Select At top level if you want the context to apply only when the highest
ancestor or parent element of the context is the top-level element in the
document.
8. Click OK to save the new context and exit the Context dialog box. The context
is added to the selected element in order of priority, from highest to lowest (the
more specific the context, the higher its priority).
Note
Be careful when reordering contexts. Reordering contexts changes their
priority and thus affects formatting.
To Edit a Context
1. In Arbortext Styler, choose the context you want to edit from the Elements list.
2. Choose the Edit ▶ Edit Context menu option to display the Context dialog box.
3. Select the parent, ancestor, or wildcard element you want to edit and click
Edit.
4. Select from the drop down menu the element with which you want to replace
the highlighted parent, ancestor, or wildcard element. Repeat as necessary.
5. Click OK when you are finished to save your change and exit the Context
dialog box.
To Delete a Context
1. In Arbortext Styler, choose the context you want to delete from the Elements
list, then choose Edit ▶ Delete.
2. A message asks you if you want to delete the selected item. Select Yes to
delete the context.
Note
If an element configured in the DTD or schema to have the xml:space=
”preserve” attribute set is added to the stylesheet during either a New
Stylesheet operation, or by choosing Insert ▶ Add Elements from document or
Doctype, its style will be set automatically to Preformatted. Arbortext Styler
will not allow the style to be changed. When an element’s style is
Preformatted, it has a value of Preformatted for the Alignment field in the
Indent category and you will not be able to change this setting.
To overcome this anomaly, create conditions based on XPath tests for the
table, rather than contexts. For example, the condition If XPath
expression (@pgwide=90) is true for the table will provide the same
output for the table based on the pgwide attribute, but will not cause errors
during publishing when the table element is used in generated text for the title
in the book. If, however, the context with the XPath predicate is not the one
that should be output in the generated text anyway, and its omission by FOSI
has no bearing on the required output of your document, you may simply
ignore the error message.
Note
This method of testing predicates does not work if the predicate contains
position(), or its shortcut form (just a number), or last(). However,
these functions will function correctly when used in predicates in Arbortext
Styler.
It often takes multiple attempts to define the correct the correct XPath expression
to meet your requirements. It is much quicker to develop and test expressions
Arbortext Editor than in Arbortext Styler - the steps below explain how:
1. Open your document in Arbortext Editor and place the cursor inside the
element whose position you are trying to test with the XPath predicate.
2. In the Arbortext Editor command line, enter the command eval oid_
xpath_boolean(oid_caret(), "self::node()[...]") -
replacing ... with the expression you wish to use for the predicate.
3. Look at the resulting value in the Eval Output window - if the value is 1, the
test is true. If a value of 0 returned, the test is false.
Contexts Walk-Through
This example walks you through the steps to create and modify a context.
297
Conditions Overview
With Arbortext Styler, you can make formatting properties conditional by
assigning conditions to element contexts. This allows you to apply different
formatting properties to the same element context depending on the circumstances
under which the context appears. The circumstances are determined by the results
of tests carried out against the content of the document to which the stylesheet
applies.
A condition consists of a set of tests and an associated set of formatting properties.
Tests based on the following can be included in a condition:
• Attribute value of the current element or any of its ancestors
• Content of the current element or any of its ancestors
• XPath expressions to support more complex tests
• Position of the element in an HTML chunk
When the tests specified for the context match for the context exactly as they are
described, the formatting properties associated with the condition overlay the
existing formatting properties given to the context itself.
The emphasis element can be used to illustrate a simple example of conditional
formatting. Initially, you can format emphasis as italic in all contexts. If you
want to change the formatting of emphasis from italic to bold, you can add an
attribute test that checks the role attribute on the emphasis element. If role=
“bold” (true), then bold formatting is applied to the font.
Note
In this case, you must explicitly turn off the italic property in the Text category
for the context (set it to no) if you do not want emphasis to be formatted as
bold italic.
Note
Start of HTML chunk tests should only be created for conditions that
are intended to apply properties in chunked HTML outputs (EPUB,
HTML Help, and Web). Tests of this nature will return a value of false
in conditions specified for Arbortext Editor, print/PDF, HTML File or
RTF outputs.
4. Create the required test and click OK from within the relevant dialog box to
save the change. A description of that test will be added to the list of tests in
the Tests: field of the Condition dialog box.
5. Repeat steps 3 and 4 as required, if you wish to create multiple tests for the
condition.
6. If you have created more than one test, choose either All tests are true (AND)
or Any test is true (OR) to confirm how many if the tests must match for the
condition to be true. If you select All tests are true, Arbortext Styler will only
apply the condition's associated formatting properties when all the tests in the
Tests list are true. If you select Any test is true, Arbortext Styler applies the
condition's formatting properties if at least one test in the Tests list is true.
7. Click OK when you have finished creating tests to save your changes and exit
the Condition dialog box.
8. The condition is listed under the context’s name in the Elements list, for
example If attribute “arch” is not assigned any value.
To Delete a Condition
1. In Arbortext Styler, choose the condition you want to delete from the Elements
list, and select the Edit ▶ Delete menu option.
Note
You can select multiple conditions for deletion.
2. A message displays to confirm that you want to delete the selected item.
Choose Yes to delete the condition.
Note
You will not be prompted to confirm the deletion.
You cannot delete all tests in a condition. You must have a least one test in a
condition to close the Condition dialog box.
3. Click OK when you have finished deleting tests to save your changes and exit
the Condition dialog box.
Note
If an element configured in the DTD or schema to have the xml:space=
”preserve” attribute set is added to the stylesheet during either a New
Stylesheet operation, or by choosing Insert ▶ Add Elements from document or
Doctype, its style will be set automatically to Preformatted. Arbortext Styler
will not allow the style to be changed. When an element’s style is
Preformatted, it has a value of Preformatted for the Alignment field in the
Indent category and you will not be able to change this setting.
Conditions Walk-Through
This example walks you through the process of creating and modifying
conditions.
28. The next step is to set up the formatting properties for each of the conditions
you have created. Highlight each condition in turn in the Elements list, and
specify the characteristics shown below in the Text category:
• If attribute “role”=”normal” or attribute”role” is not
assigned any value - Set Font size to 12pt
• Else if attribute “role”=”italic” - Set Font size to 12pt and
Italic to Yes.
• Else if attribute “role”=”bold” - Set Font size to 12pt and Bold
to Yes.
• Else - Set Font size to 12pt and Text color to Red.
29. Choose Preview ▶ Print. In the Print Preview window, note how the text for
each list entry has been displayed based on its individual condition. Note
specifically that the first two entries have been shown in normal text, as a
result of the If attribute “role”=”normal” or attribute”role”
is not assigned any value condition, and that the final entry has been
shown in red text, as a result of the Else condition. In the latter case you have
identified an attribute value name that has been accidentally misspelled.
Nesting Conditions
This section describes how to build a set of nested conditions, providing an
example of an instance in which nested conditions could be used.
Suppose you have a list whose constituent elements include the following
attributes (note that these elements and their attributes are included in the
axdocbook doctype):
• itemizedlist element:
○ attribute role - possible values large and small specify whether the list
should be indented by 0pt or 24pt, respectively. If the value of role is not
specified, its value defaults to small and all the list items are indented by
the measure specified for small, i.e. 0pt
15. Click OK to save the condition and exit the dialog box. The condition is now
displayed for the listitem in itemizedlist context in the Elements
list, described as If attribute “role” of element
“itemizedlist”=”small” or attribute “role” of element
“itemizedlist” is not assigned any value.
16. Navigate to the Generated text category to set the formatting properties for this
condition. Leave the Numbers and Bullets option set to Bullet. Click the Details
button to open the Bullet dialog box, in which you can set the default indent
for the list.
17. Set the bullet to indent at 0pt, then set the text following the bullet to tab to
16pt. Specify that following lines should indent to 16pt.
18. Click OK to save the formatting properties and exit the dialog box.
19. Choose Insert ▶ Condition to create the next condition.
20. In the New Condition dialog box, ensure that If is selected in the Condition type
field. Elect to create a new attribute test.
21. Elect to test the attribute of the current element, and select override from the
Attribute name dropdown menu.
22. Set the Attribute value field to match Assigned any value.
23. Click OK to save the test and exit the dialog box. The test now appears in the
Tests area of the New Condition dialog box.
If you wish to group the conditions so their formatting properties are only
applied when a particular combination of attributes is encountered, nest some
of the conditions as shown in the next step. The steps show how to nest the
conditions relating to the override and mark attributes within a group whose
matching capability is led by the presence of the role=small or no value.
64. Highlight conditions 2–5 in the above list, and click the Increase Level toolbar
button . You will see that the selected conditions are moved one place to the
right in the Elements list, thus making them child conditions of the condition
If attribute “role” of element “itemizedlist”=”small” or
Now conditions 2–5 will only be matched once condition 1 has been matched.
65. The next step is to create another group of conditions, with the difference that
its matching capability is led by the presence of the role=”large” attribute. To
accomplish this, repeat steps 4–64 to set up conditions as defined in the list
below:
• 1) Else if attribute “role” of element “itemizedlist”=
”large”
• 1.1) If attribute “override” is assigned any value
• 1.2) Else if attribute “mark” of element “itemizedlist”=
”arrow”
• 1.3) Else if attribute “mark” of element “itemizedlist”=
”number”
• 1.4) Else
Note that condition 1 should be an Else If condition, rather than If as in
the first set, to indicate that it is an alternative if the first condition in the first
set does not match.
Use all the same settings for these conditions as you used in the other set, the
only change being the size of the indent applied under each of the conditions.
Set the bullet to indent at 24pt, then set the text following the bullet to tab to
40pt. Specify that following lines should indent to 40pt.
66. You now have two groups of conditions, as shown below:
Note
Expressions that contain position() or last() cannot be tested in this
way. Expressions of this type are not permitted inside XPath tests of
conditions with FOSI outputs in Arbortext Styler. Use the preceding-
sibling or following-sibling axes instead to create comparable
tests.
For example:
• The expression count(preceding-sibling::para)=1, when used as
a condition of the para element, will test that the para is the second para in its
parent
• The expression count(following-sibling::para)=0 is a viable
alternative to position()=last()
The use of certain XPath expressions can cause increased processing times. Please
refer to XPath Performance on page 1078 for information and suggested
alternatives.
This section describes how to move objects within or between stylesheets using
cut, copy, and paste actions.
323
Cut, Copy, and Paste Overview
Arbortext Styler enables you to cut, copy, and paste the following stylesheet
components from their respective list views in the Arbortext Styler UI:
• Elements
• Contexts
• Conditions
• Property sets
• Page sets
• Headers and footers
• Tables of contents
• Custom tables
• Cross references
It is also possible to copy sets of formatting properties for use with another object.
Except for formatting properties, cutting, copying, and pasting these components
is supported through operations on the Edit menu, associated keyboard shortcuts,
toolbar buttons, and the shortcut menu. For formatting properties, cut, copy, paste
and delete is supported through operations on the Edit ▶ Properties menu.
If you have multiple Arbortext Styler sessions running, you can cut, copy, and
paste between different sessions. You can also cut or copy a component in an
Arbortext Styler session, close the application, start a new Arbortext Styler
session and paste the component into the stylesheet active in the new session.
Note
Definitions are always pasted into the root module. If the copied element
was in a different module, or if it was cut instead of copied, then _copy_
1 will not have been appended to the element's name. If they are in
different modules, multiple definitions can have the same name. However,
definition names must be unique in each individual module.
If you have copied a namespaced element from a different module, and
that module declares a namespace that also exists in the current module but
with a different prefix, you will see that the element's namespace prefix
will change when the paste action to the current module is completed.
Note
Definitions are always pasted into the root module. If the copied property set
was in a different module, or if it was cut instead of copied, then _copy_1 is
not appended to the property set's name. If they are in different modules,
multiple definitions can have the same name. However, definition names must
be unique in each individual module.
Note
Definitions are always pasted into the root module. If the copied page set was
in a different module, or if it was cut instead of copied, then _copy_1 is not
appended to the page set's name. If they are in different modules, multiple
definitions can have the same name. However, definition names must be
unique in each individual module.
Note
Definitions are always pasted into the root module. If the copied TOC was in a
different module, or if it was cut instead of copied, then _copy_1 is not
appended to the TOC's name. If they are in different modules, multiple
definitions can have the same name. However, definition names must be
unique in each individual module.
Note
Definitions are always pasted into the root module. If the copied custom table
was in a different module, or if it was cut instead of copied, then _copy_1 is
not appended to the custom table’s name. If they are in different modules,
multiple definitions can have the same name. However, definition names must
be unique in each individual module.
Note
Definitions are always pasted into the root module. If the copied cross
reference was in a different module, or if it was cut instead of copied, then
_copy_1 is not appended to the cross reference's name. If they are in
different modules, multiple definitions can have the same name. However,
definition names must be unique in each individual module.
Deleting Properties
1. In Arbortext Editor, open your document and use the Styler menu to open a
stylesheet.
2. In Arbortext Styler, open the Elements list. Click on the plus sign ( + ) beside
the element with the context or condition whose properties you want to cut.
The element's contexts and associated conditions are displayed.
Note that you could also view and select a property set for this operation.
If you wish to delete the properties configured for a property set, select that
property set in the Property Sets list and proceed to the next step in this
procedure.
3. Select the object for which you want to delete the associated properties.
4. Select Edit ▶ Properties ▶ Delete. Arbortext Styler deletes the properties for the
selected uses.
This section describes how to manage headers and footers via your stylesheet.
337
Headers and Footers Overview
The process by which to add headers and/or footers to your document has three
principal steps:
1. Create Page Region objects for each type or format of header or footer you
may wish to reference in your document.
Identify the page regions as headers or footers by defining their position on the
page in the Position category for the Page Regions list.
Add any text content, graphics, numbering, fills or other information to each
object as required
2. Reference the page region(s) from a page type to create a page layout.
3. Reference the page type that includes the required header and/or footer from
the relevant page set.
From within a page set you specify the page type (layout) that should be used
for documents with single- or double-sided pages. You can also configure
different page types to be used at certain positions within the final document,
for example a page layout for the first page that differs from the rest of the
pages in the page set, or a page type that defines regions containing no content
for blank pages.
Here you have created a 1in high region, placed 1in from the left and right
edges of the page and 0.5in from the top of the page.
5. Navigate to the Text category. In the Type field, select Generated to indicate
you want the header to display text that is not the main content of the
document.
6. Choose Insert ▶ Generated Content to create a new Generated Content object.
Use the Edit button to open the Generated Text Editor. Add the header text
First page header in the center cell of the Generated Content object and
format it as required.
Navigate back to the Text category of the Page Regions list. Choose the
Generated Content object you have just created from the list in the Generated
Here you have created a 1in high region, placed 1in from the left and right
edges of the page, and 0.5in from the bottom of the page.
12. Navigate to the Text category. In the Type field, select Generated to indicate
you want the footer to display text that is not from the document source.
13. Choose Insert ▶ Generated Content to create the Generated Content object that
defines the footer text.
Create the footer text First page footer in the right cell of the Generated
Content object and use the Insert ▶ Page Number menu option to output the
page number in the left cell. Format both fields as required.
1. In the Generated Contents list , use the Insert ▶ Generated Content menu
option to create a new Generated Content object. Name it bodypage-
header.
2. Highlight bodypage-header, and click the Edit button in the list's
properties area to open the Generated Text Editor. Add the text Header for
test document in the center cell of the table.
3. Highlight the text you have just typed and choose the Format ▶ Font menu
option in the Generated Text Editor. The Modify Font dialog box opens.
4. In the dialog box, set the Bold field to Yes and the Color field to Red. Click
OK to save the changes and exit the dialog box. The text is now surrounded by
a _font tag pair.
5. Place your cursor in the right hand cell of the table. Choose the Insert ▶
Graphic menu option to open a directory browser with which you can navigate
to the logo you wish to display in the header.
6. Navigate to the required logo. Click Open to insert the graphic into the right
header cell, preceded by a _gentextgraphic tag.
7. Highlight the graphic, including the _gentextgraphic tag, and click Edit
▶ Modify Attributes to open the Modify Attributes dialog box for the graphic.
8. Scale the graphic if required. Click OK to save the changes and exit the dialog
box.
When a graphic is resized, it may cause a resize of the table cells. The text
may not be centred next to the logo. This will be corrected in the next step.
9. Highlight the text in the middle cell, including its _font tags, and choose the
Table ▶ Table Properties menu option. The Table Properties dialog box opens.
Click on the Cell tab.
1. In the Generated Contents list , create a new Generated Content object and
name it divnumbered-header.
Note that the All divisions field displays a list of all the divisions configured
for your stylesheet, if applicable. For example, if your stylesheet defines three
levels of the section element, the following entries will appear in the field:
section, section in section, and section in section in
section. You are permitted to select any of these recursive divisions to form
the target of your division reference.
4. Add any text you would like to appear either side of the division reference.
5. Choose File ▶ Apply and Close to save the change and exit the Generated Text
Editor. You will see that the read only field in the properties area of the
Generated Contents list describes the generated text settings you have made
for the Generated Content object.
You have now configured the content for your Generated Content object.
6. Assign the Generated Content object divnumbered-header to the page
region representing your header.
7. If you have not already done so, assign the page region representing your
header to the page type representing the layout of the pages that should display
your header.
8. Assign the page type to the relevant page set, if you have not already done so.
9. Choose the Preview ▶ Print menu option. You will see that the header is
displayed on the relevant pages of the previewed document.
1. In the Generated Contents list , create a new Generated Content object and
name it numbered-header.
1. In the Generated Contents list , create a new Generated Content object and
name it numbered-footer.
Refer to Adding Content to a Header or Footer on page 341 for an example of
how to create content for a header or footer.
2. Highlight numbered-footer then click the Edit button to open the
Generated Text Editor for the footer. Place your cursor in the right hand cell of
the footer table, then choose Insert ▶ Page Number. Arbortext Styler will add
the object FormattedPageNumber into the cell.
3. After FormattedPageNumber object, add a space, the word of and
another space, then choose Insert ▶ Final Page Number. The Final Page Number
dialog box opens.
4. Select Document to add the number of the last page of the entire document.
Click OK to exit the dialog box.
Arbortext Styler will add the object FinalPageNumber into the cell.
5. After the FinalPageNumber object, add a space and the word pages.
6. Choose File ▶ Apply and Close to save the change and exit the Generated Text
Editor. You will see that the read only field in the properties area of the
Generated Contents list describes the generated text settings you have made
for your footer.
You have now configured the content for your Generated Content object.
7. Assign the Generated Content object numbered-footer to the page region
representing your footer.
8. If you have not already done so, assign the page region representing your
footer to the page type representing the layout of the pages that should display
your footer.
9. Assign the page type to the relevant page set, if you have not already done so.
10. Choose Preview ▶ Print.
1. In the Generated Contents list , create a new Generated Content object and
name it cmpdnumbered-header.
Refer to Adding Content to a Header or Footer on page 341 for an example of
how to create content for a header or footer.
2. Highlight cmpdnumbered-header then click the Edit button in the
properties area to open the Generated Text Editor. Place your cursor in the
middle cell of the header table, then choose Insert ▶ Page Number. Arbortext
Styler will add the object FormattedPageNumber into the cell.
3. Choose File ▶ Apply and Close to save the change and exit the Generated Text
Editor. You will see that the read only field in the properties area of the
Generated Contents list describes the generated text settings you have made
for your header.
4. Assign the Generated Content object cmpdnumbered-header to the page
region representing your header.
5. If you have not already done so, assign the page region representing your
header to the page type representing the layout of the pages that should display
your header.
6. Assign the page type to the page set that formats chapters, if you have not
already done so.
7. Still in the Page Sets list, open the Page numbers category for the page set that
will format chapters.
8. Click the Edit button to edit the Format field. Arbortext Styler opens the Page
Number Format editor.
9. Place your cursor before the number object that already appears in the editor,
then choose the Insert ▶ Page Set Starting Division Number menu option.
Arbortext Styler inserts an icon with the section symbol, §, to represent the
division number.
This section describes how to manage tables of contents via your stylesheet.
351
Table of Contents Overview
Arbortext Styler supports three types of table of contents (TOC).
• Inline TOC: Setting an element or elements to generate an inline table of
conditions at any location in the output document.
• PDF bookmarks: Using a table of contents format object to contribute entries
as autogenerated bookmarks in PDF output - see Use for PDF bookmarks in
Tables of Contents List on page 774 for further information
• Online TOC: Using a table of contents format object to contribute entries to an
online TOC for chunked HTML outputs - see Use for chunked HTML outputs (
EPUB, HTML Help, and Web) in Tables of Contents List on page 774 for further
information.
The online TOC is the TOC that appears in the left hand frame of the browser
window when viewing the chunked HTML content.
All three types of TOC are configured using the same base method. The difference
in setting up the TOCs comes when you are defining where in final output the
TOC should occur. A summary of the process is given below:
1. Create a table of contents format object in the Tables of Contents list - this
object defines an overall TOC configuration:
• The scope of the TOC within the output document
• The element contexts that should form its entries and the levels at which
they should appear - any contexts of the title element can be included in a
TOC. See Customize Table of Contents Dialog Box on page 937 for
further information.
Note that settings of this type will not affect the online TOC for chunked
HTML outputs.
• Any custom numbering or generated text that should be applied to each
entry
• The overall appearance of the TOC - placement of numbers, indentation of
entries, and so on. See Table of Contents Format Details Dialog Box on
page 1052 for further information.
You can maintain as many TOC format objects as you like in your stylesheet.
Settings made in the Customize Table of Contents and TOC Format Details
dialog boxes may not have an effect in your document, if it is published to a
particular output format. The following table shows which TOC features affect
which outputs.
Editor Print/ PDF RTF All EPUB,
PDF book- HTML HTML
marks outputs Help, or
(inline Web
TOCs)3 (Web
TOCs)4
Customize TOC dialog box setting:
Titles to • • • • • •
include
Level1 • • x x5 • x
Custom • • •2 • • x
content
TOC • • • • • •
condition
All TOC • • x x5 • x
Format
Details
dialog
box
settings
1
The levels assigned to titles affect the formatting, not the position in the
hierarchy.
Note
Special formatting properties that specify that a title should look different in a
TOC to how it looks in the body of the document are ignored in chunked
HTML outputs (EPUB, HTML Help, and Web). These online TOCs are
generated by the chunker, which only makes reference to those settings that
determine which titles should be included
8. Start of HTML chunk test - this example will extract titles whose parent
division appears at the top of an HTML chunk
Note
Only use HTML chunk tests in TOC conditions if the TOC is used for
chunked HTML outputs and is not used in any other outputs. HTML
chunk tests are always false in other outputs.
a. Click the New Chunk Test button to open the Start of HTML Chunk Test
dialog box.
b. Configure the following settings in the dialog box:
• At start of HTML chunk
• Element to test: Parent element
You will also see the footnote reference in the title, and a footnote will appear on
the page.
To avoid this situation, create the context footnote anywhere in
_sfe:xxxx for the relevant generated text element, and set the value of the
Hidden field in the Text category to Yes for that context. For example, if you
create the context footnote anywhere in _sfe:Table of Contents, it
will be matched for footnotes in tables of contents and neither the footnote
reference nor footnote will appear when the title appears in the table of contents.
As another example, you could create the context footnote anywhere in
_sfe:Gentext. In this case you will ensure that footnote references will be
hidden when the title appears in headers, footers, tables of contents, and cross
references.
In the Print Preview window, note that the each entry of the TOC has its page
number displayed to the left of the TOC entry text, and that there are no leader
dots separating the two.
377
Indexing Overview
A summary of the process to create an index is given below:
1. Create the index definition object that will format your index and define its
scope. Refer to Indexes List on page 777 for information.
2. Configure the element that will output the index in your output. Set its
parameters, for example the index definition object that will format it, and the
language to which it should be sorted. Refer to the Index Details Dialog Box
on page 985 for further information.
3. Configure the elements that define index terms, based on one of the models
listed below. Select the index definition object and define the roles each of the
elements will perform in the index term.
There are three methods for designating content as index terms for an index,
depending on the type of document you are working with:
• If your document type includes a set of index term elements, such as
primary, secondary, and tertiary, with a wrapper element such
as indexterm that encloses them, you will use the Element Model for
creating an index. See Creating an Index with Element Model Index Terms
on page 379 for information.
• Some document types, such as the CALS, allow for only one index
element, and you specify that the attributes of that element will form the
content of that index. Here you will create the index according to the
Attribute Model. See Creating an Index with Attribute Model Index Terms
on page 381 for information.
• Other document types, such as the Darwin Information Typing
Architecture (DITA), allow for only one index element and nest that
element to determine whether it is a primary, secondary, or tertiary index
entry. In this case you will follow the Nesting Element Model. See
Creating a Index with Nesting Element Model Index Terms on page 382
for information.
• You may also create See, See Also index terms or request that index
terms should be included under a non-alphabetic heading. Refer to
Creating See and See-Also Index Terms on page 384 and Configuring
Alternative Sorting of Index Terms on page 386 for further information.
A single index can contain index terms from different models. You can also
create index terms that might show up in multiple indexes.
Arbortext Styler provides flexibility when creating indexes:
• You can configure multiple indexes for a single document. You can scope the
indexes to appear within certain parts of the document, and include the index
Limitations in Indexing
The following output limitations should be noted when working with indexes:
• The index-see-also element is supported in all outputs. For RTF output,
you must manually enter the text See Also, or equivalent, as content of the
index term to ensure it is output correctly. This is a limitation of MS Word.
This can be accomplished via an output property in the definition of the
_sfe:IndexSeeAlso element.
• The index-sort-as element is not supported for RTF output. This is a
limitation of MS Word.
• Indexes are not displayed in EPUB output.
If you want to include index terms only under certain conditions, some extra
configuration is required. Refer to Conditional Inclusion of an Index Term in
an Index on page 394 for information.
5. On the Indexes tab, note that the index definition object Main Index is already
selected. The index term you’re styling will belong to all indexes set to be
formatted with this index definition object.
Create and select an alternative index definition object if required. Refer to
Indexes List on page 777 for further information.
6. On the Roles tab, configure the roles that the primary and secondary
elements should perform in the final index entry. Roles specify the level at
which each element’s content is output in the index entry.
Select each element in turn in the Available elements list, and click Add to
move it to the Index term elements list. Select a role for the element from the
Element role field.
For example:
• primary - Level 1 term
• secondary - Level 2 term
7. Choose OK to save the style and exit the dialog box.
8. Note that styles have been applied to the three elements as follows:
• indexterm - Index Term (Element Model)
• primary - Inline, Hidden
• secondary - Inline, Hidden
9. In Arbortext Editor, place your cursor directly to the left of the book element
at the end of the document. Insert an index element if one does not already
exist.
10. Back in Arbortext Styler, select the index element in the Elements list. Give
the element the Index style from the Style list, accessed via the EditStyle menu
option.
For example:
• ref1 - Level 1 term
• ref2 - Level 2 term
• ref3 - Level 3 term
• ref4 - Level 4 term
7. Click OK to save your settings and exit the dialog box.
8. In Arbortext Editor, place your cursor directly to the left of the rear element
at the end of your document. Insert an index element if one does not already
exist.
9. Back in Arbortext Styler, select the index element in the Elements list and
give it the Index style from the Style list, accessed via the Edit ▶ Style menu
option.
10. In the Index Details dialog box on page 985, select the index definition object
that will format the index from the Index drop down list. Set the language in
which the index will be sorted from the Language field.
11. Select Preview ▶ Print to view the new index in your document.
If you want to include index terms only under certain conditions, some extra
configuration is required. Refer to Conditional Inclusion of an Index Term in
an Index on page 394 for information.
4. On the Indexes tab, note that the index definition object Main Index is already
selected. The index term you’re styling will belong to all indexes set to be
formatted with this index definition object.
Create and select an alternative index definition object if required. Refer to
Indexes List on page 777 for further information.
5. Back in Arbortext Styler, select in the Elements list the element that will
output the index in your document. Give the element the Index style from the
Style list, accessed via the Edit ▶ Style menu option. The Index Details dialog
box on page 985 opens.
6. In the Index Details dialog box, select the index definition object that will
format the index from the Index drop down list. Set the language in which the
index will be sorted from the Language field.
7. In Arbortext Editor, insert the element that should output the index at the
required location in your document.
8. Back in Arbortext Styler, select Preview ▶ Print. In the Print Preview window,
note that the entries in your index have been output in three levels as expected.
9. Repeat steps 4 and 5 for the index-see-also element, giving it the role of
See also.
Here you have set up your see-also elements, which specify an alternative
subject that you can refer to for information on a subject that is listed in the
index.
10. Back in Arbortext Editor, add a second paragraph of text after the first one,
and mark it up with index entries as shown below:
The object of this final section is to apply the formatting to output the index as a
trademark citation:
All the contexts listed below should be given an Inline structure in Breaks
category to ensure they do not start a new line.
This section describes how to manage custom tables via your stylesheet.
403
Custom Table Styling Overview
When you style elements to be displayed as a custom table in Arbortext Styler,
you enable the elements that define that table to be edited using Arbortext Editor's
Table Editor, as well as to be formatted as a table in other outputs. See Custom
table overview in Arbortext Editor help for details on custom tables.
If you are developing a modular stylesheet, it is recommended that you keep the
custom table definition and the elements that are part of the custom table in the
same module. This helps prevent the accidental deletion of part of the custom
table definition and similar errors. You can use the Tools ▶ Validate Stylesheet
feature to troubleshoot problems with custom tables.
The basis of a custom table is the Custom Table style and the Custom Table
object, listed in the Custom Tables list . Note that you only apply the Custom
Table style to the element that is designated the base element for the custom table
in Arbortext Styler. Once other elements are subsequently assigned a role in a
custom table, Arbortext Styler creates a context for those elements with the
assigned role in the Style column of the Elements list. For example, an element to
which you have assigned the Row role for a custom table would have the
following style for its context: Row in custom table. The Custom Table
object contains the role definitions for the elements that make up your custom
table, plus any formatting properties you wish to have applied.
Note
An element's role in a custom table in specific contexts supersedes any
semantics normally associated with the element's assigned style. For example,
assume that you apply the Link style to an element and also assign it a role in
a custom table other than Table. When that element is in the context of the
custom table, the element does not act as a link.
You can format any number of elements as custom tables in your document type.
Note
You can also designate elements to comprise a custom table for editing and
formatting using the document type configuration file (.dcf file). See
Defining custom tables in Arbortext Editor help for details. However, when
you are using a stylesheet, the styling of those elements in the stylesheet
overrides the settings in the .dcf file.
See Document Type Configuration Files in Arbortext Editor online help for
further information about document type configuration files.
Note
If cells are defined, they must either be styled inline or be configured as
cells in the custom tables dialog box to ensure the correct effects. See
Custom Tables - Cells Category on page 863 for information.
• You can also identify elements as the table title or header row, although this is
optional.
• You can generate cells for the table via XPath.
• You can assign multiple elements to the table, cell, or header cell role. The
other custom table roles can only be assigned to one element for each custom
table.
• You may specify an order for columns that differs from the order in which the
cell elements appear in the document.
8. Select the element that should form the basis of the table from the Available
Elements list, in this case the authorgroup element.
9. Click Add to add the element to the Custom table elements list. Arbortext
Styler automatically assigns the role of Table to this element.
Note that the advice window at the bottom of the window now tells you that
you need to specify the required Row element for this custom table.
Navigate to the Elements list and locate the authorgroup element. You
will see that the element has been assigned the style Custom Table.
10. Navigate back to the Custom Tables list and refer to the Available Elements list
for your custom table. It now contains a list of those elements in the stylesheet
that are permitted as children of the authorgroup element. Choose
author and click Add to add it to the Custom table elements list. In the
Custom table elements list, click on the Role dropdown list and select Row.
13. If required, you can also use the other property categories in the Custom
Tables list to format your custom table:
• Cells category on page 863 — generate cells via XPath and confirm cell
order.
• Header Cells category on page 864 — generate header cells via XPath and
confirm header cell order.
The Available Elements list is populated with elements that can be used for
cells in the new row.
8. Click back to the Elements list and locate the glossentry element. You
will see that a new context glossentry in glosslist has been created,
and that the context has been assigned the style Row in custom table.
9. Back in the Custom Tables list, select glossterm from the Available
Elements list and click Add to add it to the Custom table elements list. Click
on the Role dropdown list and select Cell.
10. Click back to the Elements list and locate the glossterm element. You will
see that a new context glossterm anywhere in glosslist has been
created, and that the context has been assigned the style Cell in custom
table.
11. Back in the Custom Tables list, select glossdef from the Available Elements
list and click Add to add it to the Custom table elements list. Click on the Role
dropdown list and select Cell.
12. Click back to the Elements list and locate the glossdef element. You will
see that a new context glossdef anywhere in glosslist has been
created, and that context has been assigned the style Cell in custom
table.
13. Note that, if required, you can also use the other property categories in the
Custom Tables list to format your custom table:
Example: Generating custom table cells and header rows via XPath
Using this example you will create a custom table based on the PartList
element, with rows based on the Part element. The columns in the rows are
based on the following document elements and attributes:
• Number
• The type attribute of the Part element
• Weight
• The unit attribute of the Weight element
• Description
You will also generate header rows for the table.
1. In your source document, add a PartList element, with Part elements as
its children. Create child elements Number, Description, and Weight
for Part. Give the elements some content.
Give a value to the type attribute of the Part element.
Give a value to the unit attribute of the Weight element.
2. Open your stylesheet for edit.
Click OK to exit the dialog box. The generated cell definition Part-type
appears in the Generated Cells field and at the end of the Cell Order field.
8. Create a second generated cell definition using the Generated Cell dialog box
as above. Configure it to extract the content of the unit attribute of the
Weight element:
• Name: user defined, e.g. Weight-unit
• XPath: Weight@unit
Click OK to exit the dialog box. The generated cell definition Weight-unit
appears at the end of the Generated Cells and Cell Order fields.
9. In the Cell order field, select Part-type and use the up arrow to move it to
the second position in the list. Select Weight-unit and move it up to follow
Weight.
The order of the columns is now:
• Number
• Part-type
• Weight
• Weight-unit
• Description
Bear in mind these general guidelines when working with custom tables:
• Column reordering using generated cells is not supported in any format of
stylesheet exported from Arbortext Styler.
• If all cells within the table row of a custom table are generated, the table will
always be shown in markup form in Editor view. It will not be displayed as a
table.
The command will return the string that will become the generated cell’s
content.
4. To test an expression that will generate a header cell and its content, place the
cursor inside the header row element and use the command shown above. If
there is no header row element, place the cursor just inside the table element
and use the command.
Note
Column reordering is not supported in any format of stylesheet or template
exported from Arbortext Styler.
1. From the Custom Tables list , select the Custom Table object whose
background color you want to configure.
2. Go to the Background color category.
3. In the Body rows background color repeating pattern field, configure the
following settings for the default component:
• Number of rows: 1
• Color: click the color picker and select White.
You will need to click the Add Component button to access the fields.
4. Click Add Component again. A second set of Number of rows and color fields
appears.
5. For this second component, configure the following settings:
• Number of rows: 2
• Color: click the color picker and select Blue.
6. Preview your document for print or PDF. You will see that any elements styled
via the selected Custom Table object will display the background color pattern
you have configured, and that this pattern will repeat in tables consisting of
more than three body rows.
This section describes how to manage footnotes and endnotes via your stylesheet.
421
Footnotes Overview
The method you use to develop footnotes in Arbortext Styler depends on your
particular document type, since the elements available in your document type and
the model your document type uses for footnotes determine how footnotes can be
formatted. Note that footnote formatting can only be applied to element contexts -
you cannot apply footnote formatting to property sets or conditions.
Arbortext Styler recognizes the following four types of footnote-related elements:
• Footnote Content and Reference - This type of element contains the footnote
body and occurs at the reference location. It generates a unique reference mark
and the associated footnote on the page in the document where the element is
located. If you want to cross reference this type of footnote, it must contain an
ID equivalent attribute.
• Footnote Cross Reference - This type of element is a reference to an existing
Footnote Content and Reference element. It uses an IDREF, IDREFS, or
CDATA attribute to reference the existing footnote and generates the same
reference mark as the referenced footnote. It does not generate a footnote.
• Footnote Content - This type of element just contains the footnote body and
must be referenced through an ID equivalent attribute. It does not generate
either a reference mark or a footnote at the place it occurs in the document.
The element can occur anywhere in the document.
• Footnote Reference - This type of element references a Footnote Content
element through an IDREF, IDREFS, or CDATA attribute. It generates both a
unique reference mark and the referenced footnote on the page in the
document where the reference element is located. If you want to generate
multiple unique instances of the same footnote, this element could also
reference a Footnote Content and Reference element.
Note
While you can use a IDREFS attribute to reference a footnote, each
footnote reference element should only reference a single footnote.
Note
Duplicates are not merged when publishing to HTML outputs.
Footnote Contexts
Footnote formatting can only be applied to element contexts. There are three
contexts associated with an element that is styled as a Footnote, and (optional)
formatting applied to each of these contexts will affect different parts of the
footnote or its content:
1. Original context (for example, footnote everywhere else) -
Formatting applied to the original footnote context only affects the associated
reference mark.
2. Special footnote context (for example footnote everywhere
(Footnote Area Properties) - This context is created automatically
by Arbortext Styler when an element is given the Footnote style to specify that
it is responsible for footnote generation. The context is, however, removed if
the element is not intended to generate a footnote, only a reference mark.
Formatting applied to this special context only affects the footnote itself, not
the reference mark, including the footnote text content if no formatting has
been applied to the special footnote paragraph context. You can apply different
formatting for the footnote area context to different properties. For example,
you could format the footnote area differently for Print/PDF and HTML outputs.
3. Special footnote paragraph context (for example para (first in
parent) anywhere in footnote) - This context is created
automatically by Arbortext Styler when an element is given the Footnote style.
The context is given the Inline style to ensure that the first paragraph (i.e. that
which contains the footnote content) in the element given the Footnote style
Note
If you elect to have footnote numbering start at a particular level of nested
element, numbering will be restarted at all contexts of that element at the
same level. For example, if you specify that numbering should restart at
the section in section context, it will also restart when Arbortext
Styler encounters any similar contexts at the same level, for example:
• section in section
• first section in section
• not first section in section
• section in section in preface
3. Click OK to save your changes and exit the Footnotes dialog box.
4. Select the regular context for the footnote element in the Elements list.
5. Assign the desired formatting properties for the footnote reference mark. You
can assign different properties to different types of output by selecting options
from the Outputs to edit list.
14. Click File ▶ Apply and Close to save the changes and exit the Generated Text
Editor.
15. In Arbortext Editor, create a footnote in the document as described in the
section Creating an Inline Model footnote above, preferably on a page other
than the first one. Give its id attribute the value footnote1.
16. Locate the first paragraph in the abstract element at the beginning of the
document and insert a footnoteref element in the place in the text at
which you wish the cross reference to appear. In the Modify Attributes dialog
box that appears when you insert the element, give the element the target
attribute linkend=”footnote1”.
17. In Arbortext Styler, choose Print ▶ Preview. In the print preview window, you
will see that the generated text See footnote page x has been inserted in
superscript in the place in the document where you inserted the
footnoteref element. If you click the page number shown in the link you
will be taken to the page in the document that contains the original footnote.
Note
If you elect to have footnote numbering start at a particular level of nested
element, numbering will be restarted at all contexts of that element at the
same level. For example, if you specify that numbering should restart at
the section in section context, it will also restart when Arbortext
Styler encounters any similar contexts at the same level, for example:
• section in section
• first section in section
• not first section in section
• section in section in preface
3. Select the regular context for the footnoteref element in the Elements list.
4. Assign the desired formatting properties for the footnote reference mark. You
can assign different properties to different types of output using the Outputs to
edit list.
7. Select the fn[@id] context in the Elements list. Note that it is set to Hidden
in the Text category - this is because the element itself should not be displayed
if the id attribute is present, it should merely be identified as a container for
footnote content.
3. Select the regular context for the fn element in the Elements list.
4. Assign the desired formatting properties for the footnote reference mark. You
can assign different properties to different types of output using the Outputs to
edit list.
5. Select the special (Footnote Area Properties) context for the fn
element in the Elements list.
6. Assign the desired formatting properties for the footnote body. You can assign
different properties to different types of output using the Outputs to edit list.
7. Select the xref[@type='fn'] context for the xref element in the
Elements list.
8. Assign the desired formatting properties for the footnote reference mark. You
can assign different properties to different types of output using the Outputs to
edit list.
9. Select the xref[@type='fn'] (Footnote Area Properties)
context for the xref element in the Elements list.
10. Assign the desired formatting properties for the footnote body. You can assign
different properties to different types of output using the Outputs to edit list.
24. In the first paragraph in the topic, insert an xref element in the place in the
text at which you wish the footnote reference mark to appear. Give it attributes
and values as shown below:
Attribute Value
linkend footnote ID, e.g. fn1
Follow standard cross reference syntax for the
document type to identify the relevant footnote
object. This example is written following DocBook
guidelines.
role fn
25. In Arbortext Styler, choose Preview ▶ Print again. In the print preview
window, note that the reference marker for the footnote appears at the place in
the document where you inserted the xref element, and is marked with the
callout character, e.g. #. The footnote appears at the bottom of the page that
contains the footnote reference, and is marked with the callout character.
Note that the footnote context is set to be numbered. Leave this setting as it is.
7. Select the footnote[@label] (Footnote Area Properties)
context in the Elements list.
8. Navigate to the Footnote Number dialog box , as described above.
9. Click the Edit button next to the XPath override for current level field. The Edit
XPath Override for Current Level dialog box opens.
10. Select XPath expression returns a string in the Expression type field, then add
the expression @label in the Expression field. Click OK to exit the dialog
box. Here you have specified that the value of the label attribute should be
used as the marker for the footnote, when it has been specified.
11. Click OK to exit the Footnote Number dialog box. Note that the value of the
Add before element content field is now S..
12. In Arbortext Editor, create four footnotes in permitted locations in your
DocBook document, with the details as shown below:
You can see that the four footnotes have been counted together. In the next
step you will exclude the footnotes with character markers from the counting
scheme, thus outputting the two numbered footnotes with markers 1 and 2.
14. Select the footnote everywhere else (Footnote Area
Properties) context in the Elements list. Navigate to the Generated text
category.
15. Navigate to the Footnote Number dialog box , as described above, and click
the Edit button next to the XPath override for current level field. The Edit XPath
Override for Current Level dialog box opens.
16. Select the XPath expression returns a string option, and enter the expression
shown below in the Expression field:
count(preceding::footnote[not(@label)])+1
Click OK to exit the dialog box. Here you have specified that the numbering
count for numbered footnotes should not include those that have the label
attribute specified.
17. Repeat the Preview ▶ Print action. You will see now that the reference marks
for the two numbered footnotes are now 1 and 2. They have been counted in
isolation from the footnotes marked with characters:
Note
There are limitations to restarting footnote numbering when you are working
with RTF output. Please refer to Differences in Output Support on page 1084
for information.
If your document is set up to output two types of footnote, for example both
numbered footnotes and footnotes whose reference mark is generated from the
value of an attribute, you may need to adjust the settings for the non-numbered
footnotes if you want to also implement the numbering restart option detailed
here. If you wish to exclude the non-numbered footnotes from the counting
scheme in each scoped element, you cannot use an XPath expression to set this (as
described in Generate a combination of numbered footnotes and footnotes with
reference marks based on attribute values above) in addition to selecting the
numbering restart option. You must use a FOSI source edit to achieve the same
effect.
For example, suppose you have two footnotes contexts set up in your stylesheet:
• footnote[@label]: footnotes that include a value for the label attribute -
marked with the value of the label attribute
• footnote everywhere else: all other footnotes - numbered
Endnotes Overview
The method you use to develop endnotes in Arbortext Styler depends on your
particular document type, since the elements available in your document type and
the model your document type uses for endnotes determine how endnotes can be
formatted. In general terms, you must determine the element in the document that
is to be used as the scope for a set of endnotes. You must also determine where a
collection of endnotes should appear in your document, usually at the end of the
scoping element.
Arbortext Styler recognizes the following two types of endnote models:
• Inline Model - This model uses an Endnote element that both contains the
endnote body and generates the endnote reference mark at the place in the
document where the element is located.
• Reference Model - This model uses an Endnote element and an Endnote
Reference element. The Endnote element contains the endnote body: it can
appear anywhere in the document and must have an ID equivalent attribute.
The Endnote Reference element generates the endnote reference mark at the
place in the document where the element is located. It references the Endnote
element through an IDREF, IDREFS, or CDATA attribute.
Do not add any punctuation to the Number format, as these settings are for the
reference mark that is located inline at the reference location. Punctuation is
generally not used for a reference mark.
8. In the Number Details dialog box, you have the option to change the Number
style if you wish. Make any changes you require to this field then click OK to
save the settings and exit the dialog box.
Note
If the chapter element had multiple contexts, the previous procedure
will have created multiple conditions – one for each context. In this case,
you can use copy and paste to apply the formatting properties set in this
procedure to all of those conditions, as follows:
• Select the first condition you added.
• Follow steps 1-9 of this procedure for that condition.
• With that condition still selected in the Elements list, select the Edit ▶
Properties ▶ Copy menu option.
• Select each of the other conditions in turn and for each one select the Edit ▶
Properties ▶ Paste menu option to apply the copied formatting properties.
2. In the Generated Text Editor, select Insert ▶ User Formatting Element ▶ (new).
3. In the New User Formatting Element dialog box, enter endnotes-title.
Click OK to close the dialog box.
4. In the Generated Text Editor, enter the title text for your endnote collection in
the _ufe:endnotes-title element. Use the Format ▶ Font menu option
to style the title text as required.
5. Move the cursor after the _ufe:endnotes-title element and select
Insert ▶ User Formatting Element ▶ (new).
Note that in the sample generated text markup shown above, a new line has
been included before and after the text in the content of the
_ufe:endnotes-title element, via the Format ▶ New Line menu option.
This improves the appearance of the Endnote collection at the end of the
chapter.
9. In the Generated Text Editor, select File ▶ Apply and Close to save the
generated text setting and exit the editor.
10. Select the _ufe:endnotes-title element in the Elements list and assign
the Block style via the Edit ▶ Style menu option. Make any desired changes to
the formatting properties of the User Formatting Element, for example you can
reference some of the title-related property sets available from the Property
sets category.
11. Select the _ufe:endnotes element in the Elements list and style it as
desired. Since it is just a container for the endnote collection, just assigning
the Block style to the element via the Edit ▶ Style menu option is usually
sufficient.
Note
If the chapter element had multiple contexts, the previous procedure
will have created multiple conditions – one for each context. In this case,
you can use copy and paste to apply the formatting properties set in this
procedure to all of those conditions, as follows:
• Select the first condition you added.
• Follow steps 1-9 of this procedure for that condition.
• With that condition still selected in the Elements list, select the Edit ▶
Properties ▶ Copy menu option.
• Select each of the other conditions in turn and for each one select the Edit ▶
Properties ▶ Paste menu option to apply the copied formatting properties.
2. In the Generated Text Editor, select Insert ▶ User Formatting Element ▶ (new).
3. In the New User Formatting Element dialog box, enter endnotes-title.
Click OK to save the UFE and exit the dialog box.
4. In the Generated Text Editor, enter the title text for your endnote collection in
the _ufe:endnotes-title element. Use the Format ▶ Font menu option
to style the title text as required.
5. Move the cursor after the _ufe:endnotes-title element and select
Insert ▶ User Formatting Element ▶ (new).
6. In the New User Formatting Element dialog box, enter endnotes. Click OK to
save the UFE and exit the dialog box.
7. Move the cursor inside the _ufe:endnotes element and select Insert ▶
Element Content.
8. In the Insert Element Content dialog box, select to insert the Element and
content of the footnoteref element for a Specific occurrence of All
occurrences within chapter. Click OK to save the setting and exit the dialog
box.
This section describes how to manage generated text such as titles, numbering,
and list markers via your stylesheet.
463
Generated Text Overview
Generated text is content that is automatically added to elements in a document in
Arbortext Editor. Generated text is defined and configured in Arbortext Styler.
For example, you might want to add the word Chapter and a chapter number
before the content of chapter titles.
Generated text refers to:
• Text, graphics, and symbols that display before and after element content - see
Adding Generated Text to Elements on page 465 for information.
• Change bars - see Adding Change Bars on page 524 for information.
• Headers and footers - see Adding Headers and Footers to a Page Set on page
198 for information.
• Numbers and bullets - see Numbering List Items on page 474 for information.
• Numbering and titles - see Advanced Formatting of Titles and Numbering on
page 495 for information.
• Cross reference text - see Cross Reference and Linking Overview on page 550
for information.
• Repeating titles - see Creating Repeating Titles on page 522 for information.
• Tables of contents - see Styling an Element to Generate a Table of Contents on
page 357 for information.
• Indexes - see Indexing Overview on page 378 for information.
You can configure generated text in Arbortext Styler using the Generated Text
Editor, which can be accessed from:
• The Add Text Before and Add Text After fields on the Generated text property
categories for elements, contexts, conditions, and property sets.
• The Edit button for the Format field in the Page numbers category for page
sets.
• The Edit button in the properties area for headers and footer objects.
• The Edit button in the properties area for custom table objects.
When you have created generated text for an element or context, you have the
option to translate it. Arbortext Styler sees each piece of generated text configured
in your stylesheet as a translation unit. You can specify whether a translation unit
should be translated, or if it should be left in its source language when the
document is output.
Please refer to Maintaining Translations of Generated Text on page 528 for
information on how to implement translations of generated text.
Please refer to Managing Translation Units on page 532 for information on
managing translation units and their translation status in your stylesheet
Note
Arbortext Styler allows you to automatically generate numbers for title and
listitem elements.
Note
The menu item is only enabled if the first tag to the left of the cursor is an
element (an element from the user’s document type, an undeclared
element, a SFE or a UFE) or a _gentextgraphic.
8. In the dialog box, select pathname from the Attribute Name drop down list, to
specify that the attribute you extract from the graphic in the source document
should be used as the value of the pathname attribute in the gentext graphic.
9. Click OK to save the change and exit the dialog box. Arbortext Styler inserts
an AttributeModifier element into the generated text, with the attribute
pathname included but not given a value. You will set the value of the attribute
in the next steps, by using the value of a different attribute from an alternative
element in the source document.
15. Click File ▶ Apply and Close to save the generated text and exit the Generated
Text Editor. The Before-text field in the Generated text category now contains
details of the generated text setting.
16. Click Preview ▶ Arbortext Editor - the graphic that appears in the last chapter
of the document now also appears in the title of that last chapter.
Note
If the XPath expression you entered in the attribute content generator fails, or
would be false if evaluated as a boolean expression, the target attribute's value
will not be changed.
Note
You can change all five of the default bullet characters in this way if you wish.
Note that any bullets in your document that were set to use the original
characters will have their bullets changed to the new styles automatically once
the changes to the Bullet dialog box have been saved.
You can change the default font characteristics of bullets, thus giving you the
option to apply very specific bullets to match any specific document styling
requirements.
You can change the default bullet characters for list items. The bullet dialog
displays 5 default bullet characters, but you have the option to change the
displayed characters by selecting others from the symbols list and using the new
characters in your list.
Note: ensure that the Outputs to Edit field is set to Print/PDF for each element,
as numbering of this type only applies to print and PDF documents.
6. In the Page Sets list , select the main body page set. Navigate to the
Page types category and note that the page set is set to use the main body
right and main body left page types.
7. In the Page types list , select the main body left and main body
right page types. Note that they are set to use the main footer footer
object.
8. In the Page regions list , select the main footer footer object. Go to the
Text category and note that the footer object is set to display content generated
by the page number center Generated Content object.
9. In the Generated Contents list , select the page number center object.
Click the Edit button in the edit pane to open the Generated Text Editor.
10. Carry out the following steps to set the numbering for the footer:
a. Add the text Page, followed by a space, before the
FormattedPageNumber element.
b. Add a space, followed by the text of, followed by another space, after the
FormattedPageNumber element.
6. Repeat steps 1–3 and 5 for the remaining divisions in your document. In
addition to the semantic division elements with their generated titles, you
should now have one UFE (_ufe:title) and a context of that UFE within
each semantic division element/context.
7. Choose the Preview ▶ Print menu option. In the Print Preview window, note
that your divisions appear in the correct order and that each one has its own
generated title.
8. If you want to number the divisions consecutively as well as creating their
titles, you will need to create a custom counter and assign it to each context of
Note
These steps will place the title after the graphic in the final output even though
it occurs before the graphic in the authored document.
Note
You must make this setting for all outputs, with the Outputs to edit field set
to Base (all outputs). If you do not hide the context for all outputs, any
cross references to the parent formal block (the figure element) will use
the numbering properties of the hidden title rather than the alternative,
generated title being created in this procedure. Although you are hiding the
element's content from output in its document location, you will be
reinserting it as the content of a User Formatting Element (UFE) in the
same table in a later stage in the procedure. As such it will be included as a
valid title for the table if you do not hide it completely.
2. Select the figure element in the Elements list, and navigate to its Generated
text category. Elect to create generated text to appear after the element's
content by clicking the Edit button next to the After-text field. The Generated
Text Editor opens.
3. Insert a UFE into the generated text by selecting the Insert ▶ User Formatting
Element ▶ (new) menu option, and creating a user-defined UFE, for example
_ufe:figure-title. Note that the UFE is displayed in pink tags, as it is
currently unstyled. See Highlight Unstyled Elements in a Document on page
36 for further information.
4. Inside the UFE, elect to insert the content of the title in figure context
by selecting the Insert ▶ Element Content menu option and configuring the
following settings in the Insert Element Content dialog box:
• Element selection: By name and occurrence-within-ancestor
○ Name: title
○ Occurrence: 1st
○ Within: figure
• Insert: Only content
5. Save the changes and exit the Generated Text Editor
6. Style the UFE as a title by selecting the Edit ▶ Style ▶ Title menu option in the
Elements list.
Note
If you would like to create separate lists of graphics and lists of tables in your
document, as tables of contents, you will need to set up the figure elements
in a slightly different way. Please refer to the example Create lists of tables
and graphics in Customizing the Content of a TOC on page 360.
This example describes how to create two separate numbering sequences for
figure elements in a document, where a figure can contain either a table
or a graphic. In the final output tables and graphics will be numbered according
to their own numbering scheme, and will display different labels.
1. In the Elements list, set the title element to be of Title style via the Edit ▶
Style menu option.
2. Set the figure element to be of Formal Block style. Arbortext Styler creates
a context for the title in a figure, i.e. title in figure, and sets it to
generate a number.
3. Create a condition for the title in figure context via the InsertCondition
menu option. In the Condition dialog box that appears, click the New Content
Test button to open the Content Test dialog box.
4. In the dialog box, configure the following settings:
• Element whose content to test: Ancestor (figure)
• Test types: Includes
Click OK twice to save the condition and exit the dialog boxes. Here you have
created a condition that the title in figure context will match if the
title is a child of a figure element that also contains a graphic
element.
5. In the Generated text category for the condition, select the Number option in
the Bullets and Numbers field to number the graphic titles. Click the Details
button in the Numbers and Bullets field to open the relevant title numbering
dialog box and configure the numbering for the title.
6. In the title numbering dialog box, make any changes to the formatting of the
number you desire, for example type the text Graphic, followed by a space,
in the Label field. Click OK to exit the title numbering dialog box.
7. Repeat steps 3–4 for a second condition that will match if the title is a
child of a figure element that also contains a table element. In this
instance, you will use the following settings in the Condition dialog box:
• Element whose content to test: Ancestor (figure)
• Test types: Includes
• Test depth: At any level
• Content to test for: table
You can also include a different prefix for the title's output for tables, for
example by typing the text Table followed by a space in the Label field.
8. When previewing or publishing you will now see that tables and figures are
numbered according to separate numbering schemes, and that table titles are
prefixed Table whilst the graphic titles are prefixed Graphic.
1. In the Elements list, select the orderedlist element and give it the List -
Numbered style via the Edit ▶ Style menu option.
2. Select the listitem element and give it the List Item style.
3. For each context of listitem in orderedlist:
a. Select the context
b. Create a condition that tests whether the language of the document is
Chinese, for example by creating an attribute test for the value of the
xml:lang attribute
c. Set the context to be numbered by navigating to the Generated text
category and selecting the Number option in the Numbers and Bullets field.
d. Click the Details button to open the List Item Number dialog box.
e. Select the desired Asian numbering style in the Number style field. For
example, if the value of the xml:lang attribute is ch, select the simp-
chinese-informal numbering style.
f. Click the Start at button to open the Start At dialog box.
g. In the dialog box, select the Fixed value option and enter 0 in the adjacent
field.
h. Save the change and exit the dialog box, then exit the list numbering
dialog box.
4. When previewing or publishing you will now see that lists based on the
orderedlist element all start at 0, and that if the document is set to use the
Chinese languages the numbering of the list is displayed according to the
simp-chinese-informal numbering scheme.
Note
There is a limitation in FOSI print/PDF outputs that you can only alter the
page number of the first page of the entire document, as described above. As
such certain implementations of numbering of this type will not work
correctly. For example, if the chapter everywhere context specifies to
set the starting page number to the value of its startpagenum attribute, and if
there are five chapters that all specify that attribute, you would expect each
chapter to start on the page indicated by that chapter's startpagenum attribute.
This will happen if you elect to publish via the XSL-FO and PTC APP
engines. In FOSI outputs the first page of the document, and any other place
where the Breaks category specifies Initial for the page number, will display
whatever the last chapter set as its starting page number.
Note
If you select Element Label and Number, you can configure the
required label for your chapter numbering in the Division Title Number
dialog box in step 4.
9. When previewing or publishing you will now see that the titles of the chapters
in your document display their name, followed by their number (and,
optionally, their assigned label).
Here you have specified that the reference mark will be output as a number.
Save the changes and exit the dialog box.
7. Select the footnoteref everywhere context, and elect to create
generated text for the context by clicking the Edit button next to the After-text
field in the Generated text category. The Generated Text Editor opens.
8. Wrap the CrossReference tag with a User Formatting Element (UFE) by
highlighting CrossReference and selecting the Insert ▶ User Formatting
Element ▶ (new) menu option. Create a user-defined UFE, for example
_ufe:reference-mark. Note that the UFE is displayed in pink tags, as it
is currently unstyled. See Highlight Unstyled Elements in a Document on page
36 for further information.
The inclusion of a UFE for the footnoteref everywhere context
permits you to add any formatting you wish for the endnote reference mark.
You can also give it a particular style, which allows you to control the
placement of the element in this particular context.
Save the changes and exit the editor.
9. In the Elements list, select the UFE you created and give it the Inline style.
6. Click File ▶ Apply and Close to save your gentext setting and exit the
Generated Text Editor. The Before-text field now shows the XPath expression
that will be used to generate the numbering for your document's paragraphs,
plus the punctuation you included:
10. Choose File ▶ Apply and Close to save the generated text setting and exit the
editor. The Before-text field now contains details of your generated text
setting:
Note
Graphics in generated text in tables must be configured for a specific type of
element to be visible in XSL outputs (EPUB, HTML File, HTML Help, and
RTF). A generated graphic will not appear if it is configured directly for the
entry context. You must insert a non-table element within the entry
context and configure the generated text for that context, for example p in
entry.
You can provide alternate text for graphics in generated text in PDF (with PTC
APP engine) and HTML outputs, to increase accessibility to content for screen
readers. Please refer to Alternate Text Support for Graphics on page 172 for
information.
If the graphic selected with this method is located in Arbortext Editor's current
graphics path, then just the filename will be inserted as the value of the
pathname attribute of the _gentextgraphic element. To edit the path,
choose Edit ▶ Modify Attributes for the _gentextgraphic element
Note
This method may generate a path for the graphic that will not work for all
stylesheet users.
It is recommended that you store all graphics referenced in stylesheets in a
directory that is included in all users' graphics path. You can then enter just
the filename as the value of the pathname attribute and the graphics will
appear for all users.
8. Choose File ▶ Apply and Close to save your generated text setting and exit the
editor. The Before-text field in the Generated text category now contains
details of the graphic you have referenced:
Graphic Conversion
Graphics that are inserted by the stylesheet must be in a format that needs no
conversion. For example, you may need to convert a CGM graphic to EPS format
and configure the stylesheet to insert the EPS file for output to PDF. You may
need to configure separate generated text for each required output format.
15. Choose File ▶ Apply and Close to save the gentext setting and exit the
Generated Text Editor The Before-text field now displays the symbol you have
selected.
29. Select the ElementContent tag in the second cell, and choose the Format ▶
Font menu option. The Modify Font dialog box opens.
30. Set Color to Red. Note that this font color will apply only to the text generated
by the ElementContent object, the rest of the generated text in the title
will inherit its formatting properties from the note element.
32. Choose File ▶ Apply and Close to save the gentext setting and exit the editor.
33. Choose Preview ▶ Print.
Note that the title of the first note in the document contains the selected
graphic on the left, and the content of the corpauthor element on the right.
Note
It is not necessary to substitute < for <, & for &, or "e;
for ".
Note
Certain XPath expressions may cause a considerable increase in the time taken
to process generated text. Please refer to XPath Performance on page 1078 for
information on the types of expression that may be problematic, and some
alternative ways in which generated text can be defined.
9. Choose File ▶ Apply and Close to save the generated text setting and exit the
editor. The description of the title in table anywhere in chapter
context contains the property Gentext: Repeating Title (yes) for
the selected output.
7. Click OK button to save the test and exit the dialog box. The New Condition
dialog box shows the new test in the Tests field.
8. Click OK to save the condition and exit the dialog box.
9. Highlight the new condition in the Elements list.
10. Go to the Generated text category.
11. Click the Edit button next to the Before-text field. The Generated Text Editor
opens.
5. Go to the Page Sets list , and select the mainbody-page page set.
Then you will be asked to confirm that you want to change the generated text
in the stylesheet and its modules to the new source (previously target)
language:
[A23974] Removing "en (English)" as the source language. Do you want to
remove the "en (English)" translations for all generated text in all
modules?
Example
In this example you will create a piece of generated text and save it to generate a
translation unit. You will confirm that the translation unit is marked as needing
translation. You will add a note for the translator.
1. In Arbortext Styler create a piece of generated text for an element or context in
your stylesheet. Apply the changes but do not exit the generated text editor
window. Arbortext Styler will create a translation unit and assign it a unique
ID, although you cannot see it.
2. Refer to the Translation ▶ Based on Text Content menu option in the generated
text editor window. You will see that the menu option is suffixed with
Arbortext Styler’s assessment of whether the translation unit needs translation,
for example Based on Text Content (Translate).
3. If you agree with this assessment, exit the menu. If you do not want the
translation unit to be included when you export generated text for translation,
choose the Translation ▶ Do Not Translate menu option. This will remain
checked in the menu until it is manually changed.
Refer to Turning Translations On and Off on page 535 for further information.
4. Choose the Translation ▶ Add Note menu option in the generated text editor
window to open the Add Translation Note dialog box on page 949. Enter your
note and exit the dialog box. Your translation unit will now display an icon
to confirm it is accompanied by a note.
Double click the icon of an existing note to edit it in the Translation Note
dialog box. See Translation Note Dialog Box on page 1055.
5. Apply the changes and exit the generated text window.
The next step in setting up translation of generated text is to export the generated
text for translation. Refer to Exporting Generated Text for Translation on page
537.
Note
If Arbortext Styler has regenerated any IDs, you must ensure that you export
your stylesheet for translation again to ensure all the new translation units
needing translation are included. You should also import any outstanding
translations before you add the module or they may not match.
XLIFF Files
An XLIFF file (type .xlf) is generated for each selected target language when
exporting generated text. A brief explanation of its content is given below:
file
One for each stylesheet module
date
The date of the XLIFF file was produced, i.e. when the generated text was
exported for translation
original
The name of the stylesheet module
source-language
Extracted from the Source Language field of the Stylesheet Properties dialog
box
body
Contains the translation units in the file, described in trans-unit elements
trans-unit
One for each translation unit (piece of generated text) marked as needing
translation in the stylesheet
id
The unique ID of the trans-unit in the XLIFF file. This matches the ID of
the translation unit in the stylesheet.Arbortext Styler will match the two IDs
when it imports the translated XLIFF file to place the translation into the
correct translation unit.
source
The content of the source translation unit. Markup in the original generated
text is replaced with parameter markers. Descriptions of the parameters that
represent the markup are described in the context context-type=
”paramnotes” entries later in the XLIFF file.
target
The translation of the generated text content. For elements that have not been
previously translated, the entry for target is the same as for source.
Translation Statistics
You may need to check the status of translations of generated text. You can find
this information in several places.
local stats[]
if (ret == 0)
{
response("Call to stylesheet_gentext_lang_stats failed");
}
else
{
response("Stats: total=$total, current=$current($ecurrent), not current=$notcurr
}
local stats[]
ret = stylesheet_import_xlf('c:\test.xlf', 0, stats, doc);
if (ret == 0)
{
response("Call to stylesheet_import_xlf failed");
}
else
{
response("Import results: xliff total=$xlfTotal, stylesheet total=$ssTotal
}
}
This section describes how to manage cross references, links, and dynamic link
information via your stylesheet.
549
Cross Reference and Linking Overview
Arbortext Styler lets you configure cross references and links for your document,
whereby you can create links between elements in the document, or between
elements in multiple documents. There are three principal ways in which this can
be achieved:
• Cross reference - Configuring elements to automatically generate the text upon
which the user will click. Allocate the Cross Reference style to the element
that should generate the reference. Note that the target element of a cross
reference of this nature must fall under one of the following two categories:
○ An element styled as Division or Formal Block that has an ID and a title.
The target ID you are cross referencing can either appear on the division or
formal block element itself or on its title element.
It is possible to cross reference an element that does not have a title, but
this must be achieved via a non-standard process. See Creating Cross
References and Cross Reference Formatting on page 551 for further
information.
Note
You must ensure that you create and/or maintain a context for the use
of the title element in the element being cross referenced. For example,
if you are cross referencing a chapter, you must maintain the context
title in chapter in Arbortext Styler, and ensure that the
occurrence of chapter in your document includes an ID.
If the Cross Reference style had already been applied to the element when you
selected it in the previous step, you will need to use the Edit ▶ Edit Style Details
menu option for the element to access the Cross Reference Details dialog box.
6. Choose Label Number Text Page as the format, then click OK to exit the
dialog box. This will advise Arbortext Styler to output the label, the division
number, and the text content of the title, as well as the page number in which
the title appears, as the text of your cross reference. This is a default cross
reference format already configured for the axdocbook.style stylesheet -
there are others that define other content for the reference, or you may create
your own format. Refer to Creating a Cross Reference Format Object on page
551 for further information.
Refer to the Generated text category for the xref context - you will see that
details of the cross reference formatting applied to the element are shown in
the After-text field. Click the Edit button to open the Generated Text Editor and
elect to modify the attributes of the CrossReference object. You will see
that the settings you made in previous steps of this procedure are shown in the
Modify Cross Reference dialog box:
The Modify Attributes dialog box for the xref element opens.
8. Type intro as the value of the linkend attribute, and then click OK, thus
specifying the target ID of the cross reference.
9. Click to the right of the first chapter element in the document, and then
choose Edit ▶ Modify Attributes.
10. Type intro as the value of the id field, and then click OK.
11. In Arbortext Styler, select the chapter element in the Elements list, choose
Division as its style, and then click OK in the Division Details dialog box.
12. Select the title in chapter context in the Elements list.
13. Select Print/PDF output from the Outputs to Edit list, then go to the
Generated text category for the context.
14. Check the Number option in the Numbers and bullets field if this has not
already been done, then click the Details button to open the Division Title
Number dialog box. In the next steps you will set the format of the title when it
appears in a chapter, which in turn will be shown as the text of your cross
reference.
15. In the Label field, type Chapter followed by a space.
16. If you want punctuation to appear after the number in the cross reference, but
not in the chapter title when it appears in the body of the document, enter it in
the Suffix (does not appear in references) field in the dialog box. For example,
if you want a chapter title to read 1. Chapter 1 but the reference mark to
simply show Refer to Chapter 1 Introduction, page 1 (i.e. with no period),
enter the period character in the Suffix (does not appear in references) field.
If the Link style had already been applied to the element when you selected it
in the previous step, you will need to use the Edit ▶ Edit Style Details menu
option for the element to access the Link Details dialog box.
6. In Arbortext Editor, add a new para within abstract, and add the
following sentence: Refer to the following section for more
information, adding the link tag around the words following
section:
The Modify Attributes dialog box for the link element opens.
7. Type intro as the value of the linkend attribute, and then click OK to
close the dialog box, thus specifying the target ID of the link.
8. Click to the right of the first chapter element in the document, and then
choose Edit ▶ Modify Attributes.
9. Type intro as the value of the id field, and then click OK.
Note that the expression assumes the context node for the expression is the
title element. The expression will select subtitle if it exists, or title
if a subtitle does not exist.
Click OK to save the content setting and exit the dialog box. Click File ▶ Apply
and Close to exit the Generated Text Editor.
11. In the Elements list, give the xref element the Cross Reference style if this
has not already been done, via the Edit ▶ Style menu option. If the element
already has this style, choose the Edit ▶ Edit Style Details for the element. In
either case, the Cross Reference Details dialog box opens. Configure the
settings for the cross reference object as shown below, then click OK to exit
the dialog box.
• Reference attribute - linkend
• Select a cross reference format - Label Number Text
Here you have styled any cross references that point to elements other than
chapter such that they will use the Label Number Text format to output
the chapter number and title text as the link text.
12. Still in the Elements list, create a condition for the xref element, via the
Insert ▶ Condition menu option. The Condition dialog box opens.
13. Choose the New XPath Test button to open the XPath test dialog box. In the
expression field, enter the XPath expression shown below:
name(id(@linkend))='chapter'
7. In the Elements list, select the xref element. This element has the Cross
Reference style in the default stylesheet for the sample file - if this is not the
case, use the Edit ▶ Style menu option to assign that style to the element.
8. Navigate to the Generated text category and click the Edit button next to the
After-text field to open the Generated Text Editor.
9. Place your cursor to the right of the CrossReference element and click
Edit ▶ Modify Attributes to open the Modify Cross Reference dialog box.
10. In the Cross reference format field, select caution. Click OK to exit the
dialog box.
11. Click FileApply and Close to save the change and exit the editor. The After-text
field shows the change you have made to the format of the cross reference:
12. In the Elements list, choose Insert ▶ Element to create a new element. Here you
are creating a User Formatting Element (UFE), so name the element
accordingly, for example _ufe:caution-title.
13. Assign the Title style to the UFE, via the Edit ▶ Style menu option.
14. Choose Insert ▶ Context to create a new context for _ufe:caution-
title. The New Context dialog box opens.
15. Click the New Ancestor button and select caution from the ancestor drop
down menu. Note that field at the top of the dialog box now reads
_ufe:caution-title anywhere in caution.
28. In Arbortext Styler, choose PreviewPrint. In the print preview window that
appears, note that the cross reference in the abstract element is updated to
read Refer to caution, page 3 for further information. Click on the cross
reference to be taken to the caution element.
Note
If you are using a UFE to output the title, as described in the bullet point
above, the title must be hidden explicitly, not by property set reference.
_sfe:InternalLink
This generated text tag represents an internal link. It is listed with other SFEs in
the Elements list. It is styled as a Link and contains the document target attribute
targetId. Whilst you are not permitted change the style or the style details for the
element, you can change its formatting properties. When inserted into generated
text via the generated text editor to create a link, the element contains two
children, each of which may have content. The markup shown below is inserted
by Arbortext Styler:
<_sfe:InternalLink>
<_gte:LinkTarget>xxx</_gte:LinkTarget>
<_gte:LinkContent>yyy</_gte:LinkContent>
</_sfe:InternalLink>
Where:
_gte:LinkTarget should define the target of the link. xxx can be any
combination of attribute content, element content, an XPath expression or
authored text. This tag is expected to have content - you will not be permitted to
exit the Generated Text Editor if you attempt to save this tag without content, or
with just whitespace.
_sfe:ExternalLink
This generated text tag represents an external link. It is listed with other SFEs in
the Elements list. It is styled as a Link and contains the web target attribute href.
Whilst you are not permitted change the style or the style details for the element,
you can change its formatting properties if you wish. When inserted into
generated text via the generated text editor to create a link, the element contains
two children, each of which may have content. The markup shown below is
inserted by Arbortext Styler:
<_sfe:ExternalLink>
<_gte:LinkTarget>xxx</_gte:LinkTarget>
<_gte:LinkContent>yyy</_gte:LinkContent>
</_sfe:ExternalLink>
Where:
_gte:LinkTarget should define the target of the link. xxx can be any
combination of attribute content, element content, an XPath expression or
authored text. This tag is expected to have content - you will not be permitted to
exit the Generated Text Editor if you attempt to save this tag without content, or
with just whitespace.
_gte:LinkContent should define the clickable text that will appear in the
final document. yyy can be any content. The content defined for this element will
be styled in the final document according to the style properties of
_sfe:ExternalLink
567
Supporting Intelligent Graphics Sets
Arbortext Editor enables you to develop a set of related intelligent graphics that
can be displayed in the same Arbortext IsoView control in published HTML
output. When the graphics set is initially displayed in an HTML document, the
first graphic in the set is displayed in the control. You can develop links that will
change the graphic displayed in the control based on which graphic in the set is
the target of the link.
Support for graphics sets must be added to the stylesheet associated with a
document type. This support is already added to the default .style files for the
Arbortext XML DocBook and the DITA document types. If you use a different
stylesheet for these document types or if you have your own custom document
type with its own stylesheet, then you must explicitly add support for intelligent
graphics sets to your .style file.
To support intelligent graphics sets, you must have a tag in your document type
that can contain multiple graphic tags. Also, this container tag must have an
attribute to which you can assign an attribute value that flags the tag as containing
an intelligent graphics set. The suggested attribute value is viewer.
For example, in the DITA document types, the fig tag can contain multiple
image tags that reference the actual graphics. The fig tag also has an
outputclass attribute to which the value viewer can be assigned.
In the Arbortext XML DocBook document type, the mediaobject tag can
contain multiple imageobject tags. Each imageobject tag contains an
imagedata tag that references the actual graphic. The mediaobject tag also
has a role attribute to which the value viewer can be assigned. Your document
type must have a similar set of tags to support intelligent graphics sets.
Follow these steps to add support for intelligent graphics sets to the .style file
for your document type:
1. Use Arbortext Styler to style the tags you will be using for intelligent graphics
sets.
Be sure to assign the Graphic style to the tag that references the actual graphic.
Also, be sure to use the Graphic Details dialog box to assign the relevant
attribute values to this graphics tag.
2. Use Arbortext Editor to edit your .style file.
3. Select Find ▶ Find Tag/Attribute to open the Find Tag/Attribute dialog box.
4. Enter GraphicDetails in the Tag Name field and click the Find Next
button.
Search through the file until you find the GraphicDetails tag associated
with the graphics tag you are using for intelligent graphics sets. For example,
in the Arbortext XML DocBook document type the imagedata tag
Example
Here is how the tagging for the imagedata tag in the .style file for the
Arbortext XML DocBook document type appears in Arbortext Editor:
573
Introduction
Arbortext Styler provides the ability to style certain elements as ‘multimedia’.
This is different from ‘graphic’ as multimedia requires different settings. To
support this, a new style type has been added to Styler, Multimedia, and a new
formatting category available for items styled with that type. This document will
provide information on how to use these settings and options.
Arbortext Styler publishing supports MP4 for video and MP3 for audio.
Also supported is the ability to use U3D graphics when publishing to PDF. U3D is
one of the 3D graphic formats supported by PDF and is also an export type
supported by Creo Illustrate.
Note
InArbortext Styler 8.2.0.0, the Flash multimedia containers which allowed
controllers for audio and video content when publishing to PDF have been
removed. This is necessary as Adobe Acrobat no longer supports Flash in this
way.
Updating DCFs
To support multimedia, DCFs will need to be updated if using old ones or custom
ones.
Firstly, a new category is provided for multimedia which can be used when using
the dialog to insert mark-up by category:
<Category title="&Multimedia;">
<ElementListItem element="audiodata"/>
<ElementListItem element="videodata"/>
</Category>
This section shows the update to the DocBook DCF where the audiodata and
videodata elements are declared to be in the Multimedia category.
Next, in the ‘Specials’ section, there is a new Multimedia type, upon which the
default attribute roles are specified:
<Multimedia element="audiodata"
This section describes how to manage modularized stylesheets and the individual
modules that make up those stylesheets.
581
Modules Overview
Arbortext Styler supports modularized stylesheets, which enables you to develop a
stylesheet from modular components. Multiple stylesheets can share common
modules, which adds flexibility to stylesheet design and reduces development
time. You can also reference a fully developed stylesheet as a module and
selectively override some of the formatting characteristics. Using modules makes
it easier to maintain multiple stylesheets with common styling. If having the best
possible performance when publishing is one of your requirements, you can use
File ▶ Save as Merged Stylesheet to save a modular stylesheet as a merged,
flattened stylesheet. It is recommended that you edit the individual stylesheet
modules themselves, and then use the merged stylesheet for production work to
ensure the best performance when publishing.
A stylesheet can reference any other stylesheet as a module. You can also
reference read-only modules, though you cannot modify the contents of those
modules. You can use the Arbortext-path\custom\stylermodules
directory to store modules.
Modularized stylesheets are arranged in a module hierarchy. The hierarchy starts
with a single root module that can reference any number of other modules.
Modules in the hierarchy can reference other modules down to the leaf module
level. Modules higher in the hierarchy have precedence over modules lower in the
hierarchy. Any mergeable definitions in modules lower in the hierarchy are
overridden by identically named definitions higher in the hierarchy.
The following stylesheet components are considered definitions:
• Element
• Property set
• Page set
• Page type
• Page region
• Generated content
• Table of contents
• Cross reference
• Custom table
• Size
• Combined font
A module can contain and share any or all of these types of definitions. For
example, if you have defined header and footer objects for the stylesheet
axdocbook1.style and you wish to make these available for a second
stylesheet axdocbook2.style without having to recreate the same objects in
Note
When working with a modularized stylesheet, it is possible that two modules
in a single stylesheet use different prefixes for the same namespace. This will
have an effect on the order in which elements are listed in the Elements list.
Since elements are displayed with the prefix for the namespace that applies in
the module in which the element definition occurs, definitions for the same
element may not be displayed adjacent to each other in the list. Their
precedence relationship will be maintained, however.
Arbortext Styler overrides an entire definition. For example, for elements with the
same name the entire element is overridden, not just included contexts or
conditions.
The names of modules below the root module are displayed for individual
elements and property sets in the Elements and Property Sets lists. The Arbortext
Styler interface also contains precedence information for the elements and
property sets. The name of the root module is displayed in the Arbortext Styler
title bar. The Modules dialog box, available through File ▶ Modules, enables you to
control the module hierarchy. Other user interface components enable you to
move or copy selected definitions to modules.
Note
You may need to select the View ▶ User Formatting Elements and View ▶ Styler
Formatting Elements menu options to ensure these elements are displayed in
the Elements list. In addition, the list views each contain a list of user interface
components, enabling you to move or copy those definitions to modules.
The new module appears in the module hierarchy in the Modules dialog box.
6. Click Close to exit the Modules dialog box.
7. In Arbortext Styler, select the Style heading in the Elements list. The list is
sorted by style.
11. If, once you have allocated your objects to the module, you wish to protect the
module with a read-only restriction, you can do this by navigating to the
module in your desktop explorer, right clicking and selecting Properties, then
checking the Read-only option in the General tab. Your module will then be
displayed in the Modules box with a lock icon over its regular icon and the
title text grayed out.
You cannot subsequently add objects to a read only module.
Note
SFEs associated with a Table of Contents definition must remain in the same
module as the associated table of contents and cannot be copied or moved to
another module. These elements begin with _sfe:Toc. If any of these SFEs
are selected, the Move.. and Copy to Module menu items are disabled. If the
Table of Contents definition is moved to a module, the associated SFEs move
with it.
• Page sets
• Page types
• Page regions
• Generated Content objects
• Tables of contents
• Custom tables
• Cross references
• Sizes
• Combined fonts
There are three ways in which you can create an override for an existing
definition:
5. Style the definition as desired. This formatting will now be applied whenever
the definition is encountered in this particular document.
4. Click OK to continue with the paste process. As shown above, the definition
description in the relevant list will change to advise that the element in the
module has been overridden by the new version of the definition, which
now takes precedence :
5. Modify the copied definition's properties as desired.
Note that this copy process is not permitted for a Size object - use the process
detailed in Create a new definition in the root module above to create an
override for a Size object.
Note
If you want to create overrides for User Formatting Elements (UFE) and Styler
Formatting Elements (SFE), you may need to select the View ▶ User
Formatting Elements and View ▶ Styler Formatting Elements menu options to
ensure these elements are displayed in the Elements list.
• Page sets
Note
When electing to open a standalone module you may see an error advising
that the module references missing definitions. It may be the case that
definitions in the module you are opening reference objects in another
module and, since the module is being opened independently of the
modular stylesheet or module that contains those definitions, the
connections cannot be made. For example, if the objects in your module
contain references to property sets in their definition, the link to the
property sets will not be resolved and the error will appear. Use the Tools ▶
Validate Stylesheet menu option to confirm that this is the case if you
encounter the error.
5. Modify the definitions in the module as usual and save the module.
• Page sets
• Page types
• Page regions
• Generated Content objects
• Tables of contents
• Custom tables
• Cross references
Note
When electing to open a standalone module you may see an error advising
that the module references missing definitions. It may be the case that
definitions in the module you are opening reference objects in another
module and, since the module is being opened independently of the
modular stylesheet or module that contains those definitions, the
connections cannot be made. For example, if the objects in your module
contain references to property sets in their definition, the link to the
property sets will not be resolved and the error will appear. Use the Tools ▶
Validate Stylesheet menu option to confirm that this is the case if you
encounter the error.
5. In Arbortext Styler, use the Insert ▶ Element to add a new element to the
Elements list.
6. Name and style the new element as desired and save the module.
Note
If you want to add User Formatting Elements (UFE) and Styler Formatting
Elements (SFE), you may need to select the View ▶ User Formatting Elements
and View ▶ Styler Formatting Elements menu options to ensure these elements
are displayed in the Elements list before performing one of these options.
597
Formatting Landscape Tables and
Figures
You can format elements such as tables and figures so they are displayed in
landscape orientation, even if the rest of the document uses the portrait format.
You can configure this formatting to apply to all occurrences of a context of an
element or you can make it conditional, so that the formatting is only applied
when a certain condition is true.
Note
If headers and footers are configured for the table, they will display in
portrait orientation.
Note
If headers and footers are configured for the table, they will display in
portrait orientation.
//Create a variable for the value to use when creating the barcode
var value = "981858705125";
//Create a variable for the tag to create based on the value to
ensure the graphic is unique to the value
var tagName = "barcode_" + application.calculateHash(value);
One-dimensional Barcodes
Stacked Symbols
Two-track Symbols
Two-dimensional Symbols
Other Types
This section describes the options in Arbortext Styler that support working with
documents based on DITA document types.
619
DITA Styling Overview
The DITA (Darwin Information Typing Architecture) standard was pioneered at
IBM and is sponsored by OASIS (Organization for the Advancement of
Structured Information Standards), a not-for-profit, international consortium that
drives the development, convergence, and adoption of e-business standards.
OASIS defines DITA as “an architecture for creating topic-oriented, information-
typed content that can be reused and single-sourced in a variety of ways. It is also
an architecture for creating new information types and describing new information
domains based on existing types and domains.”
To obtain more information on OASIS and DITA, refer to the OASIS web site at
www.oasis-open.org/. Refer to the DITA Architectural Specification for an
overview of the DITA standard. Refer to the DITA Language Reference for
specific information about DITA elements and attributes. These documents are
available on the OASIS web site and in the Arbortext Help Center.
Arbortext Editor supports the DITA standard and provides a sophisticated, flexible
environment for authoring and publishing DITA documents. Arbortext Editor has
customized configurations for editing both DITA topics and DITA maps. Refer to
the Arbortext Editor online help for more information about authoring DITA
documents withArbortext Editor.
There are two distinct types of DITA document:
• DITA topic — a modular document that provides discrete information about a
single subject. DITA topics are XML documents and styling DITA topics is
similar to styling other types of XML document.
• DITA map — DITA maps are XML documents, but they contain very little
text or other content. Instead, DITA maps specify the DITA topics and other
types of documents that are to be collected and organized into a deliverable.
Using a DITA map allows you to create a hierarchy of DITA topics and other
information resources that serve as an outline, table of contents, or build
manifest. During publishing, titles, short descriptions, and other metadata from
a map may override titles, short descriptions, and other metadata in a topic.
Since a DITA map does not contain the actual content of your deliverable, during
publishing Arbortext Editor automatically generates an intermediate document
called the Resolved Document for Styling (RDS) from a DITA map and the maps
and topics that the map references. This document contains all of the content
referenced from the map. It is the RDS that is acted upon by your stylesheet
during publishing.
You do not normally need to work with or see the RDS, but it is often helpful to
generate and use it when using Arbortext Styler to develop stylesheets for use
with DITA documents. You may generate a resolved document with the Arbortext
Editor menu choice Edit ▶ Edit Resolved Document ▶ For Styling. When you select
this menu choice, Arbortext Editor assembles all of the content in your map into a
Note
If you add a new context to a DITA document, you cannot click inside that
context in Arbortext Editor and have the new context highlighted in Arbortext
Styler until you perform a Preview ▶ Arbortext Editor operation.
Note
Context rules are always off for the RDS. You must make any structural
changes to the resolved document with care to avoid making it an invalid
document.
Attribute Description
chunk
The DITA chunk attribute. Arbortext
Editor only uses the value of this
attribute from the topmost map element
and only recognizes the two token
values by-topic and by-document. by-
topic is the default value. For DITA
documents chunking is controlled by
Arbortext Styler using hints that are
added to the RDS during the publishing
process in the form of ch:xxx attributes.
href This attribute displays its information
in one of three ways, depending on the
type of reference it belongs to:
If you hover the cursor over this message, the following additional information
is provided in a small popup (tooltip):
(Specialization of li, using List Item style)
• Publishing - When publishing with an Arbortext Styler stylesheet, the
publishing process replaces unstyled, specialized elements with the associated
base element.
• Arbortext Styler preview - Arbortext Styler replaces unstyled, specialized
elements with the associated base element in preview operations.
Note that once you style a specialization of an element that is styled as a division,
it is no longer associated with the base element for division numbering. This is
because Arbortext Styler counts an unstyled, specialized element along with its
This section describes the options in Arbortext Styler that support documents that
include text in non-Latin languages.
633
Overview of Support for Non-Latin Text in
Arbortext Styler
Arbortext Styler includes support for Chinese, Japanese, Korean, Hebrew, Arabic,
and Thai languages, both in terms of the characters that can be used in text and the
formatting properties that can be applied to that text. The features that support
content in these languages are summarized below, with each being dealt with in
more detail in subsequent sections of this chapter:
• Combined fonts (see Combined Fonts on page 635): the Arbortext Styler UI
provides an interface whereby a user can create a user defined font that
specifies which system font(s) should be used to display the different
characters or character blocks in a piece of text
• List and page numbering (see List and Page Numbering on page 638): non-
Latin numbering styles are included in the list of available numbering schemes
for page sets, divisions, formal blocks, tables of content, list items, footnotes,
and indexes.
• Hanging punctuation (see Hanging Punctuation on page 644): certain
characters are permitted to hang outside the margins of the text area
• Underlining and strikethrough of text (see Text Underlining and Strikethrough
on page 646): a number of underline and strikethrough styles beyond the
simple straight rule
• Right-to-left text direction (see Right-to-Left Layout Direction on page 652):
layout text from the right margin to the left margin, instead of the default left-
to-right text direction.
It is recommended that you elect to preview and publish your documents via the
PTC APP print engine to ensure that non-Latin text, punctuation, or formatting
properties in your document are treated correctly. Right to left writing direction,
hanging punctuation, and word boundaries for Thai content are only enabled if
PTC APP is the effective print engine for your environment.
PTC APP includes support for Hebrew, Arabic, and Thai languages in print and
PDF outputs:
• Right to left writing direction
• Hebrew, Arabic, and Thai list and page numbering styles
• Word boundaries for Thai content
Please refer to Working with Non-Latin Language Content in Arbortext Editor
help for further information.
You must elect to compose via the PTC APP print engine to enable these features.
Note
When you export an Arbortext Styler stylesheet that uses combined font
definitions to XSL-HTML, XSL-HTML Help, or XSL-Web formats, the
exported stylesheet contains the processing instruction (PI) <?APT
combined-font-defn...?>. One PI for each combined font appears at
the start of each output file. Each PI specifies the details of the combined fonts
used in the original stylesheet, by confirming the combined font's name and
the list of Unicode point ranges it defines, along with the fonts assigned to
each range.
If you subsequently use the exported stylesheet outside of Arbortext Styler to
generate HTML output, the PI is included in the generated HTML. The PI is
removed when publishing to HTML in Arbortext Styler.
Here you have selected the font to be used to display the majority of characters
in a paragraph. In the next steps you will create exceptions to this default,
where you specify the fonts to display particular characters in the text.
6. Click New. A new exception line is created in the font list.
7. In the Character Set field, select the character block or type for which you are
defining the font, in this case East Asian Scripts. Script groups are
displayed in bold text, while character blocks are shown in normal text.
8. In the Font field, select MS Mincho
Here you have specified that any characters from the East Asian Scripts script
group will be displayed using the MS Mincho font.
Here you have specified that Katakana characters, although they also belong to
the East Asian Scripts script group, should be displayed in SimSun font rather
than the default MS Mincho font defined for the script group.
The creation of the combined font is now complete:
10. The next step is to assign the font setting to the relevant paragraph context in
your stylesheet. In the Elements list , select the para everywhere
else context.
11. In the Text category for the context, select your combined font from the list of
available fonts in the Font family field. You will see that the combined font is
12. Choose Preview ▶ Print. In the PTC APP preview that appears, note that any
East Asian Scripts characters, and any Katakana characters, are displayed
correctly.
Note
Where numbering schemes are listed in a category or dialog box as described
above, the display of the characters in the number selection drop down menus
and associated Preview window is limited by the fonts installed on your
system. If your system is unable to display a character because the required
font is missing, you may see a hollow square or a question mark in the menu
or preview window instead of the number character. For this reason the names
of the numbering styles are displayed in the drop down menu, as well as their
first three characters. If the characters cannot be displayed it will still be clear
which numbering scheme has been selected.
Note
The display of the Preview window is limited by the fonts that are actually
installed on your system. If your system does not contain the necessary
font you may see a hollow square or a question mark where the number
characters should be in the preview.
7. Click OK to save the numbering settings and exit the dialog box.
8. Choose Preview ▶ Print.
5. Navigate to the Page Sets list and select the mainbody-page page set
in the list.
6. In the Page numbers category for the page set, open the Page number style
drop down menu and select ①, ②, ③... (circled-decimal) from
the list of possible numbering styles.
7. Preview your document via the Preview ▶ Print menu option. In the Print
Preview window, note that the page number displays at the bottom of the page
in each chapter as usual, but that the number is enclosed in a circle according
to the selected numbering style.
Hanging Punctuation
Arbortext Styler provides the option to permit punctuation characters to hang
outside the margin of any text area formatted as a block. With the hanging
punctuation option set for the element that contains the text, certain punctuation
characters will be placed outside the text margin if they appear at the end of a line:
• Ideographic comma x3001
• Ideographic full stop x3002
• Latin comma x002c
• Latin full stop x002e
The hanging punctuation option is activated (or deactivated) in the Hanging
punctuation (Print/PDF only) property field, located in the Indent category for
elements, contexts, conditions, and property sets.
Note
This formatting is only effective when publishing the document for print or
PDF with an Arbortext Styler stylesheet and the PTC APP print engine. The
Hanging punctuation (Print/PDF only) option not available in the Indent
category if either FOSI or XSL-FO is set as the active print engine.
Note
The use of hanging punctuation is not exclusive to non Latin languages. Using
the same UI functionality documents in other languages such as French may
display this type of alignment.
This field is only available if your environment is set to use PTC APP as the
effective print engine.
6. In Arbortext Editor, navigate to the first paragraph in the sample document,
which begins “Welcome to the world of....”. Place one of the four defined
punctuation characters at the end of a line in the paragraph.
Note
Customized settings for underline and strikethrough styles will only be visible
in print or Arbortext Editor output when the document is published via an
Arbortext Styler stylesheet. Customized underline and strikethrough styles are
not supported in HTML output and will be treated as standard scoring in
output of these types.
Note
This formatting is only effective when publishing the document for print or
PDF with an Arbortext Styler stylesheet and the PTC APP print engine. The
Layout direction (print/PDF only) option is not available in the Indent category
if either FOSI or XSL-FO is set as the active print engine.
This section describes how to publish XML documents as RTF files for use in any
application supporting RTF files.
655
Overview of Publishing to RTF
The export capabilities of Arbortext let you use Arbortext Styler to create Export
stylesheets, preview RTF versions of XML documents and publish XML
documents as RTF files. The published RTF documents can be opened in any
application supporting RTF files, such as FrameMaker, Interleaf, or Word. The
Export stylesheet is typically not unique to RTF output. It can be an existing
stylesheet currently used for other outputs that is updated to include RTF-specific
information.
It should be noted that you may notice differences if you compare published print
or PDF outputs with published RTF outputs of the same document.PTC Arbortext
does not, and cannot, guarantee page fidelity between PDF, print, and RTF output.
There are too many variables between publishing formats, applications that
display those formats, and versions of the applications which are used as the
viewers to be able to ensure identical output in all formats.
System requirements
Arbortext Styler must be installed and licensed to create Export stylesheets and to
preview RTF documents being exported with Published documents are formatted
in RTF meeting the Microsoft 1.7 specification.
This guide describes how to use Arbortext Styler to create Export stylesheets and
export XML documents to RTF.
Note
The settings defined in the RTF category do not have to be specific only to
RTF output. Any settings defined in the category, such as RTF style names
and fields, will simply be ignored by all other outputs. In these cases, the
RTF category setting Base (All Outputs) has no effect.
Note
If you encounter an unexpected error when publishing, refer to
Troubleshooting Import and Export Issues on page 695, which contains some
information that may help you diagnose the problem.
Publishing Fields
When specifying fields, consider the different structure types involved with Word
fields. Some fields are simple text fields much like generated text in XML, where
the field wraps some dynamically created text. In these fields, such as AUTHOR,
the source for the generated text might be a Word document property. If you
publish text as the content of the field (such as Jane Doe), the text will display in
Word. But when fields are updated, for example via a CTRL+A+F9 refresh, the
text might be dynamically changed to use a different name depending on the
author currently editing the Word document.
Likewise, a field such as EDITTIME, which displays the amount of time spent
editing the document, can be published with a value such as 20.0 which
represents 20 minutes of editing. However, the value published by Arbortext
Import/Export will not be valid for very long, because the editing time is
constantly changing. Bear in mind, Word does not automatically update fields in
the same way as Arbortext Editor when automatically updating generated text.
You must manually update fields in Word via a CTRL+A+F9 refresh, or via a
macro function saved as part of your Word editing environment.
You may want the resulting RTF document to contain content similar to the
following:
Product: Widget 1.0
Department: Marketing
Platform: Windows
Priority: Urgent
For Internal Use Only
You may want each newly-created paragraph to use a Word style name that
reflects its role, such as Product, Department, Platform, Priority, and Status. The
values could also be accurately re-imported as attributes on the topic element.
To map a context and its attributes to multiple paragraphs in Arbortext Styler,
create a User Formatting Element (UFE) for each attribute on the context you
wish to publish. The default context of each newly-created UFE makes it simple
to assign a Word style name and sophisticated generated text to highlight and
display attribute data which is very important, yet has no corresponding structural
counterpoint in RTF. Word has no concept of attributes except at the level of
document stylesheet properties. The technique described here serves the purpose
well at any structure level, not just the document level.
Use the following steps to create the published output described in the earlier
example:
1. In Arbortext Styler, create UFEs for each attribute to be published. Refer to
Adding User Formatting Elements to Generated Text on page 517 for steps on
adding UFEs.
For this example, create the following UFEs:
ufe:product
ufe:audience
ufe:importance
ufe:platform
ufe:otherprops
2. In the Generated text category for the topic element, click Edit to add
generated text before the element. Use the Insert ▶ User Formatting Element
menu option to insert your UFEs in the required order, then add leading text to
the first 4 UFEs as shown below:
Refer to Adding User Formatting Elements to Generated Text on page 517 for
information on working with conditions.
4. Assign direct styling to each of the newly-created UFE elements, or reference
a Word style name, to format the output.
5. The granularity of the output in terms of paragraph styles and character styles
is at the discretion of the stylesheet developer. If the published document
might be later re-imported, consider creating UFE elements with an Inline
style to denote the generated text and UFE elements styled as Block to wrap
the #PCDATA. This makes it is easier to filter out and remove the character
styles which were the result of generated text, and simplifies the mapping of
the text back into the appropriate XML attributes.
Refer to Publishing Table and Figure Captions in RTF Files on page 673 for
information on publishing figure captions.
Use the following steps to publish the title before the table itself:
1. In Arbortext Styler, create the context title in table.
2. Highlight the title in table context in the Elements list.
3. To avoid affecting non-RTF outputs, select RTF from the Outputs to edit drop
down list. This will ensure that any generated text and numbering used for
titles will not appear in other outputs.
4. Assign a user-defined RTF paragraph style, such as TableTitle, to the
title in table context, using the following steps:
a. In the RTF category, select the User-defined option in the RTF style name
generation field. You may need to deselect the Default (None) option to be
able to make this selection.
b. In the RTF style type field, check the Paragraph option.
c. Enter the name, for example TableTitle, of your user defined
paragraph style in the RTF style name field.
d. Click elsewhere in the Arbortext Styler window to update your setting.
You will see the style name you entered in the RTF Style/Field column in
the Elements list.
Note that this column may not be visible in your window - use the View ▶
Configure Columns menu option to activate it in your display.
The following RTF content will be published:
Paragraph Style: TableTitle
"Table n: " (RTF gentext, where n is autonumbering)
My user-defined Table Title (PCDATA)
[the Word table]
The title will use the paragraph style TableTitle. Table is a generated text
label and n is autonumbering. Both are assumed to be part of the RTF style
definition, not Arbortext Styler generated text.
The title will use the paragraph style TableTitle and will be the element
content of the first title in table. Table is a generated text label and n
represents autonumbering. Both are assumed to be part of the RTF style definition,
not Arbortext Styler generated text.
Use the following steps to publish the table title before the table, using generated
text for labeling and a SEQ field for numbering:
1. Create the User Formatting Element _ufe:tabletitlenumber, using the
steps described below. Doing so lets you map the default context of this UFE
to a Word field, define structure at a level of granularity lower than the
paragraph text, and autonumber all tables that are given the common
numbering reference Table.
a. In Arbortext Styler, create the UFE _ufe:tabletitlenumber. Check
the View ▶ User Formatting Elements menu option to ensure your new UFE
is shown in the Elements list.
b. Assign the Inline style to _ufe:tabletitlenumber, via the Edit ▶
Style menu option.
c. Assign the RTF field SEQ to _ufe:tabletitlenumber by following
the steps described below:
i. Select the default context of _ufe:tabletitlenumber in the
Elements list.
2. Create generated text before the table, using the steps below. Generated text
provides the means to insert a user-defined SEQ field to perform
autonumbering. In this manner, the table numbering will be dynamic for the
Word author.
a. In the Elements list, create the context title in table if it doesn't
already exist.
b. Select the default title in table context for table.
c. In the Generated text category, click Edit to add generated text before
element content. The Generated Text Editor opens. Enter the following in
text format:
"Table " + <ufe:tabletitlenumber> + ":"
d. Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
The following RTF content will be published:
Use the following steps to publish the table title after the table using generated
text for labeling and a SEQ field for numbering:
1. Create the User Formatting Element _ufe:tabletitlenumber, using the
steps described below. Doing so lets you map the default context of this UFE
to a Word field, define structure at a level of granularity lower than the
paragraph text, and autonumber all tables that are given the common
numbering reference Table.
a. In Arbortext Styler, create the UFE _ufe:tabletitlenumber. Check
the View ▶ User Formatting Elements menu option to ensure your new UFE
is shown in the Elements list.
b. Assign the Inline style to _ufe:tabletitlenumber, via the Edit ▶
Style menu option.
c. Assign the RTF field SEQ to _ufe:tabletitlenumber by following
the steps described below:
i. Select the default context of _ufe:tabletitlenumber in the
Elements list.
ii. In the RTF category, click the Edit button in the RTF field field. The
Field dialog box opens.
iii. In the Field name field, select SEQ from the drop down list.
d. Set the field values for SEQ as follows: .
• Set the field instruction VARIABLE NAME to Table. Ensure the Use
box is checked.
• (Optional) Set the \* switch to Arabic. Ensure the Use box is
checked.
Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
3. Create generated text to publish _ufe:tabletitle after the table, using
the steps below. Generated text provides the means to place the table title text
outside the table construct.
a. In the Elements list, select the default context for the table element.
b. In the Generated text category, click Edit to add generated text after
element content. The Generated Text Editor opens.
c. In the Generated Text Editor, choose the Insert ▶ User Formatting Element
menu option, then select _ufe:tabletitle from the pullright menu.
d. Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
4. Make this context hidden in RTF-specific output, by using the following steps.
RTF output requires the flexibility to place a table title or a figure title after the
respective table or graphic image. Making it hidden for RTF output prevents
RTF-driven side-effects on other outputs and prevents default Arbortext Styler
handling of the title.
a. In the Elements view, select the title in table context.
b. Select RTF in the Outputs to Edit list.
c. In the Text category, set Hidden to Yes.
The following RTF content will be published:
[the Word table]
Paragraph Style: TableTitle
"Table: " (Styler gentext)
SEQ field (RTF gentext)
": " (Styler gentext)
My user-defined Table Title (PCDATA)
Use the following steps to publish the table title before the table, mixing
paragraph and character styles with a SEQ field:
1. Create the User Formatting Element _ufe:tabletitlenumber, using the
steps described below. Doing so lets you map the default context of this UFE
to a Word field, define structure at a level of granularity lower than the
paragraph text, and autonumber all tables that are given the common
numbering reference Table.
a. In Arbortext Styler, create the UFE _ufe:tabletitlenumber. Check
the View ▶ User Formatting Elements menu option to ensure your new UFE
is shown in the Elements list.
b. Assign the Inline style to _ufe:tabletitlenumber, via the Edit ▶
Style menu option.
c. Assign the RTF field SEQ to _ufe:tabletitlenumber by following
the steps described below:
i. Select the default context of _ufe:tabletitlenumber in the
Elements list.
ii. In the RTF category, click the Edit button in the RTF Field field. The
Field dialog box opens.
iii. In the Field name field, select SEQ from the drop down list.
d. Set the field values for SEQ as follows: .
• Set the field instruction VARIABLE NAME to Table. Ensure the Use
box is checked.
• (Optional) Set the \* switch to Arabic. Ensure the Use box is
checked.
Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
3. Assign the paragraph style TableTitle to the title in table context
and create Add Before generated text. By inserting
_ufe:tabletitlelabel in Add Before generated text, this context will
publish the TableTile paragraph start. Then, it will publish the character
style TableTitleLabel which will encapsulate the pretext and generated
text autonumbering. Finally, this context will publish the title PCDATA (by
default), which will reside in the parent paragraph style TableTitle.
a. Select the default context of title in table in the Elements list.
b. Assign the user defined RTF paragraph style TableTitle to the element
context by using the following steps:
i. In the RTF category, select the User-defined option in the RTF name
generation field. You may need to deselect the Default (None) option to
be able to make this selection.
ii. In the RTF style type field, check the Paragraph option.
iii. Enter the name, for example TableTitle, of your user defined
paragraph style in the RTF style name field.
iv. Click elsewhere in the Arbortext Styler window to update your setting.
You will see the style name you entered in the RTF Style/Field column
in the Elements list.
Note that this column may not be visible in your window - use the View
▶ Configure Columns menu option to activate it in your display.
c. In the Generated text category, click Edit to add generated text before
element content. The Generated Text Editor opens. Enter the following in
text format:
<ufe:tabletitlelabel>
Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
The following RTF content will be published:
Paragraph Style: TableTitle
Character Style:
"Table: " (Styler gentext) (ufe:tabletitlelable: PCDATA in the Character Style)
SEQ field (RTF gentext) (SEQ in the Character Style)
": " (Styler gentext) (ufe:tablelable: PCDATA in the Character Style)
Use the following steps to publish the table title after the table, using generated
text for labeling and a SEQ field for numbering:
1. Create the User Formatting Element _ufe:tabletitlenumber, using the
steps described below. Doing so lets you map the default context of this UFE
to a Word field, define structure at a level of granularity lower than the
paragraph text, and autonumber all tables that are given a common numbering
referenceTable.
a. In Arbortext Styler, create the UFE _ufe:tabletitlenumber. Check
the View ▶ User Formatting Elements menu option to ensure your new UFE
is shown in the Elements list.
b. Assign the Inline style to _ufe:tabletitlenumber, via the Edit ▶
Style menu option.
c. Assign the RTF field SEQ to _ufe:tabletitlenumber by following
the steps described below:
i. Select the default context of _ufe:tabletitlenumber in the
Elements list.
ii. In the RTF category, click the Edit button in the RTF field field. The
Field dialog box opens.
iii. In the Field name field, select SEQ from the drop down list.
d. Set the field values for SEQ as follows: .
• Set the field instruction VARIABLE NAME to Table. Ensure the Use
box is checked.
• (Optional) Set the \* switch to Arabic. Ensure the Use box is
checked.
Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
3. Create generated text to publish _ufe:tabletitle after the table, using
the steps below. Generated text provides the means to place the table title text
outside the table construct.
a. In the Elements list, select the default context for table.
b. In the Generated text category, click Edit to add generated text after
element content. The Generated Text Editor opens.
c. In the Generated Text Editor, choose the Insert ▶ User Formatting Element
menu option, then select _ufe:tabletitle from the pullright menu.
d. Click File ▶ Apply and Close to apply the change and exit the Generated
Text Editor.
4. Make this context hidden in RTF-specific output, by using the following steps.
RTF output requires the flexibility to place a table title or a figure title after the
respective table or graphic image. Making it hidden for RTF output prevents
RTF-driven side-effects on other outputs and prevents default Arbortext Styler
handling of the title.
a. In the Elements view, select the title in table context.
b. Select RTF in the Outputs to Edit list.
c. In the Text category, set Hidden to Yes.
The following RTF content will be published:
[the Word table]
Paragraph Style: TableTitle
Character Style:
"Table: " (Styler gentext) (ufe:tabletitlelable: PCDATA in Character Style)
SEQ field (RTF gentext) (SEQ in Character Style)
": " (Styler gentext) (ufe:tablelable: PCDATA in Character Style)
My user-defined Table Title (PCDATA in the Paragraph style)
7. Modify the odd-page and even-page header blocks for the mainbody-page
Page Set by inserting the newly-created _ufe:RTFHeader into the
generated text that defines each header. In the case of the distributed
axdocbook stylesheet, the new header markup would be:
<_ufe:header-font><DivisionReference><_ufe:RTFHeader></_ufe:RTFHeader>
</_ufe:header-font>
Note
In the previous example, the content and level of granularity is easily managed
with Arbortext Styler through UFEs. _ufe:RTFHeader could, for example,
include its own generated text, such as the prefix Chapter, or the header could
also include lower-level information such as sect1 titles instead of just
chapter titles by creating additional UFE elements as needed.
Note
If Word Heading styles are used for division titles (see Word online help), the
TC fields may be ignored.
You must update fields to see these TOCs. Select all content in the document by
pressing CTRL+A, then update the fields by pressing F9.
Note
The syntax examples specify when quotes are required.
<Arbortext-path>\bin\epic -c "document_export('inFile',
'outFile','styleFile','logFile',1)"
Return Description
code
-1 Platform is not MS Windows.
0 No error.
1 No HOME directory defined.
2 No file selected.
3 Arbortext Import/Export feature not installed.
4 Specified Repository directory is in the install tree.
5 Specified Repository directory not found.
6 Specified Repository directory is missing required
subdirectories.
7 Cannot open \importexport\config\XYZ_
SysPrefs.xml.
8 Cannot create specified Arbortext Import Workbench path.
9 Cannot create specified Arbortext Import configuration path.
10 Cannot copy default configuration from install tree.
11 Cannot create Repository directory.
12 Attempt to create project in the install tree.
This section describes how you can extend your stylesheet by editing its source
code for individual output formats. This gives you the option to provide
formatting that cannot be achieved via settings in the Arbortext Styler UI.
699
Identifying Items that have Edited Source
If an object includes edited source, visual and textual indicators are visible in three
principal locations:
• Arbortext Styler window
○ The Description field of the Arbortext Styler window will contain a
confirmation in orange text that source edits have been defined.
If you have selected an element in the Elements list, the text will advise
whether the edited source applies to elements, contexts or both.
The Arbortext Editor preference stylerhassourceeditsfontcolor
determines the color of the Description tab label and the text confirming that
an object has source edits. See set stylerhassourceeditsfontcolor in Arbortext
Command Language Reference for further information. This is set to the
default color of orange, which matches the color of the icon overlay and the
checkmark in the Source Edits column, but you can change the color if you
require. Note, though, that if you set this preference to a different color, this
will not affect the color of the icon and the checkmark.
• List View
○ The icon for the object will be overlaid with an orange icon.
○ The Source Edits column will contain an orange tick icon. Note that this
column is not visible by default: use the View ▶ Configure Columns menu
option to open the Configure Columns dialog box and change your view.
○ The icon for the object in the Name field will be overlaid with an orange
square
○ The Source Edits column will contain an orange tick icon. Note that this
column is not visible by default: use the View ▶ Configure Columns menu
option to open the Configure Columns dialog box and change your view.
Sorting the column based on the Source Edits column will place all
definitions with source edits together.
○ Page Setup - Specifies print output settings for the source file.
○ Print - Prints an Editor View of the source document.
○ Close - Closes the window.
• Edit menu:
You can edit stylesheet source for the following object types:
• Element
• Element context
• Property set
• Page set (print outputs only)
• Page type (PTC APP only)
• Page region (PTC APP only)
• Generated content object (FOSI and XSL-FO output only)
• XSL root template (XSL outputs only)
• FOSI resource description (FOSI output only)
• Common XSL source (XSL outputs only)
• PTC APP root template (PTC APP only)
The tables below describes the types of source that can be edited for each type of
output.
You can leave the FOSI Source window open during the following steps.
2. Choose Tools ▶ Advanced Edited Source ▶ Edit FOSI Resource Description.
3. In the Source Editor, insert the elements you need, using values for the key
attributes that do not conflict with Arbortext Styler generated keys.
4. Choose File ▶ Apply and Close.
5. In Arbortext Styler, choose View ▶ Source ▶ FOSI to verify that your edits were
correctly merged with Arbortext Styler's generated resource description.
Note
The order among each of the types of elements is random.
Note
The order among each of the types of elements is random.
Note
You must ensure that neither of the situations listed below occurs when
providing common XSL source:
• No named template, variable, or attribute-set is given a name that is already
used by the Arbortext Styler-generated XSLT.
• No added match template can have the identical match attribute, mode, and
priority as one generated by Arbortext Styler.
If such a conflict exists, you will see a warning and your publishing process
will contain errors.
Note
You are not permitted to edit the source of a whole element for PTC APP; you
can only edit it at context level.
OnEnter command
<OnEnter type="application/x-javascript" xml:space="preserve">
// onEnter processing for context: sect1/title
The OnEnter command is marks the start of the context. It contains the
instructions for processing the context, as described in the next sections (with the
exception of the OnExit command).
Context preamble
formatting.fishSave( template.stylerFish );
var block = new fBlock();
var paragraph = block.defaultParagraph;
var style = block.defaultStyle;
var graphic = {};
var useGraphic = false;
var isBlock = -1;
formatting.fish[ template.stylerFish ]['isBlock'] = 0;
formatting.fish[ template.stylerFish ]['isHidden'] = 0;
formatting.fish[ template.stylerFish ]['startNew' ] = 0;
formatting.fish[ template.stylerFish ]['pageSet'] = '';
formatting.fish[ template.stylerFish ]['pageType'] = 0;
formatting.fish[ template.stylerFish ]['pageNumber'] = 0;
formatting.fish[ template.stylerFish ]['wantColumnTopMargin'] = 0;
formatting.fish[ template.stylerFish ]['customTable'] = 0;
formatting.fish[ template.stylerFish ][ 'markerType' ] = '';
This section provides two sets of information that may be used later in the code. It
sets up the object and defines variables to hold settings made in certain areas of
the Arbortext Styler UI. Note that there is a default set of variables for each object
type you are permitted to edit, and the same set will be created in source for every
object of a certain type. In this example, these are the variables that are set up for
an element context.
• Object :
var block = new fBlock();
The code sets up a new block and provides the variable that will hold the
block information.
• Variables:
var paragraph = block.defaultParagraph;
var style = block.defaultStyle;
var graphic = {};
var useGraphic = false;
var isBlock = -1;
formatting.fish[ template.stylerFish ]['isBlock'] = 0;
formatting.fish[ template.stylerFish ]['isHidden'] = 0;
formatting.fish[ template.stylerFish ]['startNew' ] = 0;
formatting.fish[ template.stylerFish ]['pageSet'] = '';
formatting.fish[ template.stylerFish ]['pageType'] = 0;
formatting.fish[ template.stylerFish ]['pageNumber'] = 0;
formatting.fish[ template.stylerFish ]['wantColumnTopMargin'] = 0;
formatting.fish[ template.stylerFish ]['customTable'] = 0;
formatting.fish[ template.stylerFish ][ 'markerType' ] = '';
This section describes property sets that has been assigned to the context for all
outputs.
Referring to the sample axdocbook.style, for Base (All Outputs), you will
see that the title in sect1 context has two property sets assigned:
1. title
2. Title 3
• Breaks category:
○ Numbered element
○ Added before element content: compound number defined in Division Title
Number dialog box
Note that this context is also set to appear in the table of contents for the book
(see the table of contents object Book Table of Contents). The last lines
in the code reflect this.
This section describes a property set that has been assigned to the context for
print/PDF outputs only.
Referring to the sample axdocbook.style, for Print/PDF outputs, you will
see that the title in sect1 context has the Title color for print
property set assigned.
In this section, a set of if/else conditions describes how the context should be
processed based on the settings for it in the Keep space at top of column or page
field of the Spacing category in the Arbortext Styler UI. In that field, a setting of
Keep equates to a value of 1 in source code, and a setting of Discard will pass
a value of 0 in the code. This code fragment specifically describes the formatting
that should be applied when the field is set to Keep, and provides an alternative
when it is not, i.e. when the Keep space at top of column or page field is set to
Discard.
Note that the wantColumnTopMargin variable, as defined at the beginning of the
code, is set to hold the Keep space at top of column or page information for the
context.
In this section, a set of if/else conditions describes how the context should be
processed based on the settings made for context in the Start new field on the
Breaks category in the Arbortext Styler UI. In the field, a setting of Page equates
to a value of 2 in source code, and a setting of Column will pass a value of 1 in
In this section, a set of if/else conditions describes how the context should be
processed based on the settings made for context in the Structure type field on the
Breaks category in the Arbortext Styler UI. In the field, a setting of Block
equates to a value of 1 in source code. This code fragment specifically describes
the formatting that should be applied when the structure is set to Block, and
provide an alternative when it is not, i.e. when the Structure type field is set to
Inline. Notice that the code lays out instructions for creation of individual
columns and gutters when the context is of Block structure. This aligns with the
column information provided in the page set for the context – you can therefore
chose to edit the column information in either the code or the page set.
Note that the isBlock variable, as defined at the beginning of the code, is set to
hold the Structure type information for the context.
This section reflects the settings made in the stylesheet for the context, for its
appearance in a table of contents. Here you can see that the title in sect1
context is selected for inclusion at level 2 of a table of contents generated by the
Book Table of Contents table of contents object. For confirmation of these
settings, please refer to Book Table of Contents object in the Table of
Contents list in the Arbortext Styler UI.
In this section, a set of if/else conditions describes how to process any markers
(bullets, numbers, footnotes) set for the context.
Note that the markerType variable, as defined at the beginning of the code, is set
to hold the marker information for the context.
This section states that if a context contains a graphic, one will be output.
Note that the useGraphic variable, as defined at the beginning of the code, is set
hold the graphic information for the context.
Context contents
This section describes objects that are contained within the boundary of the
selected context, for example a table or a definition list within a block. There is no
information of this type shown in this piece of code so the entry is empty.
OnExit command
<OnExit type=”application/x-javascript” xml:space=”preserve”>
formatting.fishRestore( template.stylerFish );
]]></OnExit>
The OnExit command marks the end of the context. It contains instructions to
undo everything set by the OnEnter command – ends the object that was
created, terminates any page sequencing, resets variables, etc.
Note
You may also choose to edit the source of a single context of the para
element only. Use the same steps as detailed above, but select the relevant
element context in the Elements list before choosing the Edit ▶ Edit Context
Source ▶ FOSI menu option. When you have completed the edit, only the
selected context will display the visual indicators that it contains edited
source, rather than the element and all its contexts. The change will apply
only to the selected context.
Note
Your stylesheet must be set to use FOSI as the print/PDF engine to access
this menu option.
2. In Arbortext Editor, select the exported FOSI as the stylesheet for the
document.
3. View the completeness errors that are reported by Arbortext Editor/Arbortext
Styler when the stylesheet change is made.
4. Locate and edit the erroneous references directly in the FOSI source: open the
exported FOSI in Arbortext Editor, then use the Tools ▶ IDs and ID References
tool to locate the particular reference causing the error.
Note
The name of a charsubset in FOSI differs slightly from that of the
corresponding property set in the Arbortext Styler stylesheet: spaces are
replaced by underscores, and single underscores are replaced by double
underscores. For example, the property set Title font in Arbortext
Styler is listed as the charsubset Title_font in the FOSI source.
The same convention applies for page set names and the names of
variables in TOCs and cross references.
Note
Your stylesheet must be set to use FOSI as the print/PDF engine to access
this menu option.
2. In Arbortext Editor, select the exported FOSI as the stylesheet for the
document.
3. View the completeness errors that are reported by Arbortext Editor/Arbortext
Styler when the stylesheet change is made.
4. Locate and edit the erroneous numbering definitions directly in the FOSI
source: open the exported FOSI in Arbortext Editor, then use the Tools ▶ IDs
and ID References tool to locate the particular definition causing the error.
Note
It is important to note that edited source that is embedded in a .style file
has its markup characters “escaped”; for example < characters are changed to
< references. For this reason it is not possible to simply copy the updated
elements from the exported XSL file to the original .style file. By copying
the new code to the original file via the edited source window, Arbortext
Editor will update the new code correctly, escaping the characters as required.
to:
<fo:leader leader-pattern="rule" rule-thickness="1.00pt"
leader-length="12.00pt" leader-pattern-width
="use-font-metrics" baseline-shift="0.00pt">
<xsl:attribute name="leader-length">
<xsl:call-template name="blanksize-to-leader-length">
<xsl:with-param name="blanksize" select="@blanksize"/>
</xsl:call-template>
</xsl:attribute>
</fo:leader>
You can create and use custom CSS to replace the CSS generated by Arbortext
Styler when creating HTML-based outputs. This means that both HTML file and
chunked HTML output can now include:
• External CSS stylesheets as well as Styler-generated CSS stylesheets
• Custom CSS definitions that are directly associated with the HTML elements
generated during publishing
733
Associating External CSS with Styler
Stylesheets
There are two methods in which Arbortext Editor stylesheets can be configured to
provide the CSS styling for HTML-based outputs. The CSS can either be
embedded in the HTML or be provided as a separate file linked to the HTML.
However, there may be few scenarios when a user would want to include further
CSS styling for the HTML generated by Arbortext Styler stylesheets. Following
are examples of different scenarios:
• Arbortext Styler does not create ‘responsive’ styling, but a separate stylesheet
can be created to apply the @media tests and subsequent styling changes to
provide the desired look and feel for different viewport sizes.
• To provide styling options which are not available through the Arbortext
Styler interface.
To associate external CSS stylesheets with HTML output, follow these steps:
1. In Arbortext Styler, open the Stylesheet Properties dialog box.
2. Click theHTML File or the HTML Chunk tab.
Note
A file picker is not provided as he location is usually a web URL. Local files can
also be linked, but if using relative location paths, they must be relative to where
the HTML file is deployed.
You can edit the path to the selected CSS file by clicking Edit You can remove the
linked file by clicking Delete.
The associated stylesheets are listed after those created from Styler (in this case
external stylesheets have been selected) to allow the external CSS to override any
declarations that Arbortext Styler generates.
• When you publish with internal CSS, the custom CSS style definitions appear
in a separate <style> block within the <head> section of the HTML file after
the generated style block.
The element to which CSS style is applied has the class attribute set to the value
specified in the HTML Tag category.
Arbortext Styler provides multiple options for you to extend a stylesheet with
ACL or JavaScript code, to add dynamic processing, content, layout, and
interactivity:
• Access ACL or JavaScript scripts via XPath
• Associate JavaScript libraries with a stylesheet and include them in HTML
output
• Manage custom JavaScript functions in a stylesheet and include them in print/
PDF and HTML outputs
745
Accessing Scripts from Arbortext Styler
The ability to access scripts from Arbortext Styler is an advanced feature that
permits you to use ACL and Javascript as part of your stylesheet processing. For
example, you might want to examine application configuration information to
make a style decision, or insert a string from a configuration file in generated text.
Script access is available wherever Arbortext Styler allows you to use XPath, via
the supplied XPath extension functions _js:eval() and _acl:eval().
Scripting must be done with care. Please refer to Guidelines for Accessing Scripts
below.
The examples below show how to utilize scripts to perform some common tasks
in Arbortext Styler.
Note
The PTC Arbortext print engines and HTML processing use different
JavaScript processors. This may result in differences in output. Please ensure
that you test your script in all outputs, and with the print engine you will be
using to ensure you are happy with the results.
• When using XPath to call script functions that return boolean (true/false)
values, note that the boolean values are returned from the scripts as strings —
1 (true) or 0 (false). Consequently, XPath expressions testing these functions
should be written in the form shown below:
_acl:eval('myfunc()' = '0')
Otherwise, XPath will interpret the returned 0 as true, because XPath
interprets any non-empty string as true.
or
mt xmlns:_acl="java:com.arbortext.epic.Acl"
3. Place the cursor inside the element whose context will contain the required
condition. In the Arbortext Editor command line, enter the command eval
oid_xpath_boolean(oid_caret(), "self::node()[...]") -
replacing ... with the expression you wish to use for the XPath test.
oid_xpath_boolean is useful for trying out scripts for conditions
Use oid_xpath_string if you want to test scripts for use in XPath string
in generated text.
4. Look at the resulting value in the Eval Output window - if the value is 1, the
test is true. If a value of 0 returned, the test is false.
Note
Arbortext Styler does not validate the path provided here.
ALD Functions
To create a custom ALD function in a stylesheet (or in a stylesheet module, if you
want to group functions and share them with other stylesheets):
1. Make sure that your environment is set to use PTC APP as the effective print
engine.
2. Custom JavaScript functions for ALD output are held in ALD Function
objects. Navigate to the ALD Functions list and click Insert ▶ ALD Function
.
3. Name the ALD Function object, for example jscript. Note the name
appears in the Description tab for the object, for example
_user.jscript()
Note
If you rename an ALD Function object, the new name will not pass to
references to the object. You must update the references manually.
4. Edit the function by clicking the Edit button in the lower window. You can also
select an ALD Function object in the list and choose Edit ALD Function from
the context menu. The ALD Source Editor window opens with some default
code provided.
5. Enter your JavaScript code into the empty lines in the window. Auto-
completion with a list of suggested function names is provided as you type.
6. Click File ▶ Apply to save the code change.
HTML Functions
To create a custom HTML function in a stylesheet (or in a stylesheet module, if
you want to group functions and share them with other stylesheets):
1. Custom JavaScript functions for HTML output are held in HTML Function
objects. Navigate to the HTML Functions list and click Insert ▶ HTML
Function .
2. Name the HTML Function object, for example jscript. Note the name
appears in the Description tab for the object, for example jscript().
Note
If you rename an HTML Function object, the new name will not pass to
references to the object. You must update the references manually.
3. Edit the function by clicking the Edit button in the lower window. You can also
select an HTML Function object in the list and choose Edit HTML Function
from the context menu. The HTML JavaScript Editor window opens with some
default code provided.
4. Enter your custom JavaScript code into the empty lines in the window. Auto-
completion with a list of suggested function names is provided as you type.
Note
Your Arbortext Styler environment must be setup to use PTC APP as the print
engine for PDF output.
Stylesheet modules that provide sample code for defining and embedding PDF
Forms are provided in Arbortext-path/samples/APP/
pdfFormFields. Advanced users of Arbortext Styler can use the modules in
their stylesheet or customize them.
The sample stylesheets provide User Formatting Elements (UFE), Property Sets
and custom PTC APP Functions to insert and use the PDF Form fields.
Further Information
For more information about PDF Form Fields, see the PTC Advanced Print
Publisher (PTC APP) Help Center. It contains information about the JavaScript
objects that support PDF Forms, for example fPDFFormItem, and the objects
which inherit it, such as fPDFFormListBox.
The Help Center also contains information about the types of PDF Action
supported by PTC APP.
Note
In PDF, only the cross symbol fits squarely in the box. The other symbols
appear to the right.
763
PDF tags Category .................................................................................................. 831
HTML tag Category ................................................................................................. 834
RTF Category ......................................................................................................... 838
Graphic Category .................................................................................................... 843
Page Sets - Page Size Category............................................................................... 844
Page Sets - Page Types Category ............................................................................ 847
Page Sets - Columns Category ................................................................................ 848
Page Sets - Page Numbers Category........................................................................ 851
Page Sets - Other Category ..................................................................................... 852
Page Regions - Position Category ............................................................................ 853
Page Regions - Text Category .................................................................................. 855
Page Regions - Graphic Category ............................................................................ 856
Page Regions - Borders Category ............................................................................ 858
Page Regions - Other Category................................................................................ 859
Indexes - General Category ..................................................................................... 861
Indexes - Format Category....................................................................................... 861
Custom Tables - Elements Category ......................................................................... 862
Custom Tables - Cells Category................................................................................ 863
Custom Tables - Header Cells Category.................................................................... 864
Custom Tables - Format Category ............................................................................ 866
Custom Tables - Background Color Category ............................................................ 869
Menus .................................................................................................................... 870
Toolbars ................................................................................................................. 894
PTC APP Source Editor ........................................................................................... 897
Source Editor .......................................................................................................... 899
Generated Text Editor.............................................................................................. 903
This section provides a full description of the Arbortext Styler UI and its object
lists, fields, property tabs, menus, toolbars, and editors.
For example, suppose you have a property set allcaps defined in your
stylesheet, which t is referenced to format titles in sections and chapters. To
list the current uses of the property set, select the allcaps property set in the
Property Sets list, then click the Edit ▶ Find Where Used menu option to access
the Find Where Used dialog box. Once you have confirmed the selection you
will see two results for the property set, advising you that it is referenced from
the title in section and title in chapter contexts. If you
subsequently change the title in section context to be styled with the
bold property set and then reopen the Find Where Used dialog box for the
allcaps property set (or refresh the results dialog box if it was left open
while you changed the properties for the context), you will see that only one
entry now exists for allcaps, i.e. the entry for the title in chapter
context.
As a second example, you may wish to replace a definition with a definition of
the same type. Suppose you have two property sets in your stylesheet, property
set A and property set B, which have exactly the same settings. You may wish
to remove property set B from the stylesheet altogether and only use property
Elements List
A list that can contain the following elements, and any contexts or conditions
applied to those elements:
• Stylesheet elements, with their associated contexts and conditions.
• Styler Formatting Elements (SFE): formatting elements configured by
Arbortext Styler that start with the _sfe: namespace prefix. These elements
appear in the list when the View ▶ Styler Formatting Elements option is
enabled.
• User Formatting Elements (UFE): user-configured formatting elements that
start with the _ufe: namespace prefix. These elements appear in the list
when the View ▶ User Formatting Elements option is enabled.
Note
When you select a recursive division element for your table of contents
scope, only the outermost occurrences of that element are included in the
table of content.
• Use for PDF bookmarks - Indicates whether the entries in this table of contents
should also be output as bookmarks in your final PDF file. If you have
multiple tables of contents format objects for your document type, you can
enable this option for any or all of those objects. The resulting bookmark list
will be the union of all the tables of contents format objects defined for your
document type that have this option selected, with duplicate entries removed,
even if those have not been referenced from an element context. This option is
unchecked by default.
Use the Limit PDF bookmark levels opened initially (APP and FOSI only) option
in the Print/PDF tab of the Stylesheet Properties dialog box to control the
number of levels of bookmark that will be open in an output PDF.
If you have this option checked for FOSI output you may see the error
message shown below in the field at the bottom of the properties area:
Some titles will not appear in PDF bookmarks. Click Customize button
for details
This message means that some title contexts set to appear in the TOC do not
specify a direct parent. These contexts will not produce bookmarks in output
generated by FOSI. For example, the context title everywhere is not
acceptable, but title in book is permitted. Click the Customize button to
Note
Index term, footnote, and other hidden elements that are included in a
division title will be output in the PDF bookmark for the division. You
should ensure that you place elements of this type in the first element
following the title to avoid them being displayed in the bookmark.
• Use for chunked HTML outputs (EPUB, HTML Help, and Web) - Indicates
whether the entries in this table of contents should be included in the online
TOC in EPUB, HTML Help, or Web output. If this option is checked the
resulting TOC will be displayed in a separate frame in the HTML file or web
page. If you have multiple tables of contents format objects for your document
type, you can enable this option for any or all of those objects. The resulting
online TOC will be the union of all the tables of contents format objects
defined for your document type that have this option selected, with duplicate
entries removed, even if those have not been referenced from an element
context. This option is unchecked by default.
When generating TOCs for EPUB output with this option, only titles at levels
1–3 in the document hierarchy will be included.
• Customize Title Contexts - Opens the Customize Table of Contents dialog box,
allowing you to select any title context currently configured in the stylesheet
for inclusion in the table of contents.
• Format - Opens the Table of Contents Format dialog box, in which you can
change the appearance of the table of contents.
Indexes List
A list of index definition objects configured for the stylesheet. This list displays
when you choose View ▶ List View ▶ Indexes, or if you assign the Index style to an
object via the Edit ▶ Style menu option.
When this list is active, the Insert Index button appears in the Standard
toolbar, allowing you to create a new index definition object in the list.
The Properties area of the Indexes list contains categories in which you can
configure the scope and styling provided by an index definition object:
• General category (see Indexes - General Category on page 861): define the
scope of the index
• Format category (see Indexes - Format Category on page 861): configure the
appearance of the index
Refer to Indexing Overview on page 378 for further information to assist you in
setting up an index.
Sizes List
A list of Size definitions configured for the stylesheet. This list displays when you
choose View ▶ List View ▶ Sizes
When this list is active, the Insert Size button appears in the Standard toolbar,
allowing you to create a new Size definition in the list.
Note that, if you create a new Size object, its name must follow the conventions
listed below:
• Must start with a letter, and consist of letters, digits, periods, dashes,
underscores, or spaces - the normal rules for a definition name in Arbortext
Styler
• Cannot contain parentheses or mathematical operators (-, +, * or /) - the Size
definition may be used in expressions in the future
• Cannot be of the same name as the special font size names configured in
Arbortext Styler:
○ xx-small
Measurement Value
Bottom margin 1.5in
Column width in a 2 column table 18pc
Column width in a 3 column table 11.5pc
Column width in a 4 column table 8.5pc
Column width in a 5 column table 7pc
RTF Prece-
Style/ dence Source Com-
Style Field Category Module Edits ment
Elements • • • • • •
Property • • • •
Sets
Page Sets • • • •
Page • • • •
Types
Page • • • •
Regions
Generated • • • •
Contents
Tables of • • •
Contents
Indexes • • •
Custom • • •
Tables
Cross • • •
Referen-
ces
Sizes • • •
Combined • • •
Fonts
A description of each column is given below:
• Style - The style associated with the element or its context.
When you are styling a DITA document, Arbortext Styler detects when an
unstyled, specialized DITA element has an associated base element that has
been styled and provides that information in this column. For example, the
DITA step element is a specialization of the li element. If you have styled
li but not step, Arbortext Styler applies the styling for the li element and
displays the following message in the Elements list for the step element:
Unstyled (List Item by specialization)
If you hover the cursor over this message, the following additional information
is provided in a tooltip:
(Specialization of li, using List Item style)
This is useful if you navigate your stylesheet with the elements collapsed. If an
element context has edited source but the element itself does not, the orange
square around the element icon does not appear in the UI but the presence of
the orange tick indicates that one of the element’s contexts has edited. The
orange square only indicates the presence of edited source at element level.
See Identifying Items that have Edited Source on page 700 for further
information.
• Comment - The first lines of text for any comments entered by the user for the
selected item or context. If the comment is longer than the size of the column,
The widths of the columns in the list view are saved as a preference when
Arbortext Styler closes, and will be opened to the saved widths when a new
Arbortext Styler session starts.
Description Tab
A read-only field that describes the formatting properties that have been specified
for the selected object. Output-specific settings are shown in this field, each on a
separate line. Referenced property sets are listed first, then any properties
explicitly set for the selected object. If multiple objects, or a top level element, are
selected in the list, this field is empty.
The Description field also contains a confirmation in orange text if source edits
have been defined for the selected object, and the label of the tab changes color to
orange.
If you have selected a Styler Formatting Element (SFE) in the Elements list, the
Description tab shows a comment explaining where the SFE is used, as well as the
usual summary of specific formatting properties that have been applied. An
example is shown below:
Comment Tab
A tab containing a field in which a user can enter a comment about the selected
object, for display in the Arbortext Styler interface. The tab appears in every list
view, permitting you to add a comment about any of the objects in your stylesheet,
including individual element contexts or conditions. The tab is greyed out if the
user is not permitted to edit the comment, for example if it is part of a read-only
module.
The comment is stored as an XML attribute and as such is subject to the following
restrictions:
• Only text characters are permitted
• No special formatting or markup can be applied
• Must not exceed 6,000 characters in length
You may create the comment either by typing or by pasting text into the field,
providing that text adheres to the conventions listed above.
Once you have completed your comment, the label of the Comment tab is
highlighted in bold blue (Arbortext Styler's default user customized color). When
you have clicked out of the Comment tab, the first characters of the comment will
appear in the Comment column for the object, if this has been activated for display
in the Arbortext Styler window via the Configure Columns dialog box.
Note
You may also add a comment to an object in such a way that the comment will
be carried with the stylesheet when it is exported to another format. To achieve
this, elect to edit the source of the element in the desired language. In the
Edited Source window, choose the Insert ▶ Comment menu option and add text
as required. To review the comment once it has been saved, either choose the
View ▶ Source option in Arbortext Styler, or open the exported stylesheet in a
text editor, and locate the object in the code. The comment will be declared in
the object definition:
You can add comments in this way for any objects for which source edits are
permitted. See the table Supported types of source editing in Editing
Stylesheet Source Overview on page 703 for information.
Text Category
The Text category provides options for specifying formatting characteristics for
text, such as bold, italic, underline, size, and color.
The following table describes the properties in the Text category:
Note
The Size field has a default value if
you have set the value of the Super/
Subscript field:
Note
The Offset field has a default value if
you have set the value of the Super/
Subscript field:
Indent Category
The Indent category provides options for specifying indent formatting
characteristics for elements with a Block structure.
Note
The options on the Indent category are not available if Structure type in the
Breaks category is set to Inline.
HTML File, HTML Help, and Web outputs have the following indent limitations:
• Left indent can only be displayed correctly if relative to parent's left indent
• First line indent can only be displayed correctly if relative to current left
indent.
• Right indent can only be displayed correctly if relative to parent's right indent.
• A hanging indent is where the first line of a block is not indented as far as the
rest of the block. You can get this effect simply by setting First line to a lesser
value than the value set for Left.
• Indent values can be negative. A negative value for Left or First line causes the
left edge of text to be moved to the left. A negative value for Right causes text
to extend further to the right.
Note
Negative indents relative to the left margin display correctly in Print and
PDF but not in other outputs or in the Arbortext Editor pane.
Spacing Category
The Spacing category provides options for specifying line spacing for elements
with a block structure. The options on the Spacing category are not available when
Structure type in the Breaks category is set to Inline.
Note
The At, Preferred, Minimum, Maximum fields of this tab allow you to either
type an arbitrary size in the field or choose a defined size by selecting from the
list of Size objects configured for your stylesheet. For the latter option, click
the Select Size button next to the field for which you wish to set the
measurement and select the name of the required Size object from the
resulting list. Once you have selected a Size object the measurement it defines
will be displayed wrapped in angle brackets (< > characters) in the relevant
field. For example, the Size object InchSize defines a measurement of
1.00in:
Breaks Category
The Breaks category provides options for specifying, word, line, and page breaks
formatting properties.
The following table describes the properties on the Breaks category.
Note
When the Structure type field is set to Inline for an element, the Page set
fields are deactivated.
Note
When the Structure type field is set to Inline for an element, only the Keep
properties (print/PDF and RTF only) fields are available. All other properties
are deactivated.
Note
The properties in this category are unavailable if
• the stylesheet is destined for non-chunked HTML outputs, i.e. if the Outputs to
edit field is set to a value other than Base (All Outputs), HTML Help, Web, or
EPUB.
• the Element HTML chunking properties option in the HTML tab of the
Stylesheet Properties dialog box has not been checked.
Note
When two or more contexts, conditions, or property sets are selected in the
Elements or Property Sets lists, all the controls on the Property sets category
are disabled, unless all the selected objects reference the same property sets.
Footnote Category
The Footnote category provides options for specifying how footnotes are
configured. Footnote properties can only be applied to element contexts or
conditions and as such the category is not available when a property set is selected
in the Property Sets list. Also, the category is only available when Outputs to edit
is set to Base (All Outputs) and cannot be used to set footnotes to appear
only in certain outputs of the document.
The following table describes the properties in the Footnote category.
Property Description Default Value
Element is not Indicates that the selected element is not Selected for all
footnote related related to footnotes. elements except
those with the
Footnote style.
Element contains Indicates that the selected element Selected for
footnote text contains text for footnotes. When you elements with the
select this option, two other options are Footnote style.
Note
Other properties in the Border
properties field are disabled if no
sides are activated.
A border rule setting is not inherited to
child elements.
Thickness Set the thickness of the rule applied as the 1px
border.
You can choose a measure, enter it
manually or use a Size definition object
from the stylesheet.
Offset Set the distance of the border rule from 0px
the block edge.
You can choose a measure, enter it
manually or use a Size definition object
from the stylesheet.
Color Specify the color of the border rule. Black
Style Specify the rule style. Single
Some Arbortext Styler rule styles are not
supported in HTML output. For more
information, see Differences in Output
Support on page 1084.
Rounded corners Specify whether borders should be joined No
with a rounded corner.
Note
The Rounded corners option is only
available if you have activated two
adjoining borders.
Radius If you have selected Yes for Rounded 1px
corners, set the stretch of the curve of the
corner.
You can choose a measure, enter it
manually or use a Size definition object
from the stylesheet.
Note
em is not a valid unit of measurement
for this field. If a value in em is used,
either by typing in the field or
referencing a Size definition, it will be
processed as follows:
• FOSI, XSL-FO, and HTML outputs
will treat 1em as 1pc
• PTC APP will treat 1em as the current
font size
It is recommended that you do not
reference a Size definition with a value of
0 in this field. This may produce
unexpected results.
Horizontal gap Specifies the space between the block 0pc
allowed for the current element and the
content of the following element.
Note
em is not a valid unit of measurement
for this field. If a value in em is used,
either by typing in the field or
referencing a Size definition, it will be
processed as follows:
• FOSI, XSL-FO, and HTML outputs
will treat 1em as 1pc
• PTC APP will treat 1em as the current
font size
It is recommended that you do not
reference a Size definition with a negative
value in this field. This may produce
unexpected results.
Note
The Horizontal offset, Width, Horizontal gap fields in this category allow you to
either type an arbitrary size in the field or choose a defined size by selecting
from the list of Size objects configured for your stylesheet. For the latter
option, click the Select Size button next to the field for which you wish
to set the measurement and select the name of the required Size object from
the resulting list. Once you have selected a Size object the measurement it
defines will be displayed wrapped in angle brackets (< > characters) in the
relevant field. For example, the Size object InchSize defines a
measurement of 1.00in:
• If position and indent settings mean that the current element does not overlap
the following content, the following content will not wrap around the current
element.
Note
Properties in this category are not inheritable.
The following table describes the properties in the PDF tags category.
Note
Properties in this category are not inheritable.
The following table describes the properties in the HTML tag category.
Note
It is possible that Validate Stylesheet
will not flag all instances of
unsuitable tag usage, especially if the
output is valid but just does not
display well. Always review your
output to confirm it looks correct, and
make tagging changes as required if
not.
HTML attribute The attribute that will be assigned to the
HTML tag in HTML output. Choose an
attribute from the drop down list or
manually enter any valid XML attribute
name.
If you enter an attribute that is
automatically set during publishing, e.g.
rowspan, colspan, lang, the value you
supply for the attribute will override that
automatically set. Note that this does not
apply for the ID attribute.
Click Add or Edit to open the HTML
Attribute dialog box. Here you can create
or update any of the HTML attribute
settings, including referencing a custom
JavaScript function to be called. Click
Delete to remove a setting.
Some HTML4 attributes are not allowed
in HTML5. Refer to HTML Attribute
Dialog Box on page 979 for further
information.
Appropriate CSS should be used when
generating HTML5 instead.
XPath An XPath expression corresponding to
the setting made in the HTML Attribute
dialog box to provide the value of the
HTML attribute.
RTF Category
When Arbortext Import/Export is installed and licensed, and one or more element
contexts are selected in the Elements list, the RTF category is added to the
Arbortext Styler window. This category lets you map Arbortext Styler element
contexts to RTF-specific styles and fields to be included in exported documents.
The following table describes the properties in the RTF category.
Graphic Category
The Graphic category provides options for specifying the pages in a PDF graphic
to be included in print/PDF output generated by the PTC APP engine.
For information on inserting PDF graphics into XML content, see Vector Graphics
in Arbortext Editor help.
The properties in the Graphic category apply for contexts and conditions of
elements styled as Graphic, and for property sets.
The following table describes the properties in the Graphic category.
Note
Refer to Units of measurement in Arbortext Editor help for information on
valid units.
If this setting is selected, click Landscape to change it. Making this change
will swap the values in the Width and Height fields.
• Landscape - Prints all content in landscape format
If this setting is selected, click Portrait to change it. Making this change will
swap the values in the Width and Height fields.
• Width - Specifies the width of the page on which the document is printed. The
field is populated automatically when you select a standard page size. If you
make a change to Width or Height when you have selected a standard page size
in the Page size list, that setting will change to Custom when you leave the
field.
• Height - Specifies the height of the page on which the document is printed.
The field is populated automatically when you select a standard page size.
• Preview - Displays the results of the settings made in this category.
Refer to Setting a Page Size and Orientation for a Page Set on page 182 for
examples and further information to assist you in configuring the page size
settings for a page set.
You can also use the settings in the Page Size category to specify the margins for
your page set. You can specify margins for single-sided page sets, double-sided
page sets, and double-sided page sets with mirror margins.
Margins specified by the properties in this category are guides only. They are only
used to provide the correct positioning for regions that are given measures relative
to the margins (see the Position category on page 853 of the Page Regions list). If
a page set contains regions that all have absolute positioning, the margins will
have no effect.
Note
Refer to Units of measurement in Arbortext Editor help for information on
valid units.
You must select a page type in this field or the page set will not be valid.
• First page when right
• Left pages
• First page when left
• Blank pages
If you do not set this field, the left page will be used for left blank pages and
the right page will be used for blank right pages.
• Blank left pages and Blank right pages - these settings will only be available if
you are publishing to print or PDF via the PTC APP engine.
○ Top - Arbortext Styler does not vertically justify content across columns
and pages (ragged bottom).
○ Justified - Arbortext Styler vertically justifies content across columns and
pages (flush bottom). Some elements that occur on a page must have
Note
If you select the Justified option and the amount of variation specified
for the elements on the page in the Spacing category is insufficient,
Arbortext Styler may use up to three times the amount of variation
specified.
○ Gutter rules: select this option to draw a rule around the default gutters
between default columns in a page set.
○ Thickness: the width of the rule
○ Color: the color of the rule
○ Style: the line style of the rule
These options are not available if your stylesheet is set to generate print/PDF
output with the FOSI or XSL-FO engines.
The Default gutter width and Thickness fields allow you to either type an arbitrary
size in the field or choose a defined size by selecting from the list of Size objects
configured for your stylesheet. For the latter option, click the Select Size button
next to the field for which you wish to set the measurement and select the
name of the required Size object from the resulting list. Once you have selected a
Size object the measurement it defines will be displayed wrapped in angle
brackets (< > characters) in the relevant field. For example, the Size object
InchSize defines a measurement of 1.00in:
The Width and Gutter fields also take relative values, represented by an integer
followed by an asterisk. Relative values are transformed into widths once all
absolute column and gutter widths have been subtracted from the region width, by
distributing the remaining space among the columns and gutters that have relative
widths. Each relative column and gutter will be allocated a proportion of the
remaining space according to its relative value.
For example, in a four column layout where the Width values of the columns are
1in, 2*, 1* and 1*, column 2 will receive half the space remaining after 1 inch
has been subtracted for column 1. Columns 3 and 4 will each receive a quarter of
that remaining space.
Refer to Setting Columns in a Page Set on page 186 for examples and further
information to assist you in defining a column layout for a page set.
The rotation of the content can be set to 0, 90, 180 or 270 degrees.
The rotation of the region can be set in increments of 0.1 degrees.
Different rotation options are available, depending on the type of content the
region contains. The print engine set for your stylesheet also has an effect on
the options provided here:
Angles -
Print engine Content type Option degrees
FOSI/XSL-FO Generated Region Increments of
Content 0.01
Content 0, 90, 180, 270 or
360
Main Content Region 0 or 90
Flow
Refer to Defining Page Regions on page 190 for examples and further information
to assist you in configuring the page layout settings for a page set.
Refer to Defining Page Regions on page 190 for examples and further information
to assist you in configuring the page layout settings for a page set.
○ External: enter a path to the required graphic. Enter the path manually or
use the Browse button to open the file picker dialog.
○ Use Xpath: enter an XPath expression that will produce a string
representing a path to the graphic. Select the option then click Edit to
launch the Edit Graphic XPath dialog box on page 949.
This option is only available when the stylesheet is set to generate print/
PDF output with the PTC APP engine.
• Horizontal scaling - define changes to the width of the graphic:
Refer to Defining Page Regions on page 190 for examples and further information
to assist you in configuring the page layout settings for a page set.
Enter a positive value to curve the corner outwards, and a negative value to
curve it inwards. Greater values provide a more gradual curve.
The Thickness, Offset, and Radius fields allow you to either type an arbitrary size
in the field or choose a defined size by selecting from the list of Size objects
configured for your stylesheet. For the latter option, click the Select Size button
next to the field for which you wish to set the measurement and select the
name of the required Size object from the resulting list. Once you have selected a
Size object the measurement it defines will be displayed wrapped in angle
brackets (< > characters) in the relevant field. For example, the Size object
InchSize defines a measurement of 1.00in:
Refer to Defining Page Regions on page 190 for examples and further information
to assist you in configuring the page layout settings for a page set.
Note
PDF graphics (and EPS and CGM graphics) use the opacity values of the
objects in the PDF graphic. A setting in this field for these graphic types
will be ignored.
• Clip region at page edge - select this option to terminate the region at the page
edge if it is going to overrun. Note that content in the region will also be cut
off at the page edge. It will not wrap.
Do not select this option if you are creating a region that should overflow the
page edge, for example a bleed tab.
This option is not available if your stylesheet is set to generate print/PDF
output with the FOSI or XSL-FO engines.
• Avoid - use the controls in this field to specify that the text content of
preceding regions should flow around this region, if it is laid over preceding
regions. You can increase the area to be avoided by applying Top margin,
Bottom margin, Left margin, and Right margin measures in addition to this
region’s size.
The order in which regions are drawn onto a page is defined in the Page types
category for a page set.
○ Underlaid regions avoid this region: select this option to specify that the
content of underlaid regions should avoid this one
This option is not available if your stylesheet is set to generate print/PDF
output with the FOSI or XSL-FO engines.
The Top margin, Bottom margin, Left margin, and Right margin fields allow you to
either type an arbitrary size in the field or choose a defined size by selecting from
the list of Size objects configured for your stylesheet. For the latter option, click
the Select Size button next to the field for which you wish to set the
measurement and select the name of the required Size object from the resulting
list. Once you have selected a Size object the measurement it defines will be
displayed wrapped in angle brackets (< > characters) in the relevant field. For
example, the Size object InchSize defines a measurement of 1.00in:
Note
Any cell generation or column reordering settings made in this category will
be ignored in print/PDF output via FOSI if the Use style properties for Print/
PDF with FOSI engine option in the Format category on page 866 is checked.
• Generated cells - configure XPath expressions to generate cells for the custom
table, when no cell element exists in the content model of the element being
styled as a custom table. The cells generated will form columns in the body of
the table. Generated cells can appear in the table as well as those elements
given the role of Cell in the Elements category.
The field displays a list of cell elements that will be generated for the table,
and the expressions that will provide their content. Content via XPath can
either be extracted from document content or provided as text. Use the
accompanying buttons to create and manage the list:
○ New: open the Generated Cell dialog box on page 977, in which you can
add a new specification for a generated cell.
Note
If the table contains any specifically defined cell elements, only those
elements will create cells. A cell element can be defined in two ways:
○ Assigning the role of Cell to an element in the Elements category for
custom tables.
○ Generating a cell via XPath
Cells created by assuming that children of the element defined as a Row
should be classed as cells will be suppressed.
Refer to Creating and Styling a Custom Table on page 405 for examples and
further information to assist you in setting up and using custom tables.
• Generated header cells - configure XPath expressions to generate cells for the
custom table, when no cell element exists in the content model of the element
being styled as a custom table. The cells generated will form columns in the
header of the table. Generated cells can appear in the header as well as those
elements given the role of Cell in the Elements category for custom tables.
The field displays a list of cell elements that will be generated for the header,
and the expressions that will extract them from document content. Use the
accompanying buttons to create and manage the list:
○ New: open the Generated Cell dialog box on page 977, in which you can
add a new specification for a generated cell.
○ Edit: open the Generated Cell dialog box to edit an existing cell generation
specification.
○ Delete: delete a cell generation specification from the list.
When a custom table header cell is generated, Arbortext Styler creates an SFE
to hold its formatting properties. The SFE will be named
_sfe:GeneratedHeaderCell_generatedheadercellname_
customtablename.
If you create a generated header cell, but no element has been assigned the
Header Row role in the Elements category, Arbortext Styler will also generate
a Header Row, and create an SFE to hold its formatting properties. This SFE
will be named _sfe:GeneratedHeaderRow_customtablename.
• Header cell order - define the order in which columns in the header of the table
should be ordered in output. This may differ from the order in which cells
appear in document content.
The list provides fields in which you can specify the method of defining
column order:
○ Document order: select this option to output columns in the order in which
the cells appear in document content.
○ Specified: select this option to create your own order for columns.
Note
If the table contains any specifically defined cell elements, only those
elements will create cells. A cell element can be defined in two ways:
○ Assigning the role of Cell to an element in the Elements category for
custom tables
○ Generating a cell via XPath
Cells created by assuming that children of the element defined as a Row
should be classed as cells will be suppressed.
Refer to Creating and Styling a Custom Table on page 405 for examples and
further information to assist you in setting up and using custom tables.
The following rules values are available. Note that this table also presents the
value that you must set for the attribute specified in the Rules attribute field to
get the required rule effect.
Note
If you are specifying the rules attribute in your document, enter those
values listed in this table under the Attribute value column.
• Rules attribute - Specifies the attribute on the element(s) assigned the Table
role that contains the default table rules value for the custom table.
If more than one element is assigned the Table role, the attribute list contains
the common attributes for those elements.
• Use style properties instead of formatting as custom table for Print/PDF -
Determines whether the custom table definition is used for print/PDF output
generated with the FOSI engine.
By default, the elements in the custom table definition are formatted in all
outputs according to the custom table definition. The matching contexts in the
stylesheet have a very limited impact on formatting. Some properties are
recognized, such as font properties, but others are ignored.
Note
Any background color settings made in this category will be ignored if the Use
style properties instead of formatting as a custom table for Print/PDF option in
the Format category for custom tables on page 866 is checked.
• Header row background color — select the background color for header row(s)
in the custom table.
This control is disabled if you have not defined a header element for your
custom table, either by specifying an element as a header row or by
configuring the generation of header cells.
The default color in this field in None. No color will be applied to the
background so whatever color is behind the cell will be visible.
• Body rows background color repeating pattern — configure the background
color for the body rows in the custom table.
Use the Add Component option to add the required number of colors / number
of rows components in the pattern. You can define a pattern of up to five
alternating colors.
To select a single color to apply throughout the table body, use a single color /
number of rows component.
○ Number of rows — the number of consecutive rows to which the
background color should apply.
Menus
This topic describes the Styler menu in Arbortext Editor, and the menus in the
Arbortext Styler interface
File Menu
The File menu in Arbortext Styler includes the following fields:
Menu option Description Enabled Keyboard
shortcut
New Creates a new stylesheet that Always CTRL+N
includes elements from the current
DTD, schema, or free-form
document, makes it the current
Arbortext Editor stylesheet, and
displays it in the current Arbortext
Styler window, replacing the
stylesheet that was previously
being edited in Arbortext Styler.
The Stylesheet Properties dialog
box appears when you select this
option, allowing you to set basic
publishing and chunking settings to
be applied via your stylesheet.
Open Launches the Open Stylesheet Always CTRL+O
dialog box, which lists stylesheets
in the document and document type
directories that can be edited with
Arbortext Styler. Select one of the
stylesheets listed and click OK to
make the selected stylesheet the
current Arbortext Editor stylesheet
and open it in Arbortext Styler, thus
replacing the stylesheet that was
previously being edited in
Arbortext Styler.
Edit Menu
The Edit menu in Arbortext Styler includes the following fields:
Menu option Description Enabled Keyboard
shortcut
Undo Undoes the last action performed in After CTRL+Z
Arbortext Styler. performing an
action that
modifies the
stylesheet.
Redo Redoes the last action that was After an CTRL+Y
undone. action has
been undone.
Cut Deletes the selected element, When a CTRL+X
context, condition, or property set selected object
and stores it in a paste buffer can be
(clipboard). deleted.
Copy Makes a copy of the selected When a CTRL+C
element, context, condition, or selected object
property set and stores it in a paste can be copied.
buffer.
Paste Inserts the contents of the paste When the CTRL+V
buffer at the selected location. contents of the
paste buffer
can be
inserted at the
Insert Menu
The Insert menu in Arbortext Styler includes the following fields:
Menu Option Description Enabled Keyboard
shortcut
Element Opens the Elements list if this is Always No
not already active, and adds a new
unstyled element
NamedElement.
Add Elements Enables you to add new elements to Always No
from the stylesheet that are declared in
Document or the DTD or schema and any
Doctype declared, undeclared, or
namespaced elements in the
document.
Context Opens the New Context dialog box, When one F10
in which you can create a new styled element
context for the element selected in is selected in
Tools Menu
The Tools menu in Arbortext Styler includes the following fields:
Menu option Description Enabled Keyboard
shortcut
Format Opens the Footnotes dialog box, in Always No
Footnotes which you can set a default
footnote configuration for your
stylesheet.
Validate Page Opens the Validate Page Sets dialog Always No
Sets box, in which you can identify any
page set errors that would occur if
you published the current document
with your stylesheet, and navigate
to the elements or page sets that
contain errors.
Validate Validates the current stylesheet, Always No
Stylesheet producing a list of errors if any
exist.
List Unused Opens the Unused Definitions Always No
Definitions dialog box, which displays a list of
objects that are available for use
but that have not yet been used or
referenced in the current stylesheet.
List Elements Opens the Elements Not in Always No
Preview Menu
The Preview menu in Arbortext Styler includes the following fields:
Menu option Description Enabled Keyboard
shortcut
Arbortext Updates the display of the Always CTRL+E
Editor document in Arbortext Editor using
the current stylesheet settings.
Print Displays the document in the Print Always CTRL+P
Preview window using the current
stylesheet settings.
PDF Generates a PDF file using the Always. You ALT+P,D
current stylesheet settings, and then must have
displays it in Acrobat Reader. Acrobat
Reader
installed to
view the
resulting PDF
file.
EPUB Generates an EPUB file (.epub) Always. You ALT+P,E
using the current stylesheet must have
settings, and then displays it in Calibre
Calibre E-book Viewer. installed to
view the
Options Menu
The Options menu in Arbortext Styler includes the following fields:
Help Menu
The Help menu in Arbortext Styler includes the following fields:
Menu option Description Enabled Keyboard
shortcut
Arbortext Opens the Arbortext Styler Help Always No
Styler Center in a separate window.
About Displays Arbortext Styler version Always No
Arbortext and copyright information.
Styler
Toolbars
Use the Arbortext Styler toolbars to quickly access Arbortext Styler functionality.
You can move all of the toolbars, by clicking on the dotted line to the left of the
toolbar and dragging it to the required location. In this way you can dock a toolbar
at a different place on the interface or place it completely independently from the
interface. You can select which toolbars to display in the interface through the
View ▶ Toolbars menu choice. Arbortext Styler has the following toolbars:
• Standard
• Elements
• Modules
The following table describes the buttons on the Standard toolbar.
Button Description
Inserts an object of the relevant type into the active list view.
Note that the icon for the button changes depending on the list
view that is currently active - the icon shown here is displayed
when the Elements list is active, for example, and clicking it will
insert a new unnamed element into the Elements list.
Click on the arrow to the right of the icon to select a different
object to insert: when you have selected an object type the
relevant list view will open and a new unnamed object will be
placed in that list.
Saves the current stylesheet. If the stylesheet has not previously
been saved, this button opens the Save Stylesheet As... dialog
box.
Undo the previous editing operation
Redo reverses the change made by the last undo.
Cuts the selected object from the list and stores it in a paste
buffer (clipboard).
Makes a copy of the selected object and stores it in a paste
buffer.
Inserts the contents of the paste buffer at the selected location.
Returns cursor focus back to the object previously selected.
Returns cursor focus to the object selected before the Back
action. This button is only active if a previous Back action has
been carried out.
Displays the document in Arbortext Editor using the current
stylesheet settings.
Displays the document in the Print Preview window using the
current stylesheet settings.
Displays the document as a PDF file in Acrobat Reader using
the current stylesheet settings.
Displays the document as an EPUB (.epub) file in the Calibre
E-book Viewer, using the current stylesheet settings. You must
have Calibre installed to perform this action.
Displays the document as an HTML file in a browser using the
current stylesheet settings.
Displays the document as HTML Help using the current
stylesheet settings.
The following table describes the buttons on the Elements toolbar. Note that, even
if the toolbar is selected via the View ▶ Toolbars menu option, the buttons on the
Elements toolbar will only be accessible when the Elements list is active.
Elements Toolbar
Button Description
Opens the New Context dialog box, in which you can create a
new context for the current element.
Opens the New Condition dialog box, in which you can create a
new condition for the selected context(s).
Moves the selected context or condition up one in the list of
contexts or conditions for the element, relative to its siblings,
increasing its priority in the processing order.
Moves the selected context or condition down one in the list of
contexts or conditions for the element, relative to its siblings,
reducing its priority in the processing order.
Moves the selected condition one to the right in the list of
conditions for the element, thus increasing its nesting level in its
parent.
Moves the selected condition one to the left in the list of
conditions for the element, thus reducing its nesting level in its
parent.
Provides a list of styles you can apply to the currently selected
element.
Opens a dialog box where you can provide additional details
about the style of the selected element. This toolbar button is
only available when the assigned style for the element requires
additional details, for example Division or Index Term.
Opens the Style Helper wizard that walks you through the
process of electing a style for the selected element
Button Description
Opens the Modules dialog box, in which you can create a
module hierarchy for your stylesheet by creating, adding,
deleting, and reordering stylesheet modules.
Opens the Move to Module dialog box, allowing you to select a
module to which to move the selected object(s).
This option is valid for all definition types and can be invoked
from within any list view.
Opens the Copy to Module dialog box, allowing you to select a
module to which to copy the selected object(s).
This option is valid for all definition types and can be invoked
from within any list view.
Opens the Save as Merged Stylesheet dialog box, in which you
can save a stylesheet containing modules as a single stylesheet
with all referenced modules included in the file.
Display Features
The PTC APP Source Editor facilitates viewing/editing of PTC APP source by
providing advanced display features:
• Syntax highlighting — tokens are displayed in different colors:
○ Comments — green
○ JavaScript keywords — blue
○ Literal values (quoted strings and numbers) — dark red
• Line numbering — automatic non-editable line numbers starting at 1, with line
wrap off
• Auto-indent — when you press ENTER, the cursor is placed on the next line
in the most likely column:
○ After a { — the next line is indented two characters more than the
previous line
○ After a } — the next line is indented two characters less than the previous
line
○ General — the same indent as the previous line
• Auto-completion
Source Editor
The Source Editor enables you to make changes to the source code. It is accessed
from within Arbortext Styler via the following options:
• Edit ▶ Edit Object Source (name of menu option depends on which list view is
currently active)
• Tools ▶ Advanced Edited Source ▶ Edit FOSI Resource Description
• Tools ▶ Advanced Edited Source ▶ Edit Common XSL Source
• Tools ▶ Advanced Edited Source ▶ Edit XSL Root Template
The Source Editor contains the following menu options:
Note
If your schema or DTD contains a table model, then the Generated Text Editor
window for a header or footer in a page set opens with a table template
containing a single row and three columns.
Table Menu in Generated Text Editor (not Available for Word Fields)
915
Export PTC APP Template Dialog Box ...................................................................... 953
Export CSS dialog box............................................................................................. 954
Export FOSI Stylesheet Dialog Box........................................................................... 954
Export Generated Text for Translation Dialog Box ...................................................... 955
Export XSL-EPUB Stylesheet Dialog Box .................................................................. 956
Export XSL-FO Stylesheet Dialog Box ...................................................................... 957
Export XSL-FO RTF Stylesheet Dialog Box ............................................................... 958
Export XSL-HTML File Stylesheet Dialog Box............................................................ 958
Export XSL-HTML Help Stylesheet Dialog Box .......................................................... 959
Export XSL-Web Stylesheet Dialog Box .................................................................... 960
Field Dialog Box ...................................................................................................... 960
Final Page Number Dialog Box................................................................................. 961
Find Explicit Properties Dialog Box ........................................................................... 962
Find Explicit Properties Results Window.................................................................... 963
Find Where Used Dialog Box ................................................................................... 964
Find Where Used Results Window............................................................................ 965
Footnote Number Dialog Box ................................................................................... 966
Footnotes Dialog Box .............................................................................................. 968
Formal Block Title Number Dialog Box ...................................................................... 971
Generated Cell Dialog Box ....................................................................................... 977
Graphic Details Dialog Box....................................................................................... 978
HTML/PDF Attribute Dialog Box ............................................................................... 979
HTML/CSS Defects List ........................................................................................... 982
Import Generated Text Translation Dialog Box ........................................................... 983
Import Generated Text Translation — Translation has not Changed ............................ 983
Import Generated Text Translation — Translation Identical to Source .......................... 984
Import Generated Text Translation — Translation Already Current .............................. 984
Incompatible Document Types for Stylesheet Dialog Box ........................................... 985
Index Details Dialog Box .......................................................................................... 985
Index Term (Attribute Model) Details Dialog Box ........................................................ 986
Index Term (Element Model) Details Dialog Box......................................................... 987
Index Term (Nesting Element Model) Details Dialog Box ............................................ 989
Insert Attribute Content Dialog Box ........................................................................... 990
Insert Attribute Content Dialog Box (Headers and Footers) ......................................... 993
Insert Cross Reference Dialog Box ........................................................................... 994
Insert Element Content Dialog Box ........................................................................... 995
Insert Element Content Dialog Box (Headers and Footers) ......................................... 998
Insert Index Dialog Box .......................................................................................... 1000
Insert Leaders, Rule or Space Dialog Box ............................................................... 1001
Insert Metadata Dialog Box .................................................................................... 1002
Insert Symbol Dialog Box ....................................................................................... 1003
Insert Table of Contents Dialog Box ........................................................................ 1004
Insert XPath String Dialog Box ............................................................................... 1004
Link Details Dialog Box .......................................................................................... 1005
Link Target Details Dialog Box ................................................................................ 1006
List Item Number Dialog Box .................................................................................. 1007
Modules Dialog Box............................................................................................... 1012
This section provides a full description for each of Arbortext Styler’s dialog
boxes.
Note
The path is not validated by Arbortext Styler.
This dialog box appears if you choose to edit the path of an existing library
reference.
Note
If you add a module to the Arbortext-path\custom\
stylermodules directory and leave Reference using relative path
checked, the module reference will work even if you later move the
module to another location on the file system.
Note
You must understand XML namespaces to use this option. Refer to the World
Wide Web Consortium (W3C) web site (www.w3.org/TR/REC-xml-names/)
for information on XML namespaces.
Note
In pre-5.4 releases of Arbortext Styler, a "not equal" (defined with the !
= comparison option) attribute test of a condition would succeed when
publishing with the FOSI engine and fail in XSL-based outputs when
the attribute in question was unassigned. In 5.4, XSL outputs changed
so that the results match those obtained with the FOSI engine. Please
refer to the release notes for release 5.4 for further information.
○ Follow bullet with - Specifies the amount of space between the bullet and
the following text. Choices are Tab, Em-Space, Single Space, and No
Space. The default is Single Space, which adds a single, non-breaking
space.
○ Tab to - When you select Tab as the Follow bullet with value, this field
allows you to specify the amount of space that the tab adds between the
number and the following text. See the note at the end of this description
for input options.
○ Indent following lines - Specifies the amount by which to indent following
lines if the first line of the list item wraps. See the note at the end of this
description for input options. To align the text in the first and subsequent
lines, set this to the same value as set in the Tab to field.
• Preview - Displays a graphical preview of how your list will appear.
Note
The Indent at, Tab to, and Indent following lines fields of this dialog box allow
you to either type an arbitrary size in the field or choose a defined size by
selecting from the list of Size objects configured for your stylesheet. For the
latter option, click the Select Size button next to the field for which you
wish to set the measurement and select the name of the required Size object
from the resulting list. Once you have selected a Size object the measurement
it defines will be displayed wrapped in angle brackets (< > characters) in the
relevant field. For example, the Size object InchSize defines a measurement of
1.00in:
Note
Not all types are always valid for all conditions: whether a condition type
is permitted depends on its position relative to any other sibling conditions
created for the context. Use the following general rules when selecting a
type:
○ An If condition is valid at any position
○ An Else-If condition is valid if the preceding sibling condition is either an
If condition or another Else-If condition
○ An Else condition is valid if the preceding sibling condition is an If
condition or an Else-If condition
• Condition is true if - Allows you to set the level to which conditions should be
matched:
○ All tests are true - all of the tests created for the condition must be matched
if the condition is to match
○ Any test is true - if any number of the tests created for the condition can be
matched, the condition will match. At least one of the tests must match.
When the condition is matched, the formatting properties created for the
condition will be applied to the context.
• Tests - Lists the tests configured for the condition. This field is empty when no
tests have been configured yet. A condition must have at least one test.
Note
You are not prompted before the test is deleted.
RTF Prece-
Style/ dence Source Com-
Style Field Category Module Edits ment
Elements • • • • • •
Property • • • •
Sets
Page Sets • • • •
Page • • • •
Types
Page • • • •
Regions
Generated • • • •
Contents
Tables of • • •
Contents
Custom • • •
Tables
Cross • • •
Referen-
ces
Sizes • • •
Combined • • •
Fonts
<table>
<title>...</title>
<tgroup>
<tbody>
<row>
<entry>
<para>
• New Parent - Enables you to specify that the element selected in the Context
window must occur immediately within another element, which you choose
from a list of valid parent elements. For example, if you are creating a context
for title, and you select chapter as the parent element, the resulting
context (title in chapter) only applies to title elements whose parent
element is chapter:
<chapter>
<title>
The title in chapter context does not apply to the following hierarchy
because section, not chapter, is the parent element of title:
<chapter>
<section>
<title>
• Edit - Enables you to change the selected ancestor, parent, or wildcard. When
you highlight the ancestor, parent, or wildcard and select Edit, a dropdown
menu appears containing elements from your document. Select a new ancestor
or parent from the menu. You can also edit the highlighted element directly.
• Delete - Removes the selected ancestor, parent, or wildcard. You cannot
remove the element for which you are creating the context.
• Position - Specifies the position of an element in the context relative to sibling
elements of the same type. Highlight the element in the context hierarchy to
which the position should apply, then select one of the following options:
○ any (the default)
Note
If you enter the name of a namespaced element in the XPath Predicate
dialog box, you will not be prompted to declare the namespace if it
does not already exist. Ensure you have declared the namespace for the
stylesheet by creating an element with the applicable prefix, or the
XPath expression you enter in this field will not be valid
• Edit predicate - This button is enabled when the position of a selected context
is defined via an XPath predicate. Clicking the button opens the XPath
Predicate dialog box, in which you can modify the predicate.
• At start of HTML chunk - When selected, this option indicates that an element is
the first element in an HTML chunk. Highlight the element in the context
hierarchy to which the position should apply, then select the option.
• At top level of document - When selected, this option indicates that the element
is the top-level element in the document.
Select this option when an element sometimes (but not always) occurs as the
top level element of the document.
If the element is always used as the top level element in documents, it is
preferable to apply the Document style to the element rather than use this
option. See the description of the Document style in Applying Styles on page
37 for further information.
• Include in ancestor and parent lists - Contains options by which you can
specify that User Formatting Elements and/or Styler Formatting Elements are
included in the lists of valid ancestors and parents. Refer to Elements
Overview on page 264 for more information on elements of these types.
To overcome this anomaly, create conditions based on XPath tests for the
table, rather than contexts. For example, the condition If XPath
expression (@pgwide=90) is true for the table will provide the same
output for the table based on the pgwide attribute, but will not cause errors
when publishing when the table is used in generated text for the title of the
book.
In both cases, however, if the context with the XPath predicate or the position
qualifier is not the one that should be output in the generated text anyway, and
its omission by FOSI has no bearing on the required output of your document,
you may simply ignore the error message.
Note
Hierarchy levels are used directly in inline TOCs, but are only used as
guidelines for PDF bookmarks and online TOCs in chunked HTML
outputs (EPUB, HTML Help, and Web). The online TOC is the TOC that
appears in the left frame of the window. In these outputs the hierarchy in
the TOC simply reflects the hierarchy of the content. The levels assigned
to TOC contexts continue to affect the formatting of TOCs that appear as
part of document content in Arbortext Editor, print, PDF, and HTML
outputs.
• Custom Content - buttons that allow you to configure any custom numbering
or generated text that should be applied to the title when it appears in the table
of contents:
○ Add/Edit - the title of this button depends on the current custom content
setting for the context: if no custom content currently exists the button will
be named Add. If you have already included some custom content for the
context, however, the button will be labeled Edit.
Clicking on the button will open the Custom Content dialog box, in which
you can make or amend your settings.
Note that you must have selected the Include option next to the title
context for the Add / Edit button to be available.
○ Delete - this button is only available if custom content already exists
for the context. Clicking the button will delete the custom content for the
context.
• Condition each title must match - this read only field displays a condition
specified for the title contexts that are to be included in the table of contents,
for example a condition that tests for the presence of the toc=”yes” attribute.
Each one of the title contexts that have the Include option checked must match
this condition to be included in the table of contents. Click the Edit button to
launch the Table of Contents Condition dialog box, in which you can create a
new condition or edit the existing one. Click the Delete button to remove a
condition once it has been defined.
If any of the contexts in the group box appear in the Arbortext Styler error color
(red by default, unless set via the stylererrorcolor preference), or if the
message below appears after the list of contexts, this means that some title
contexts set to appear in the TOC do not specify a direct parent. These contexts
Note
The Term width and Gutter width fields of this dialog box allow you to either
type an arbitrary size in the field or choose a defined size by selecting from the
list of Size objects configured for your stylesheet. For the latter option, click
the Select Size button next to the field for which you wish to set the
measurement and select the name of the required Size object from the
resulting list. Once you have selected a Size object the measurement it defines
will be displayed wrapped in angle brackets (< > characters) in the relevant
field. For example, the Size object InchSize defines a measurement of 1.00in:
Note
The Division nesting option is not available if the document type does not
permit the selected element to nest within itself.
Chapter 2
Section 2.1
Section 2.2
etc.
○ (No restart): continue numbering whenever the division title appears and
regardless of the parent or division level to which it belongs.
○ Select a specific element from the list supplied: the list contains all
element contexts styled as Division, Block, or Document that are permitted
as ancestors of the current title's division.
If you have entered an XPath expression in the XPath override for current level
field, this option is disabled.
• Previous level number - Specifies the element in the previous division level
whose number should be shown before the number of the current element, if
compound numbering is required for the current level. The following options
are available (note that the list does not include the division that is the parent
of the current title context):
Note
Publishing errors will occur if you choose the second or third option and
the previous element is not numbered.
The Number format field will display a number character (#) if Arbortext
Styler is unable to detect a number for the previous element as set here.
• Insert En-dash - Inserts an en-dash at the cursor position in the Number format
field.
• Label - Allows you to enter a text string to be displayed before the number in
the title, for example Chapter . To localize the label, use the Advanced Edit
button.
• Advanced Edit - Opens a Generated Text Editor window, in which you can set
the position of the label with reference to the number. You may also configure
translation settings for the label. Refer to Maintaining Translations of
Generated Text on page 528 for further information on how to translate
content.
By default, the label is placed before the number. These may be swapped
round either in this dialog or in the resulting translation.
You are not permitted to delete the number or add text to both sides of the
number. In addition, no font or spacing controls are provided in this instance
of the generated text editor. Set the font using the Font button in the number
dialog.
• XPath override for current level - Allows you to enter an XPath expression to
determine the number or maker for the current level, rather than it being
judged automatically based on content.
Click the Edit button to access the dialog box in which you can enter your
expression.
• Edit - Invokes the Edit XPath Override for Current Level dialog box, in which
you can enter or edit an XPath expression.
Note
The Align at, Tab to, and Indent following lines fields of this dialog box allow
you to either type an arbitrary size in the field or choose a defined size by
selecting from the list of Size objects configured for your stylesheet. For the
latter option, click the Select Size button next to the field for which you
wish to set the measurement and select the name of the required Size object
from the resulting list. Once you have selected a Size object the measurement
it defines will be displayed wrapped in angle brackets (< > characters) in the
relevant field. For example, the Size object InchSize defines a measurement of
1.00in:
• Remove - Removes the selected use from the Preview of “Properties to Edit”
list.
You must enter element names exactly as they appear in the Elements list,
including any namespace prefixes.
Note
Some XPath expressions, especially expressions that use the preceding
axis, can cause slow performance when generated text is produced for
large documents. See XPath Performance on page 1078 for hints on
creating more suitable expressions.
Note
Your stylesheet must be set to use PTC APP as the print/PDF engine to access
this menu option.
The Export PTC APP Template dialog box contains the following options:
• File name - Specifies the path and file name to which you want to export the
stylesheet. You can edit the field directly, or use the Browse button to modify
it.
If the stylesheet has never been saved, the file name consists of a path and file
name based on the document directory, and the default stylesheet name, plus a
.3f extension.
Once exported, you can use the .3f file in a standalone PTC Advanced Print
Publisher installation if required.
Note
The template can only be opened successfully in a compatible PTC Advanced
Print Publisher release - you will see an error message if you try to open the
document in an earlier release.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
Note
Your stylesheet must be set to use FOSI as the print/PDF engine to access this
menu option.
The Export FOSI Stylesheet dialog box contains the following options:
• File name - Specifies the path and file name to which you want to export the
stylesheet. You can edit the field directly, or use either the Browse or Use For
buttons to modify it. Select Use for to determine the available choices.
If your stylesheet has not been saved before, Arbortext Editor fills in this field
with a path that would make the stylesheet the default stylesheet either for the
document or for the current document type.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
Note
Your stylesheet must be set to use XSL-FO as the print/PDF engine to access
this menu option.
The Export XSL-FO Stylesheet dialog box contains the following options:
• File name - Specifies the path and file name to which you want to export the
stylesheet. You can edit the path and file name, or Browse to an existing
stylesheet.
If the stylesheet has never been saved, the file name consists of a path and file
name based on the document directory, the default stylesheet name with -fo
appended, plus an .xsl extension.
• Title - Specifies the name of the stylesheet that will display in the Select
Stylesheet, Preview, Print, and Publish to PDF File dialog boxes in Arbortext
Editor.
If you do not specify a title, the path and file name of the stylesheet display in
these dialog boxes.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
Note
Arbortext Editor truncates the path and file name if they exceed 57
characters.
○ Source Edits
○ Precedence Category
○ Module
○ Comment
○ 1, 2, 3,...
○ ①, ②, ③... (circled decimal numbering scheme, implemented to support
the Zenkaku numeric numbering scheme)
○ ۱, ۲, ۳... (Arabic-indic numbering scheme)
○ ۱, ۲, ۳... (Urdu)
○ ๑ , ๒ , ๓... (Thai)
○ a, b, c,...
Note
Publishing errors will occur if you choose the second or third option and
the previous element is not numbered.
The Number format field will display a number character (#) if Arbortext
Styler is unable to detect a number for the previous element as set here.
• Insert En-dash - Inserts an en-dash at the cursor position in the Number format
field.
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 on page 981 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
You may order the list by any of these columns, by clicking the column
header.
• The columns whose display can be toggled are (note that these columns
correspond to those available in the object list views in the main Arbortext
Styler window):
○ Precedence Category
○ Module
○ Source Edits
○ Comment
The window also contains a number of controls that you can use to navigate and
update the list:
• Go To - highlights the selected element/context/condition in the Elements list
and places cursor focus on the explicitly set property in the relevant category.
Note that you can also execute this action by pressing the ENTER key, double
Note
The environment variable APTIXLANG has no effect when a .style file
is in use. The language must be set in the .style file. See the Arbortext
Editor online help for more information on APTIXLANG.
Note
This option is not available for documents created via an PTC APP
template.
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the element
selection you enter in this field will not be valid.
• Attribute to insert - Specifies the attribute of the selected element whose value
should be extracted and inserted into generated text.
Note that if the specified element does not have a value assigned to the
specified attribute, Arbortext Styler inserts an empty string.
The following example illustrates how Within and Occurrence work. Suppose you
have the following markup in your document:
<Section>
<Author surname="..."/>
<SectInfoRef/>
</Section
and you want the SectInfoRef element to generate text based on the value of
the surname attribute of the Author element. To accomplish this you would set
the following options in the Insert Attribute Content dialog box, accessed from the
Generated Text Editor, for the SectInfoRef element:
• Select By name and occurrence-within-ancestor
• Name: Author
• Occurrence: 1st
• Within: section
• Attribute to insert: surname
This tells Arbortext Styler to insert the value of the surname attribute of the first
Author element that occurs anywhere inside the Section element that contains
the SectInfoRef element.
On the other hand, if your document contained the following markup shown
below, while it would still work to set Within to Section, it would not work to
set Within to SectInfo, because SectInfo is not an ancestor of
SectInfoRef.
<Section>
<SectInfo>
<Author surname="..."/>
</SectInfo>
<SectInfoRef/>
</Section>
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the element
selection you enter in this field will not be valid
◆ First started on page - The first occurrence of the named element that
occurs on the page or, if there are no occurrences of the element on the
page, the most recent occurrence of the element on a previous page.
◆ Last started on page - The last occurrence of the named element that
occurs on the page, or, if there are no occurrences of the element on the
page, the most recent occurrence of the element on a previous page.
◆ Specific occurrence within document - A specific occurrence of the
named element within the whole document.
○ By XPath - The element matched by an XPath expression.
◆ Expression - the XPath expression that will match the required
element. Note that the expression must result in a node-set of element
nodes.
The XPath expression must start navigation from the root of the
document. There is no way for it to start somewhere relative to the
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the XPath
expression you enter in this field will not be valid.
• Attribute to insert - Specifies the attribute of the selected element whose value
should be extracted and inserted into generated text.
Select the menu option View ▶ Generated Text ▶ Show in Arbortext Editor to have
your generated text displayed when you preview the document in Editor view.
Note
Insertion of attribute content into the AttributeModifier construct in
generated text is not supported. You will see this error message:
[A61092] Element "_gte:AttributeContentPage" cannot be within "_gte:AttributeModifier".
Note
The Insert ▶ Cross Reference command will not be available if the element
selected in the Elements list does not have an IDREF or IDREFS attribute.
The Insert Cross Reference dialog box contains the following options:
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the element
selection you enter in this field will not be valid
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the XPath
expression you enter in this field will not be valid
• Insert - Determines what type of content to insert in the generated text. The
options are:
○ Only content: all the content of the element, including markup, but not the
element itself.
○ Element and content: inserts both the element and its content.
The inserted content and/or element (and any child elements they include) will
be formatted via normal Arbortext Styler rules. It may be desirable to create a
special context for the element if you want it to be formatted differently when
it appears in this generated text. For example, if the element <x> inserts
element <y> and its content, you might want to create a context for y
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the element
selection you enter in this field will not be valid
◆ First started on page - The first occurrence of the named element that
occurs on the page or, if there are no occurrences of the element on the
page, the most recent occurrence of the element on a previous page.
◆ Last started on page - The last occurrence of the named element that
occurs on the page, or, if there are no occurrences of the element on the
page, the most recent occurrence of the element on a previous page.
◆ Specific occurrence within document - A specific occurrence of the
named element within the whole document.
○ By XPath - The element matched by an XPath expression
◆ Expression - the XPath expression that will match the required
element. Note that the expression must result in a node-set of element
nodes.
The XPath expression must start navigation from the root of the
document. There is no way for it to start somewhere relative to the
Note
If you enter the name of a namespaced element in this field, you
will not be prompted to declare the namespace if it does not already
exist. Ensure you have declared the namespace for the stylesheet
by creating an element with the applicable prefix, or the XPath
expression you enter in this field will not be valid
Note
Insertion of element content into the AttributeModifier construct in
generated text is not supported. You will see this error message:
[A61092] Element "_gte:ElementContentPage" cannot be within "_gte:AttributeModifier".
• Advanced Parameters - Allows you to enter parameters that can be passed for
processing for a FOSI-based index (and, since it also uses FOSI processing
methods, an index based on XSL-FO code). The parameters should be entered
using the same syntax and semantics as those used in the equivalent useparam
attribute of usetext in a FOSI document, in Arbortext Editor.
Note
This option is not available for documents created via an PTC APP
template.
Note
Fixed length space and fixed length rules will display in Arbortext Editor but,
otherwise, the properties set in this dialog box are only applicable to Print and
PDF output.
The Insert Leaders, Rule or Space dialog box contains the following controls:
• Type - Allows you to select the type of character fill you require: Space, Rule,
Leader dots, or Leader text.
• Thickness - This field is activated when Type is set to Rule and allows you to
set the thickness of the rule.
• Text - This field is activated when Type is set to Leader text and allows you to
identify the character or characters to be used as leader text. If you choose
more than one character, the fill area will include as many repetitions of the
• Font - Lists the fonts available on your workstation. When a font is selected,
all of the symbols available in that font are displayed in the character list.
• Subset - Lists the Unicode subsets for which the selected font contains
symbols. If a selected font does not contain Unicode subsets, this list is not
displayed. When a subset is selected, the cursor moves in the Character list to
The Insert XPath String dialog box contains the following option:
• XPath Expression - Provides a free text field in which you can enter a valid
XPath expression.
Note
You must enter element names as they appear in the Elements list,
including any namespace prefixes.
Avoid using the XPath functions position() or last() since they are not
valid in this context. Some alternatives are given below:
• Instead of position(), use count(preceding-sibling::*)+1
• To test whether an element is the last child of its parent, that is to test
position() = last(), use count(following-sibling::*) = 0
• To test whether an element is the first child of its parent, use
count(preceding-sibling::*) = 0
The use of certain XPath expressions in generated text can cause increased
processing times. Please refer to XPath Performance on page 1078 for information
and suggested alternatives.
Note
Publishing errors will occur if you choose the second or third option and
the previous element is not numbered.
The Number format field will display a number character (#) if Arbortext
Styler is unable to detect a number for the previous element as set here.
• Insert En-dash - Inserts an en-dash at the cursor position in the Number format
field.
• Label: Allows you to enter a text string to be displayed before the number in
the list item, for example Step. To localize the label, use the Advanced Edit
button.
• Advanced Edit - Opens a Generated Text Editor window, in which you can set
the position of the label with reference to the number. You may also configure
translation settings for the label. Refer to Maintaining Translations of
Generated Text on page 528 for further information on how to translate
content.
By default, the label is placed before the number. These may be swapped
round either in this dialog or in the resulting translation.
You are not permitted to delete the number or add text to both sides of the
number. In addition, no font or spacing controls are provided in this instance
of the generated text editor. Set the font using the Font button in the number
dialog.
• XPath override for current level - Allows you to enter an XPath expression to
determine the number or maker for the current level, rather than it being
judged automatically based on content.
Note
The Align at, Tab to, and Indent following lines fields of this dialog box allow
you to either type an arbitrary size in the field or choose a defined size by
selecting from the list of Size objects configured for your stylesheet. For the
latter option, click the Select Size button next to the field for which you
wish to set the measurement and select the name of the required Size object
from the resulting list. Once you have selected a Size object the measurement
it defines will be displayed wrapped in angle brackets (< > characters) in the
relevant field. For example, the Size object InchSize defines a
measurement of 1.00in:
Note
You can only reorder modules at the same level in the hierarchy. To move a
module to a different level in the hierarchy, remove the module from the
hierarchy and add it back at the desired level.
Note
If you create a new module in the Arbortext-path\custom\
stylermodules directory and leave Reference using relative path checked,
the module reference will work even if you later move the module to another
location on the file system.
Note
If the context you identify is a list item, include the parent list in the
identifier. This will ensure that the numbering for the element being
styled appears correctly in Editor view and in print output generated by
the FOSI engine. For example:
p in li in ol (or ol/li/p if Options ▶ Show Contexts as XSL is
selected) is valid.
p in li (or li/p) is not valid.
Publishing errors will occur if you choose one of the numbered options and
the previous element is not numbered.
Note
As a matter of technique, a numbering restart option should only be
configured for an ancestor of the numbered element. The restarted numbering
will then apply for all instances of the numbered element within the scope of
the ancestor element. You may see unpredictable results of you do not follow
this standard.
For division titles, the Numbering Restart at list provides the following choices:
Note
The label is defined in the StyleSheetInfo element for Styler stylesheets
or in the APPConfig element of the APP configuration file.
• File name - Specifies the path and file name for the stylesheet. You can edit
this field directly, or use the Browse or Use For buttons to modify it. If your
stylesheet is being saved for the first time, Arbortext Editor populates this
field with a path and file name that make the stylesheet the default stylesheet
for the document or the current document type.
• Browse - Opens the Save Stylesheet As explorer dialog box, in which you can
navigate to the directory to which to save the stylesheet.
• Use for - Opens the Use Stylesheet For dialog box, in which you can elect to
save your stylesheet as the default Arbortext Editor stylesheet for specific
documents. The selection you make in this field determines the directory
location to which the stylesheet is saved, and its file name.
• Title - Enables you to provide a short description of the stylesheet, that
displays in the Select Stylesheet dialog box, the dialog boxes associated with
the publishing types you select, and similar locations. If you do not provide a
description, the original description of the stylesheet appears instead.
• Publishing types - Specifies the output formats for which you can use the
stylesheet. If you are saving a stylesheet created with Arbortext Styler, the
choices are Print/PDF, EPUB, HTML File, HTML Help, Web, and RTF.
If you are saving a stylesheet that was not created with Arbortext Styler, the
choices are Print/PDF and HTML File.
The stylesheet title or its path and file name display in the stylesheet list in the
dialog boxes associated with the publishing types selected. For example, if
you select Print/PDF, the stylesheet is added to the Preview, Print, and Publish
to PDF File dialog boxes.
Note
If you enter the name of a namespaced element in the XPath field, you will
not be prompted to declare the namespace if it does not already exist.
Ensure you have declared the namespace for the stylesheet by creating an
element with the applicable prefix, or the XPath expression you enter in
this field will not be valid
Note that, when setting a page number to start at a particular value, both the type
of page (odd or even) and the selected starting page number are linked. You must
take care to ensure that you also maintain the correct type of page upon which you
wish the numbered section to start, depending on your documentation
requirements. The FOSI, XSL-FO and PTC APP print engines deal with page
numbering and page starting in different ways.
Two settings must be taken into consideration. Firstly, a specified Start At value
will, by definition, be either an odd number or an even number. Secondly, the
position of the page can also be determined by either making an explicit setting of
Odd page or Even page in the Start new field in the Breaks category, or by the
implicit fact that the first page of a document is always an odd page. These two
determining factors can conflict; for example, it is possible to specify that the Start
At value is 4 for the first page of the document.
If you are creating a chunk test for a TOC condition, you will be presented
with two options for the type of element that should be tested, rather than
being able to select specific elements. Choose either Title element or Parent
element to define whether it is the title itself or the parent in which it appears
whose position in the HTML chunk should be tested.
Note
Start of HTML chunk tests should only be created for conditions that are
intended to apply properties in chunked HTML outputs (EPUB, HTML Help,
and Web). Tests of this nature will return a value of false in conditions
specified for Arbortext Editor, print/PDF, HTML File or RTF outputs.
Note
You must save your stylesheet for changes to stylesheet properties to take
effect.
Note
The label is defined in the StyleSheetInfo element for Styler stylesheets
or in the APPConfig element of the APP configuration file.
• Title - Specifies the title or short description of the stylesheet, which displays
in the Select Stylesheet dialog box and the Print and Publish dialog boxes.
Enter text of your choice here. If you do not specify a title, the default
• CSS style location: Specifies where CSS style information should be written
on publishing. You can choose In HTML Header or External file.
Refer to Managing CSS Files in HTML Output on page 159 for further
information.
• Generate XHTML: Specifies whether the publishing processing creates HTML
or XHTML files.
This checkbox does not apply for EPUB output, which always consists of
XHTML data.
• Generate HTML5: Specifies whether the publishing processing creates HTML
or HTML5 files.
Selecting both Generate XHTML and Generate HTML5 will output HTML in
XHTML5 format.
The setting for this option has no effect in EPUB output. Arbortext Styler
generates output that conforms to the EPUB 2.0 standard as a default.
• Shrink graphics to fit: Specifies whether graphics that are too large
horizontally for the available space should be scaled down to fit that space. If
the option is not selected, graphics will extend out of the available space if
they are too large.
Shrink-to-fit scaling maintains the height-width ratio of the graphic.
This handling is independent of all other scaling and size related controls
already in place for a graphic. The existing controls will continue to have the
same effect The shrink-to-fit capability is applied after the existing graphics
settings if the graphic is still too large for the available space.
Note
JavaScript libraries cannot be managed from stylesheet modules — they
must be present in the root stylesheet.
A reference to each library listed here will be included in HTML File output
generated from the stylesheet. Libraries are added to output in the order they
are declared in this field.
Note
For graphics inside table cells, it is recommended that you use a traditional
scale-to-fit sizing mechanism for the individual graphic. With just Shrink
graphics to fit set to manage these graphics, you may find that the table
column grows to accommodate the graphic in HTML outputs.
Note
JavaScript libraries cannot be managed from stylesheet modules — they
must be present in the root stylesheet.
Note
The FOSI and XSL-FO print engines are on sustained support and do not
receive enhancements or maintenance fixes. PTC APP is the recommended
engine for print/PDF output.
Print engine
The print engine setting made in this tab is associated with the stylesheet. It can be
overridden by an explicit option set in the printengineoverride setting.
printengineoverride for Arbortext Editor overrides the print engine
selection settings made in Arbortext Styler. The option can only be set for the
current Arbortext Editor session, by using the set printengineoverride
command line option. The setting cannot be saved as a permanent preference.
Available properties
○ Column top baseline: Specifies the measure from the top of the page region
to the baseline of the first line of text when an exact column-top to text-
baseline distance has been specified for a column. This has the effect of
dropping the top of a paragraph.
The default value is 0pt + 75% of leading.
This property sets the fParagraph.topDrop and
fParagraph.autoLeadingAboveMaximumTopDrop JavaScript
properties.
○ Cell top baseline: Works in the same way as Column top baseline, but this
setting is the measure from inside the top padding of the top of the cell to
the baseline of the first line of text within the cell.
The default value is 0pt + 75% of leading.
This property sets the fParagraph.topDropCell and
fParagraph.autoLeadingAboveMaximumTopDropCell
JavaScript properties.
For both of these properties, when % of leading is specified and leading is
defined with em units, the font size of the first character on the line is used.
If any character on the first line would extend above the page region top,
or into the top padding of the cell, the auto-leading feature will lower the
baseline of the first line as much as needed to avoid.
○ Use baseline to baseline leading (also known as professional leading):
Specifies that the measure from the baseline of the previous line to the
baseline of the current line should be calculated using the leading of the
current line.
The default value is true (selected).
When set to true (selected), this property sets the
fFrame.professionalLeading and
fParagraph.autoLeadingBbx JavaScript properties to true.
When set to false (not selected), this property sets the
fParagraph.autoLeading JavaScript property to true.
If the property is not selected, the leading is calculated by taking 25% of
the leading of the previous line (to account for descenders) and adding
75% of the current leading for the ascenders of the current line.
Available properties
○ Word space: Sets the basic amount of space that will be substituted for
every space character when formatting a line. The default value is 0.25em.
The Stretch setting specifies the maximum amount of extra space that can
be added to the basic word spacing when justifying a line.
The default value is 0pt.
The Shrink setting specifies the maximum amount of space that can be
removed from the basic word spacing when justifying a line.
The default value is 0pt.
These properties sets the fStyle.wordSpace,
fStyle.wordSpaceExtra, and fStyle.wordSpaceSquash
JavaScript properties.
○ Letter space: Sets the basic amount of space that will be added to the right
of a letter when formatting a line. The default value is 0pt.
The Stretch setting specifies the maximum amount of extra space that can
be added to the letter spacing when justifying a line
The default value is 0pt.
The Shrink setting specifies the maximum amount of space that can be
removed from the letter spacing when justifying a line
The default value is 0pt.
These properties sets the fStyle.letterSpace,
fStyle.letterSpaceExtra, and
fStyle.letterSpaceSquash JavaScript properties.
○ Reset Horizontal Spacing Defaults: remove any custom settings made in
these fields.
Note
Stretch and Shrink settings only apply when vertical justification is active.
• Hyphenation
Available properties
The default value is 1pt, with a range of 0–100 in any unit permitted.
This setting is controlled by the set tabledefaultrulethickness
option if stylesheet properties are not being used.
• Minimum row height: Specifies the default published height for table rows with
content
The default value is 15pt, with a range of 0–100 in any unit permitted.
This setting is controlled by the set tableminimumrowheight option if
stylesheet properties are not being used.
• Default cell padding: Specifies the default cell margins used for tables in
published output
You can set individual values for Top, Bottom, Left, and Right margins. The
default value for each is 5pt, with a range of 0–100 in any unit permitted.
These settings are controlled by the APTTBLCELLMARGT,
APTTBLCELLMARGB, APTTBLCELLMARGL, and APTTBLCELLMARGR
environment variables if stylesheet properties are not being used.
Note
You are not prompted before the test is deleted.
Note
The Text right indent, Minimum space or leaders before page number, and
Spacing fields of this dialog box allow you to either type an arbitrary size in
the field or choose a defined size by selecting from the list of Size objects
configured for your stylesheet. For the latter option, click the Select Size
button next to the field for which you wish to set the measurement and
select the name of the required Size object from the resulting list. Once you
have selected a Size object the measurement it defines will be displayed
wrapped in angle brackets (< > characters) in the relevant field. For example,
the Size object InchSize defines a measurement of 1.00in:
Note
For element definitions, unused User Formatting Elements (UFE) are shown
in the Unused Definitions window, whereas unused Styler Formatting
Elements (SFE) are not. SFEs should never be deleted and as such are not
displayed in this list. UFEs, however, are displayed if they are not referenced
and there are no instances of the UFE in any gentext.
Column display for this dialog box follows the same rules as that for the Find
Where Used Results Window on page 965
The Use FOSI for dialog box contains the following options:
• Document - Arbortext Editor will automatically use this stylesheet to display
this document in Arbortext Editor in future sessions. An export instigated with
this option activated exports the stylesheet to the document directory with the
same base name as the document (for example, if your document is
mydoc.xml, your stylesheet will be saved as mydoc.fos in the document
directory).
• Documents of same document type in same directory - In future sessions,
Arbortext Editor will automatically use this stylesheet to display all documents
in the document directory that use the current document's document type,
unless you have already specified a stylesheet for a particular document. An
export instigated with this option activated exports the stylesheet to the
document directory with the same base name as the document type (for
example, if you are using the axdocbook document type and your document
is mydoc.xml, your stylesheet will be exported as axdocbook.fos to the
document directory).
• All documents of same document type - In future sessions, Arbortext Editor
will automatically use this stylesheet to display all documents using the
current document's document type, unless you have specified a stylesheet
using one of the above designations. An export instigated with this option
activated exports the stylesheet to the document type directory with the same
base name as the document type (for example, if you are using the
axdocbook document type and your document is mydoc.xml, your
stylesheet will be exported as axdocbook.fos to the document type
directory).
Note
This option is unavailable if a stylesheet already exists in the document
type directory or if you do not have write permission for the directory.
Note
• You can override this setting for a specific individual document by associating
a stylesheet with the document - see Associating a stylesheet with your
document in Arbortext Editor help for information.
• The label is defined in the StyleSheetInfo element for Styler stylesheets
or in the APPConfig element of the APP configuration file.
Note
This option is unavailable if a stylesheet already exists in the document
type directory or if you do not have write permission for the directory.
Note
If you enter the name of a namespaced element in this field, you will not be
prompted to declare the namespace if it does not already exist. Ensure you
have declared the namespace for the stylesheet by creating an element with the
applicable prefix, or the XPath expression you enter in this field will not be
valid
Note
With DITA document types, predicates should only be attached to the element
defined by the context. The use of general contexts such as image
anywhere in topic[@outputclass=’tpdr’] should be avoided. They
will not work in Edit view, and Arbortext Styler will not indicate that the
context matches when you position the cursor in the edit window inside an
element that should match. They will also not match in print/PDF output
generated by the FOSI print engine.
Instead, use a context such as image[ancestor::topic/
@outputclass=’tpdr’].
The use of certain XPath expressions can cause increased processing times. Please
refer to XPath Performance on page 1078 for information and suggested
alternatives.
Note
You must understand XPath and its syntax to use this option. Refer to the
World Wide Web Consortium (W3C) web site (www.w3.org/TR/xpath) for
information on the XPath standard.
Note
If you enter the name of a namespaced element in this field, you will not
be prompted to declare the namespace if it does not already exist. Ensure
you have declared the namespace for the stylesheet by creating an element
with the applicable prefix, or the XPath expression you enter in this field
will not be valid.
Avoid using the XPath functions position() or last() since they are not
valid in this context. Some alternatives are given below:
• Instead of position(), use count(preceding-sibling::*)+1
• To test whether an element is the last child of its parent, that is to test
position() = last(), use count(following-sibling::*) = 0
• To test whether an element is the first child of its parent, use
count(preceding-sibling::*) = 0
The use of certain XPath expressions can cause increased processing times. Please
refer to XPath Performance on page 1078 for information and suggested
alternatives.
This section provides some information and suggestions that will help you
perform preliminary analysis on a stylesheet that is experiencing poor
performance.
1063
Performance Profiling for Arbortext Styler
or FOSI Stylesheets
Introduction
Processing performance information can be output for APP and FOSI output
(Editor and print/PDF ) with Arbortext Styler stylesheets via the set debug
command. The output is divided into four functional areas:
1. Context matching, also known as e-i-c matching when processing with FOSI
2. Condition matching, also known as att-matching when processing with FOSI
3. Generated text processing
4. Evaluation of XPath expressions (APP only)
Each of these information types appears in its own section in the output, allowing
you to ascertain which type of processing is causing your problem. Once you have
isolated the functional area you can continue to produce processing information
related to this area only if you wish, since a full set of data can be fairly lengthy.
See Sample output for an example of the type of information that will be output.
This section also contains instructions on how to produce the correct diagnostic
information in order to investigate some commonly encountered stylesheet
problems, plus some sample output for your reference.
Note
If there are multiple formatting passes, eic matching, att matching, and (less
frequently) generated text processing are sometimes repeated for the second
pass. Header and footer processing, however, is always repeated for each page
for the second pass.
XPath Performance
Although the use of XPath expressions in Arbortext Styler provides almost
unlimited flexibility in terms of processing options, a stylesheet writer must take
care when including them in order to avoid potential performance problems.
Generally, if the use of XPath causes problems, it’s because it is easy to write
This section provides some general reference information that will assist you
when you are working with Arbortext Styler and stylesheets.
1081
Reference Information
Additional information described here may assist you in managing your
stylesheets.
• Keyboard Navigation in the Arbortext Styler Window on page 1082
• Differences in Output Support on page 1084
To Shortcut
Cycle through the open windows, including Arbortext Styler, ALT+F6
Arbortext Editor, and the Generated Text Editor
Move downwards through top, center and bottom panes F6
Move upwards through top, center and bottom panes SHIFT+F6
Cycle through the fields in the top or bottom pane, or in any TAB
dialog
Cycle forwards through list views or property categories, CTRL+TAB
whichever has cursor focus
Cycle backwards through list views or property categories, CTRL+SHIFT
whichever has cursor focus +TAB
Navigate backwards ALT+LEFT
ARROW
Navigate forwards ALT+RIGHT
ARROW
Activate the Elements list CTRL+1
Activate the Property Sets list CTRL+2
Activate the Page Sets list CTRL+3
Activate the Page Types list CTRL+4
Activate the Page Regions list CTRL+5
Activate the Generated Contents list CTRL+6
Activate the Tables of Contents list CTRL+7
Activate the Custom Tables list CTRL+8
Activate the Cross References list CTRL+9
The following table describes the keyboard controls for navigating within the list
views in the Arbortext Styler window.
To Shortcut
Select all objects in the list CTRL+A
Select the last object in the list END
Select the first object in the list HOME
(Elements list only) Expand the selected element, displaying all RIGHT
contexts and conditions ARROW
(Elements list only) Collapse the selected element, hiding all LEFT ARROW
contexts and conditions
To Shortcut
Open a new stylesheet. CTRL+N
Open the Open Stylesheet dialog box, from which you can CTRL+O
select an existing stylesheet.
Save the stylesheet. CTRL+S
(Elements list) Open the New Context dialog box, in which you F10
can create a new context.
(Elements list) Open the New Condition dialog box, in which F11
you can create a new condition.
(All lists) Rename the selected object F2
(All lists) Open the Find Where Used dialog box, in which you CTRL+F
can create a search for all the instances of a particular object in
your stylesheet
(All lists) Open the Stylesheet Properties dialog box with the CTRL+L
Language tab active, to access the language properties of the
stylesheet
Note
The FOSI and XSL-FO print engines are on sustained support and do not
receive enhancements or maintenance fixes. PTC APP is the recommended
engine for print/PDF output.
Area in UI Limitation
Text • Shading activated for a block element via the Shading field
category will apply background color to the whole block. With the FOSI
and PTC APP print engines shading applies only to individual
lines of text in the block.
Elements that are shaded can only be split across page
boundaries in XSL-FO output when
deepcontentsplitting is active.
Breaks • If an element is set to start a new page set, and the Page
category number field is set to Initial, the first page will always be a
recto (odd) page regardless of the settings in the Start new
field. This may result in a blank page at the end of the previous
section.
In FOSI and PTC APP output, the type of first page output will
always follow the value of the Start new field, even if the page
number is set to Initial.
• If an element is set to start a new page set, and its style is set to
Definition List, you will see composition pipeline errors as
shown below when you attempt to publish the document via
the XSL-FO engine, and the element in question will likely
show the terms overlapping the definitions in output.
No content area defined for formatting object fo:block, output may not be properly formatted
or
Expecting 'fo:page-sequence' but found 'fo:block' which is not a valid child of 'fo:root'
EPUB Output
Area in UI Limitation
Tables of When generating TOCs with the Use for chunked HTML outputs
Contents list (EPUB, HTML Help, and Web) option, only titles at levels 1–3 in the
document hierarchy will be included.
Indexes list Indexes are not supported in EPUB output.
Side by side Side by side formatting does not work reliably for EPUB output.
category
General Arbortext’s EPUB output conforms to the EPUB Standard Version
2. Different e-reader applications have varying levels of support
for this standard and you may see differences between output
viewed in Calibre e-reader during publishing and your selected
reader. Ensure that you have tested output in your various required
readers to confirm the appearance is satisfactory. If there are
unexpected anomalies, use the View EPUB option in the Publish to
EPUB dialog box to confirm the appearance is correct in the
Calibre e-reader.
Web Output
Area in UI Limitation
Indexes list A single index is supported in Web output. This index will include
all index terms from all index definition objects with the Use for
chunked HTML output (EPUB, HTML Help, and Web) option
checked.
All Outputs
Area in UI Limitation
Text • Strikethrough and overlining (defined via the overline
category property set) cannot be displayed concurrently for the same
element/context, although they can both be set. See the
Limitations of output support for underlining and strikethrough
table in Text Underlining and Strikethrough on page 646 for
further details.
Note
Pre-5.4 stylesheets are not affected by the change that
causes this anomaly.
• Color and height settings for strikethrough and overlining are
shared and may produce unexpected results when both are set
for an element/context. See the Limitations of output support
for underlining and strikethrough table in Text Underlining and
Strikethrough on page 646 for further details.
Generated • XPath expressions used to specify an element (see the By XPath
Contents list fields in the Insert Element Content and Insert Attribute Content
dialog boxes, or the Insert XPath String menu option) must start
from the beginning of the document. The expression must start
with the / character.
Glossary
Glossary of terms for Arbortext Styler:
Block
A basic element structure that is preceded and followed by a line
break.
break
Identifies location for new column or new page in a stylesheet
child module
A module that is referenced by another module in the module
hierarchy
chunk
A piece of HTML data that is produced when a source XML
document is split into fragments when published to EPUB,
HTML Help, or Web output. An Arbortext Styler stylesheet
permits you to define the element(s) in the document that should
form chunk boundaries, and the document will break within the
scope of these selected elements on output.
combined
A user defined font that contains mappings between various
font system fonts and certain characters (or character blocks) from
the Unicode specification to enable the display of non Latin text
condition
An element context that includes a test or set of tests. You can
set formatting that will only apply to an element when a defined
condition matches for its context.
context
The specific location of an element relative to surrounding
elements within the overall document structure.
Context is referred to as selector in CSS. The corresponding
XSL term is pattern.
derivation
The process of obtaining a formatting property’s value by
evaluating the properties of an element's parents and ancestors.
derive
Usually used in the context of formatting property values. An
element inherits the value of a property defined for a different
element, for example the element's parent or an ancestor.
1113
DITA
Darwin Information Typing Architecture. An OASIS standard
that defines an architecture for developing topic-oriented,
information-typed content that can be reused and single-sourced
in a variety of ways. It is also an architecture for creating new
information types and describing new information domains
based on existing types and domains. The standard provides a
set of DTDs and XML Schemas for base topic types, such as
concept, task or reference, and for map documents that are used
to collect topic references.
divisions
Document structure elements, such as chapter, section, topic or
subtopic.
endnote
One of a set of notes that are collected within a specific scope
element, for example a chapter. Endnotes appear at the end of
the specified endnote scope element, in the order they occurred
in the document.
endnote body
The text of an endnote.
endnote
The set of all endnotes collected for a specified endnote scope
collection element. The place in which the endnotes are output at the end
of the endnote scope element is referred to as the endnote
collection area.
endnote mark
The number, symbol, or other marker that identifies an endnote
in the endnote collection area. It is usually the same as the
associated reference mark, though the two may be styled
differently.
endnote
The number, symbol, or other marker that identifies the
reference reference location of an endnote.
mark
endnote scope
The element throughout which a set of endnotes is collected.
Endnote numbering is reset at the beginning of a specified
endnote scope. The collected endnotes are output somewhere
within the endnote scope element, usually at the end of the
element.
footnote body
The text of a footnote.
footnote mark
The number, symbol, or other marker that identifies a footnote.
It is usually the same as the associated reference mark, though
the two may be styled differently.
footnote
The number, symbol, or other marker that identifies the
reference reference location of a footnote.
mark
formatting
A single configurable formatting characteristic, such as font size
property or line spacing.
FOSI
A Formatting Output Specification Instance (FOSI) is a
stylesheet stylesheet standard defined in MIL-PRF-28001 and MIL-
HDBK-28001 for output of SGML or XML instances.
generalization
The DITA process where a specialized information type or
domain can be associated with its ancestor information type or
domain.
generated
A definition that specifies a piece of content. The definition can
content be referenced from any number of page regions to apply the
same content to those regions.
generated text
Predefined text that is automatically output by the stylesheet for
your document type when the document is published. Generated
text can consist of list counters, section numbering, tables of
contents, and indexes.
ID equivalent
The attribute that is a target for cross references, footnote
attribute references, and endnote references. This attribute can be defined
in two ways. First, it can be defined as an ID attribute in the
document model. Second, it can be defined as an ID in the
.dcf file associated with the document model. In this case, you
use the idAttribute attribute on the Options element in
the .dcf file to define the ID equivalent attribute.
Glossary 1115
Inline
A basic element structure that does not contain a line break
between it and the preceding and following element
keeps
Conditions for controlling and disallowing the breaking of
elements over column or page boundaries.
leaf module
A stylesheet at the bottom of the module hierarchy that does not
reference any other modules.
link
Links are elements that reference destinations in documents and
on the Web. Link elements are defined in a document type's
.dcf file.
modularized
A stylesheet that is made up of multiple modules.
stylesheet
module
The contents of a single stylesheet, not including merged
definitions from other modules.
module
The set of modules that are collectively represented by a
hierarchy modularized stylesheet. The hierarchy starts with a single root
module that can reference any number of other modules.
Modules in the hierarchy can reference other modules down to
the leaf module level. Any mergeable definitions in modules
lower in the hierarchy are overridden by identically named
definitions higher in the hierarchy.
mergeable
A set of formatting specifications, identified by a name, that can
definition be overridden by a definition of the same name in a module
higher in a module hierarchy. The following stylesheet
components are mergeable definitions:
• Element
• Property set
• Page set
• Header and Footer
• Table of contents
• Cross reference
• Custom table
orphan
In typography, the situation where the first line of a paragraph
begins at the bottom of a page, with the rest of the paragraph
appearing at the top of the following page.
In a FOSI, the number of lines to keep together at the bottom of
a column.
page region
An area on a page that can have content and properties such as
background color, position, size, and rotation applied.
page type
A collection of page regions that can be referenced by page sets
to provide page layout.
parent
A module that references another module in the module
module hierarchy.
preformatted
Asis formatting that respects line breaks and spaces in original
source.
property
A specified font, indent, spacing, breaks, or generated text
setting.
property set
A predefined or user-defined collection of formatting properties
that can be referenced anywhere formatting properties are
assigned. Property sets correspond to FOSI charsubsets, and are
closely related to XSL attribute-sets.
publishing
The process of transforming a source document to another
format using the rules specified in a stylesheet.
reference
The attribute that references an ID equivalent attribute. You may
attribute use IDREF, IDREFS, or CDATA attributes as a reference
attribute. This applies to cross references, footnote references,
and endnote references.
resolved
An intermediate XML document produced from a DITA Map
document containing all of the content referenced in the map. The resolved
document can be used for operations such as spell checking,
find/replace, and stylesheet development.
Glossary 1117
resolving
The process of obtaining and displaying formatting properties
for the selected object or objects (one or more contexts,
conditions, or property sets). This involves:
• displaying any property values that have been applied to the
objects
• indicating whether the properties are explicitly set or
obtained from a property set, condition, or ancestor.
root module
A single stylesheet at the top of the module hierarchy that
references all of the other modules.
SFE
See Styler Formatting Element
Size
When used with the initial capital, represents a size definition
that can be referenced anywhere a measurement is required.
Also known as Named Size or Size object.
source
language The language in which generated text is authored in a document.
specialization
The DITA process for creating new information types and
describing new information domains based on existing types and
domains.
style
An element's style determines its initial formatting properties, as
well as how it affects and is affected by other elements. For
example, if you map the section element to the Division
style, it affects how an element mapped to the Title style is
formatted when it appears inside a section element.
Styler
An element created automatically by Arbortext Styler to provide
Formatting initial style properties for structures such as tables of contents
Element and indexes when they are defined in generated text. These
elements are prefixed with _sfe:.
stylesheet
A collection of style settings that governs the appearance of a
document. Generic types of stylesheets used in Arbortext Editor
include application, document, local, current editor, and current
print.
translation
The body of generated text that has been configured for an
unit element or context and can be translated as one item. Each
translation unit in a stylesheet will form a trans-unit entry
in an XLIFF file exported for translation.
UFE
See User Formatting Element
User
An element created by the user specifically for assigning
Formatting formatting properties to elements defined in generated text.
Element These elements are prefixed with _ufe:.
widow
In typography, the situation where the last line or word of a
paragraph appears at the top of a page, with the first part of the
paragraph appearing at the bottom of the previous page.
In a FOSI, the number of lines to keep at the top of a column.
XPath
The XML Path Language standard developed by the World
Wide Web Consortium for addressing parts of an XML
document.
XSL
A stylesheet that transforms XML documents into HTML,
stylesheet XHTML, or XML. It is helpful to add a suffix to XSL to
indicate the stylesheet's expected output. For example, XSL-
HTML indicates a stylesheet that generates HTML.
Glossary 1119
Index
1121
publish Word fields, instructions, PDF tags category, 831
and switches, 663 Property sets category, 820
publish XML attributes to Word RTF category, 838
styles, 667 Side by side category, 825
publish XML files, 656 Spacing category, 800
troubleshooting, 695 Text category, 787
log files, error return codes, and Footnote category, 821
event log errors, 695 Generated Contents list, 774
Arbortext Styler Generated text category, 818
concepts overview, 20 Graphic category, 843
DITA styling overview, 620, 622- HTML Functions list, 781
623 HTML tag category, 834
overview, 20 Indent category, 795
versions, 24 Indexes list, 777
Arbortext Styler window, 766 Format category, 861
Block border category, 823 General category, 861
Breaks category, 804 menus, 870, 872, 875, 880, 885,
Breaks category - HTML chunking, 887, 891-892, 894
814 Outputs to Edit field, 787
Breaks category - Keeps, 812 PAD tags category, 831
columns in list views, 781 Page Regions list, 774
Combined Fonts list, 780 Borders category, 858
Comment tab, 785 Graphic category, 856
Cross References list, 778 Other category, 859
Custom Tables list, 777 Position category, 853
Background Color category, 869 Text category, 855
Cells category, 863 Page Sets list, 772
Elements category, 862 Columns category, 848
Format category, 866 x columns, 850
Header Cells category, 864 Other category, 852
Description tab, 784 Page Numbers category, 851
Elements list, 769 Page Size category, 844
Block border category, 823 Page Types category, 847
Breaks category, 804 Page Types list, 772
Breaks category - HTML Property sets category, 820
chunking, 814 Property Sets list, 771
Breaks category - Keeps, 812 Block border category, 823
Footnote category, 821 Breaks category, 804
Generated text category, 818 Breaks category - HTML
Graphic category, 843 chunking, 814
HTML tag category, 834 Breaks category - Keeps, 812
Indent category, 795 Footnote category, 821
Index 1123
change location of change bars, 524 content tests, 300
change tracking markup in XSL- creating, 300
based publishing, 524 cutting, copying, and pasting, 327
display change bars in document, deleting, 300
524 deleting tests, 300
modify appearance of change bars, editing, 300
524 example of creating, 303
Chinese if, else if and else conditions, 306
features to enable Chinese text, 634 if, else if and else conditions in
chunk boundary, 814 exported stylesheets, 317
CJK nested conditions, 309
numbering styles, 638 nested conditions in exported
color stylesheets, 317
background color for custom tables, overview, 298
417 processing order during publishing,
column breaks 248
repeating titles, 522 processing order in Arbortext Styler,
columns 249, 252-253
balancing, 186 start of HTML chunk tests, 300
justifying, 189 using XPath, 318
reorder columns in custom tables, XPath tests, 300
415 Configure Columns dialog box, 926
setting in a page set, 186 content
Columns category, 848 hiding element content, 236
x columns, 850 content tests
combined fonts, 635 conditions, 300
Combined Fonts list, 780 contexts
Comment tab, 785 applying property sets to, 258
comments changing page orientation, 598
creating for an object, 785 creating, 283
composition cutting, copying, and pasting, 325
overview of preview and publishing, deleting, 283
52 editing, 283
compound numbering example of creating, 291
pages, 345, 347-348 overview, 280
conditions priority of, 282
applying property sets to, 258 processing order during publishing,
attribute tests, 300 248
changing page orientation, 598 processing order in Arbortext Styler,
changing page size, 320 249, 252-253
conditions based on the result of a using XPath, 288
script, 746 Convert Stylesheet dialog box, 934
Index 1125
common stylesheet problems, 1064- Division Details, 941
1065, 1067-1068 Division Title Number, 942
output diagnostic information, 1064- Duplicate Translation Unit IDs in
1065, 1067-1068 Module, 949
functional areas, 1064-1065, Edit Attribute Test, 921
1067-1068 Edit Condition, 925
how to, 1064-1065, 1067-1068 Edit Content Test, 927
information types, 1064-1065, Edit Context, 929
1067-1068 Edit Document Language Mapping,
overview, 1064-1065, 1067-1068 948
sample output of set debug Edit Generated Cell, 977
command, 1064-1065, 1067-1068 Edit Generated Header Cell, 977
XPath performance, 1078 Edit Graphic XPath, 949
declared elements, 264, 266, 269 Edit HTML Attribute, 979
adding to stylesheet, 271 Edit Module, 950
Definition List Details dialog box, 939 Edit PDF Attribute, 979
delete Edit Translation Note, 1055
properties, 333 Edit Uses List, 950
Delete Properties dialog box, 941 Edit XPath Override for Current
Description tab, 784 Level, 951
dialog boxes Edit XPath Test, 1061
Add Document Language Mapping, Export CSS, 954
948 Export FOSI Stylesheet, 954
Add HTML Attribute, 979 Export Generated Text for
Add JavaScript Library, 918 Translation, 955
Add Module, 918 Export PTC APP Template, 953
Add Namespace Declaration, 919 Export XSL-EPUB Stylesheet, 956
Add New Elements, 920 Export XSL-FO Stylesheet, 957
Add PDF Attribute, 979 Export XSL-HTML File Stylesheet,
Add Target Language Mapping, 921 958
Add Translation Note, 1055 Export XSL-HTML Help Stylesheet,
Attribute Modifier, 921 959
Bullet, 923 Export XSL-Web Stylesheet, 960
Configure Columns, 926 Export-XSL-FO RTF Stylesheet,
Convert Stylesheet, 934 958
Copy to Module, 935 Field, 960
Cross Reference Details, 935 Final Page Number, 961
Custom Content, 936 Find Explicit Properties, 962
Customize Table of Contents, 937 Find Where Used, 964
Cut Properties, 939 Footnote Number, 966
Definition List Details, 939 Footnotes, 968
Delete Properties, 941 Formal Block Title Number, 971
Index 1127
fallback generalization, 630 Edit menu, 870, 872, 875, 880, 885,
footnotes, 434 887, 891-892, 894
indexes, 382 Edit menu in APP Source Editor, 897
specialized elements, 630 Edit menu in Generated Text Editor,
styling overview, 620, 622-623 903
unstyled elements, 630 Edit menu in Source Editor, 899
working with the resolved document Edit Module dialog box, 950
for styling, 623 Edit PDF Attribute dialog box, 979
Division Details dialog box, 941 Edit Translation Note dialog box, 1055
Division Title Number dialog box, 942 Edit Uses List dialog box, 950
divisions Edit XPath Override for Current Level
generate titles for divisions without dialog box, 951
title elements, 483 Edit XPath Test dialog box, 1061
including division reference in edited source
headers and footers, 343 regenerate when updating a
labeling, 483 stylesheet, 49
non Latin numbering, 638 editing source, 703, 714
numbering, 483 APP root template, 712
compound numbering, 483 APP Source Editor, 897
divisions without title elements, common XSL source, 711
483 compare edited source and XPath,
page x of y numbering, 483 731
specify division levels, 43 contexts, 706
Duplicate Translation Unit IDs in custom JavaScript functions, 749
Module dialog box, 949 delete source edits, 731
elements, 706
elements with numbered conditions
E
or contexts, 726
eBook examples, 723
publishing content for eBooks, 153 FOSI resource description, 710
Edit Attribute Test dialog box, 921 identify items with edited source,
Edit Condition dialog box, 925 700
Edit Content Test dialog box, 927 introduce complex or custom code,
Edit Context dialog box, 929 727, 729
Edit Document Language Mapping adding custom XSL code, 727,
dialog box, 948 729
Edit Generated Cell dialog box, 977 locating missing references, 725
Edit Generated Header Cell dialog box, page set, 709
977 PDF forms in PDF output, 752
Edit Graphic XPath dialog box, 949 property set, 709
Edit HTML Attribute dialog box, 979 source containing references, 725
Source Editor, 899
Index 1129
Export XSL-Web Stylesheet dialog overview, 338
box, 960 Footnote category, 821
Footnote Number dialog box, 966
footnotes
F
DITA model, 434
fallback generalization, 630 footnote contexts in Elements list,
Field dialog box, 960 422
figures format reference mark, 439-441,
labeling, 491 444, 447
output specific, 491 attribute value as marker, 439-
numbering, 491 441, 444, 447
output specific, 491 numbered footnotes and footnotes
File menu, 870, 872, 875, 880, 885, with reference marks from
887, 891-892, 894 attribute value, 439-441, 444,
File menu in APP Source Editor, 897 447
File menu in Generated Text Editor, scoped footnote numbering, 439-
903 441, 444, 447
File menu in Source Editor, 899 hybrid model, 434
Final Page Number dialog box, 961 inline model (same element for
Find Explicit Properties dialog box, reference mark and content), 425
962 non Latin numbering, 638
Find Explicit Properties Results overview, 422
window, 963 properties, 821
Find menu in Source Editor, 899 reference marker based on callout
Find Where Used, 766 attribute, 434
Find Where Used dialog box, 964 reference model (different elements
Find Where Used Results Window, for reference mark and content),
965 431
font suppress punctuation in footnote
combined fonts, 635 reference, 495
multiple fonts in a single block, 635 Footnotes dialog box, 968
footers Formal Block Title Number dialog
add content, 341 box, 971
adding to a page set, 198 formal blocks
create, 338 labeling, 491
include compound page number, output specific, 491
345, 347-348 non Latin numbering, 638
include division reference, 343 numbering, 491
to titles that contains footnotes, output specific, 491
343 Format category, 861, 866
include page number, 345, 347-348 Format menu in Generated Text Editor,
include x of y page numbering, 345, 903
347-348
Index 1131
Graphic category, 843, 856 chunked HTML output, 148
Graphic Details dialog box, 978 creating online TOC for chunked
graphics HTML output in Arbortext Styler,
alternate text support, 172 774
configuring a graphic element, 278 CSS files in HTML output, 159
configuring to output barcodes and custom JavaScript functions in
QR codes, 599 HTML output, 749
in generated text, 511 define chunk boundaries, 148
intelligent graphics, 568 define chunk filenames, 148
PDF graphics, 570 generate accessible HTML output,
graphics sets 155
stylesheet support, 568 generate XHTML output, 153
HTML tags, 834
JavaScript libraries in HTML
H
output, 749
Header Cells category, 864 pass metadata to chunked output,
headers 148
add content, 341 persistent file name, 814
adding to a page set, 198 preview documents with stylesheet,
create, 338 53
include compound page number, styling HTML from different
345, 347-348 document types, 165
include division reference, 343 HTML Functions list, 781
to titles that contain footnotes, HTML Help
343 create chunked output, 148
include page number, 345, 347-348 HTML tag category, 834
include x of y page numbering, 345, HTML tags
347-348 attributes, 979
overview, 338 HTML/CSS Defects List, 982
Hebrew HTML5
features to enable Hebrew text, 634 generate HTML5 output, 153
numbering styles, 638 hyphenation, 216, 219
Help menu, 870, 872, 875, 880, 885, languages supported in Styler, 216,
887, 891-892, 894 219
Help menu in APP Source Editor, 897 hyphenation language, 804
Help menu in Source Editor, 899
HTML
alternate text support from graphics, I
172 Import Generated Text Translation
attributes for semantic HTML dialog box, 983
output, 979 Incomplete Document Types for
chunk boundary, 814 Stylesheet dialog box, 985
indent
Index 1133
widow and orphan control, 274 List Unused Definitions, 766
keyboard navigation, 1082 lists
Korean bullets, 479
features to enable Korean text, 634 change default characters, 479
change font, 479
output specific, 479
L
non Latin numbering, 638
labeling numbering, 474
divisions, 483 output specific, 474
divisions without title elements,
483
figures, 491 M
formal blocks, 491 margins
output specific, 491 hanging punctuation, 644
tables, 491 setting in a page set, 185
landscape mode markup
formatting tables in, 598 in generated text, 509
language menus
language settings for a stylesheet, 32 Arbortext Styler, 870, 872, 875, 880,
non-Latin languages 885, 887, 891-892, 894
combined fonts, 635 Edit, 870, 872, 875, 880, 885,
hanging punctuation, 644 887, 891-892, 894
non-Latin numbering styles, 638 File, 870, 872, 875, 880, 885, 887,
right to left layout direction, 652 891-892, 894
strikethrough styles, 646 Help, 870, 872, 875, 880, 885,
underline styles, 646 887, 891-892, 894
overview of support for non Latin Insert, 870, 872, 875, 880, 885,
languages, 634 887, 891-892, 894
leaders Options, 870, 872, 875, 880, 885,
in generated text, 507 887, 891-892, 894
limitations of output support, 1084 Preview, 870, 872, 875, 880, 885,
Link Details dialog box, 1005 887, 891-892, 894
Link Target Details dialog box, 1006 Tools, 870, 872, 875, 880, 885,
links 887, 891-892, 894
basic link formatting, 551 View, 870, 872, 875, 880, 885,
create simple internal link, 551 887, 891-892, 894
overview, 550 Styler menu in Arbortext Editor,
SFEs to support dynamic linking 870, 872, 875, 880, 885, 887, 891-
_sfe:ExternalLink, 565-566 892, 894
_sfe:InternalLink, 565-566 metadata
SFEs to support linking, 565-566 custom XMP metadata in PDF
List Item Number dialog box, 1007 output, 169
Index 1135
place number after title, 495 P
start numbering at 0, 495
page breaks
start numbering based on attribute
repeating titles, 522
value, 495
page extent
suppress punctuation in references to
setting for a page set, 184
numbered element, 495
page layout, See page sets
tables, 491
hanging punctuation, 644
Thai numbering styles, 638
right to left layout direction, 652
use XPath to generate non-standard
page layouts
numbering, 506
side by side formatting, 204
x of y page numbers in headers and
Page Number Start At dialog box,
footers, 345, 347-348
1027
Numbering Start and Restart dialog
page numbers
box, 1023
defining in a page set, 199
include page numbers in headers and
O footers, 345, 347-348
Page Numbers category, 851
open
page orientation
open existing stylesheet, 30
setting for a page set, 182
Open Stylesheet dialog box, 1024
using conditions to change, 598
Options menu, 870, 872, 875, 880,
using contexts to change, 598
885, 887, 891-892, 894
page regions
orphans, 812
avoid settings, 859
controlling with keeps, 274
background color, 859
Other category, 852
borders, 858
Other category (page regions), 859
clip to page edge, 859
output
creating for a page set, 190
chunked HTML output, 148
creating with a helper, 192
create sets of output formats to style,
graphic content, 856
950
position, 853
generate HTML5 output, 153
rotation, 853
generate XHTML output, 153
size, 853
generate XHTML5 output, 153
text content, 855
styling HTML from different
Page Regions list, 774
document types, 165
Borders category, 858
output support
Graphic category, 856
limitations, 1084
Other category, 859
Outputs to edit
Position category, 853
sets of output formats, 235
Text category, 855
Outputs to Edit field, 787
page sets
applying to an element, 200
change bars, 852
Index 1137
applying to elements, 239 deleting, 333
precedence level of, 239 deriving properties from ancestors,
precedence 223
specifying for prespace and deriving property values, 223
postspace, 239 footnotes, 821
prespace generated text, 818
applying to elements, 239 HTML tags, 834
precedence level of, 239 hyphenation language, 804
preview indent, 795
overview of preview and publishing, initial, 243
52 keeps, 812
preview documents with stylesheet, modifying, 233
53 multi-output properties, 235
preview with PTC APP, 55 orphans, 812
Preview menu, 870, 872, 875, 880, output-specific properties, 234
885, 887, 891-892, 894 overview, 222
print PDF graphics, 843
preview documents with stylesheet, PDF tags, 831
53 persistent file name, 814
print with PTC APP, 55 processing order of properties in
set PTC APP as default print engine Arbortext Styler, 249, 252-253
for stylesheet, 55 property derivation chain, 223
print engine property sets, 820
APP resolving property values, 227
PDF configuration file, 87-88, 90, RTF, 838
94-95 run-in titles, 804
print/PDF side by side, 825
keeps, 812 spacing, 800
orphans, 812 structure type, 804
widows, 812 text, 787
processing order widows, 812
during publishing, 248 word breaks, 804
in Arbortext Styler, 249, 252-253 property sets
properties applying to contexts or conditions,
applicable page set, 804 258
block border, 823 applying to property sets, 258
chunk boundary, 814 block elements
color changes when properties set, borders, 823
244 creating, 256
compare explicit and derived values, cutting, copying, and pasting, 328
229 deleting, 256
cutting, copying, and pasting, 333 editing, 256
Index 1139
orphans, 812 S
overview of Arbortext Import/
Save As Merged Stylesheet dialog box,
Export, 656
1026
preview documents with stylesheet,
Save Stylesheet As dialog box, 1026
53
scripts
properties, 838
accessing from Arbortext Styler, 746
publish figures, 670
create conditions based on the result
publish footnotes and endnotes, 692
of a script, 746
publish headers and footers, 689
embed output of script in generated
publish lists, 687
text, 746
publish scoped table of contents, 692
_sfe:ExternalLink, 565-566
publish table and figure captions,
_sfe:GeneratedCell, 411
673-674, 677, 681
_sfe:GeneratedHeaderCell, 411
mapping a context to a single
_sfe:GeneratedHeaderRow, 411
paragraph style, 673-674, 677,
_sfe:InternalLink, 565-566
681
SFEs, See Styler Formatting Elements
mixing paragraph and character
_sfe:ExternalLink, 565-566
styles with a SEQ field, 673-674,
_sfe:InternalLink, 565-566
677, 681
SFEs to support custom table cells
using generated text for labeling a
generated via XPath, 411
SEQ field for numbering, 673-
SFEs to support linking, 565-566
674, 677, 681
Side by side category, 825
publish tables, 672
Sizes list, 778
publish with/without Word style
source
names, 658
editing stylesheet source, 703
publish Word fields, instructions,
viewing stylesheet source, 701
and switches, 663
Source Editor, 899
publish XML attributes to Word
menus, 899
styles, 667
space
publish XML files to RTF, 656
applying to elements, 239
troubleshooting Import and Export
space fills
issues, 695
insert in generated text, 507
log files, error return codes, and
spacing
event log errors, 695
elements, 800
widows, 812
pages, 800
RTF category, 838
text, 800
rules
Spacing category, 800
in generated text, 507
spacing properties, 800
run-in styling, 215
specialized elements, 630
run-in titles, 804
Standard toolbar, 894
Start At dialog box, 1027
Index 1141
change a title's numbering for its generate accessible HTML output,
TOC entry, 360 155
change a title's punctuation for its generate accessible PDF output, 138
TOC entry, 360 pink tags, 36
control TOC entries based on template
attribute, 360 .3f files in Arbortext Styler, 55
control TOC entries based on associate PTC APP template with
content, 360 stylesheet, 55
control TOC entries with XPath, guidelines for PTC APP templates
360 associated with stylesheets, 55
include a title that contains tests
footnotes, 360 creating for conditions
include additional generated text attribute test, 921
in TOC entry, 360 content test, 927
include generated titles, 360 start of HTML chunk test, 1030
content test for conditions, 927 XPath test, 1061
creating a table of contents format editing for conditions
object, 355 attribute test, 921
creating online TOC for chunked content test, 927
HTML output in Arbortext Styler, start of HTML chunk test, 1030
774 XPath test, 1061
customizing, 937 text
customizing the content, 360 alignment, 795
cutting, copying, and pasting, 330 effects, 787
formatting, 1050 hide, 787
modify a table of contents format, indent, 795
357 non-Latin languages
non standard formatting, 370 combined fonts, 635
numbering to left of entry, 370 hanging punctuation, 644
overview, 352 non-Latin numbering styles, 638
start of HTML chunk test for right to left layout direction, 652
conditions, 1030 strikethrough styles, 646
styling an element to generate a underline styles, 646
table of contents, 357 offset, 787
XPath test for conditions, 1061 shading, 787
Tables of Contents Condition dialog size, 787
box, 1049 spacing, 800
Tables of Contents Details dialog box, style, 787
1050 super/subscript, 787
Tables of Contents list, 774 Text category, 787
tags Text category (page regions), 855
text properties, 787
X
XHTML
Index 1143
generate XHTML output, 153
styling XHTML from different
document types, 165
XHTML5
generate XHTML5 output, 153
XMP
custom XMP metadata in PDF
output, 169
XPath
generating custom table cells via
XPath, 411
generating custom table header rows
via XPath, 411
insert element node set in generated
text, 518
insert element/attribute content in
generated text, 518
number non-numbered elements,
506
tips to improve XPath performance,
1078
use XPath to generate non-standard
numbering, 506
XPath expressions in generated text,
518
XPath Predicate dialog box, 1060
XPath tests
conditions, 300
.xsl file, 46
XSL stylesheets
exporting stylesheets as, 176