Peter
Peter

Reputation: 1759

text in table is always bold with XSLT

I have a XML and a XSLT file. This is my XML structure:

<bibliography>
    <element>
        <anotherelement>
            Some text and <italic>italic Text</italic> and <bold>bold text</bold>
        </anotherelement>
    </element>
    ...
</bibliography>

The structure of the output of the XML is right but somehow everything is bold in the table. How can I fix this, that only the elements with a <bold> tag are bold and the rest is normal?

This is how the text looks like without the table: enter image description here And with the table it suddenly look like this: enter image description here

Upvotes: 0

Views: 443

Answers (1)

Martin Honnen
Martin Honnen

Reputation: 167516

Don't put everything in th elements, use td for table data. And of course use the proper nesting for HTML tables which is <table><tbody><tr><td>...</td></tr><!-- more tr rows here --></tbody></table>.

Upvotes: 2

Related Questions