Next Previous Up Top Contents Index

WebMaker User Guide

6.2.3 Options for style sheets

By default, WebMaker generates a Cascading Style Sheet based on the paragraph tags and formatting properties in the FrameMaker document. The default filename of the generated style sheet is based on the Web page file name prefix. WebMaker style sheet files always have a .css file type.

When WebMaker generates a style sheet, most HTML elements in the output Web pages are marked with a CLASS attribute that is derived from the corresponding tag in the FrameMaker document. This attribute allows a style sheet to use the CLASS name to control the formatting of Web page elements.

By default, when WebMaker generates a style sheet, a LINK tag is generated in the HEAD of each HTML file that points to the generated style sheet.

You can provide options to control whether to generate a style sheet, its filename, and what style sheet to specify in the LINK tag.

-styles CSS-file Specifies CSS-file as the filename for the generated style sheet.

-nostyles

Do not generate a style sheet and do not insert CSS markup into the HTML files.

-linkstyles name

Create a link on each generated HTML page to the specified style sheet instead of the usual link to the automatically generated style sheet; also do insert CSS markup into the HTML files. Note that WebMaker automatically appends the .css extension to the name you provide, so do not provide a name with a .css extension. This option is useful in two cases. The first case is for people who already have a style sheet; you can use this option to link to it within the HTML. The second case is for people who want to customize some aspects of the style sheet generated by WebMaker. In this case, you can have the HTML pages link to the customized style sheet, which can in turn link to the automatically generated style sheet that WebMaker produced.

To generate a style sheet and link automatically, specify no style sheet options:

webmaker ... mydoc.MIF                  (generates mydoc.css)

To specify the name of the generated style sheet, use the -styles option:

webmaker -styles docstyles ...          (generates docstyles.css)

To generate a link on all Web pages to an external style sheet named localstyles.css and not to the generated one:

webmaker -linkstyles localstyles ...

To skip generating a style sheet based on the FrameMaker document:

webmaker -nostyles ...

To skip generating a document specific style sheet, and generate a link to an external style sheet:

webmaker -nostyles -linkstyles localstyles ...