Basic CSS question from FM 12 unstructured

Contributor ,
Jan 07, 2016 Jan 07, 2016

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

Views

262

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 15, 2016 Jan 15, 2016

Copy link to clipboard

Copied

LATEST

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:

HTML Mapping Table
FrameMaker Source ItemXML ItemInclude Auto#Comments
ElementNew Web Page
P:Heading1_TopOfPageh1YN

P:Heading1

h1NN
P:Heading2h2NN
P:BodypNN

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 ItemXML ItemInclude Auto#Comments
ElementNew Web Page
P:Heading1_TopOfPageH*YN

P:Heading1

H*NN
P:Heading2H*NN
P:BodypNN

The result will be like what you described.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines