Copy link to clipboard
Copied
Hi,
FM12 all patched, unstructured, save as HTML. Why is FM 12 outputting the following in the CSS?
H1.Heading2, H2.Heading2, H3.Heading2, H4.Heading2, H5.Heading2, H6.Heading2
For my Heading2 style, it creates classes for H1, H2, H3 .... This happens for other styles, too. Why? Heading2 would only be H2. Similarly Heading1 would only be H1. Can I clean this up to just be,
H2.Heading2 and delete the rest?
Cheers,
Sean
Copy link to clipboard
Copied
Have you found a solution? If not: Check the reference page of the fm document.
But first: FM Outputs an element and adds a class to this element. The class attribute is based on the Paragraph Style name). This makes it possible to map e.g. multiple paragraphs with different paragraph styles to one and the same element and still being able to differentiate between them.
If you do not use H* (Heading (Auto Level)), but this:
FrameMaker Source Item | XML Item | Include Auto# | Comments | |
---|---|---|---|---|
Element | New Web Page | |||
P:Heading1_TopOfPage | h1 | Y | N | |
P:Heading1 | h1 | N | N | |
P:Heading2 | h2 | N | N | |
P:Body | p | N | N |
This should result in:
<h1 class="Heading1_TopOfPage">foo</h1>
<h1 class="Heading1">foo</h1>
<h2 class="Heading2">foo</h2>
The CSS should be something like this:
h1.Heading1_TopOfPage {
…;
}
h1.Heading1 {
…;
}
h2.Heading2 {
…;
}
p.Body {
…;
}
With "Heading (Auto Level)":
FrameMaker Source Item | XML Item | Include Auto# | Comments | |
---|---|---|---|---|
Element | New Web Page | |||
P:Heading1_TopOfPage | H* | Y | N | |
P:Heading1 | H* | N | N | |
P:Heading2 | H* | N | N | |
P:Body | p | N | N |
The result will be like what you described.