About Arbortext Styler > Document Preview and Publishing > Styling HTML Files from Different Document Types > Existing stylesheets
  
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.
5. For each stylesheet:
Add the property sets module, and the TOC and combined font modules if these exist.
Assign the necessary property sets to the element contexts and conditions, replacing explicit property settings for the required output format as these will not be included.
Change existing references to TOC objects to point to the new shared module, if applicable.
Change existing references to combined font definitions to point to the new shared module, if applicable.
Refer to the HTML tab of the Stylesheet Properties dialog box. Set the Create CSS rules for field for the required HTML output to the value Property sets.
6. Create your required HTML (or XHTML) output in the usual way.
7. You will see that documents published from both stylesheets have a consistent look. CSS information generated by the publishing action will include references to the property sets rather than specific properties.