Reputation: 1759
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:
And with the table it suddenly look like this:
Upvotes: 0
Views: 443
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