About Arbortext Styler > Document Preview and Publishing > Styling HTML Files from Different Document Types > New stylesheets
  
New stylesheets
Use this process if you are creating new stylesheets for documents of different document types and you want all resulting documents to display the same styling.
1. Create a new stylesheet to support the first document type, for example axdocbook.
2. Create a new module and move all property sets to the new module.
3. Set up the stylesheet as required:
Assign Styler styles to all the elements
Specify any generated text settings
Specify property settings that should be reflected in the HTML output by referencing property sets from the property sets module.
If you need to create a new property set, ensure you move it to the property sets 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.
4. Create a new module for any objects defining tables of contents (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.
5. 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.
6. 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.
7. Create a new stylesheet to support the second document type, for example DITA.
8. Add a reference to the property sets module created for the first (axdocbook) stylesheet, and TOCs and combined font modules if you created them.
9. Delete all property sets in the root module so that they will not override the ones in the property set module.
10. Set up the stylesheet as required, as described above.
11. Set the Create CSS rules for field for the required HTML output to the value Property sets, as shown above.
12. Create your required HTML (or XHTML) output in the usual way.
13. 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.
* 
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.