Associating a Stylesheet with a Document
A stylesheet association processing instruction links your document to a specific stylesheet for a specific output. You can assign different stylesheets for different purposes. For example, for a single document, you can associate an XSL-FO stylesheet to be used only when publishing to print and PDF, a FOSI for Editor display, and an XSLT stylesheet for generating HTML output. This
processing instruction is saved in the document and overrides any defaults for this document.
The stylesheet must be appropriate for the output type. Certain
stylesheets are designed to work with a specific output type, while others may have a
stylesheet ID processing instruction that limits its use.
To associate a stylesheet with a document:
1. Open the document you want to add an association to in Arbortext Editor. Choose > to open the Select Stylesheets dialog box.
2. Select a media type for the stylesheet association. A document can only have one stylesheet association per media type.
◦ Editor/Default — controls the document display in Arbortext Editor.
◦ Print/PDF — controls publishing to print and PDF.
◦ HTML Help — controls publishing for HTML Help.
◦ Web — controls Web documents with framesets.
◦ RTF — control publishing of RTF output.
◦ EPUB — controls publishing of EPUB-ready HTML output
If you are not using Arbortext Publishing Engine, the list displays the path and file name or the URL of the selected stylesheet. If the stylesheet file name is preceded by the (pe) notation, the stylesheet is located on the Arbortext PE server and its path will not be displayed. Stylesheets specified by URL are listed in either case.
You can add a stylesheet to the list by clicking the Add button, which offers the following choices:
◦ If you are not publishing using Arbortext Publishing Engine, it opens the Modify Stylesheet Selection file browser. You can enter the path and file name or the URL of a stylesheet to add to this list.
5. Click the Add association button.
6. Click OK to insert the stylesheet association processing instruction and close the dialog box.
7. Return to step 2 to add a stylesheet association for the other output types. You can store one stylesheet association per type.
8. You must save your document to save the stylesheet associations.
If you are publishing using Arbortext Publishing Engine and a document contains a stylesheet association specified with a path, Arbortext Publishing Engine will attempt to locate a stylesheet of the same name on the Arbortext PE server. The path to the stylesheet will be ignored, and only the stylesheet name is used by the server to determine a match. If you are using Arbortext Publishing Engine, the following tools are available to determine stylesheet availability:
• > — Provides information about the Arbortext PE Request Manager you are using during the publishing process. The Arbortext Publishing Engine server returns a report containing information about the host platform, licensing, and the Arbortext PE server and Arbortext PE sub-process build and version. It also lists document types, stylesheets, framesets, and publishing configuration.
• > > — Opens the
Compare Publishing Configuration with PE Dialog Box. You can generate a report comparing publishing configuration on the
Arbortext Editor client with publishing configuration on the
Arbortext PE server. The returned Publishing Configuration Comparison report notes the differences between the publishing environment on the client and the server. This information can help PTC Technical Support diagnose problems.
Related information