Why no bolding when using <unicode> with "dita2ht
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 24
- Joined: Thu Oct 18, 2007 7:17 pm
- Location: California
Why no bolding when using <unicode> with "dita2ht
Post by Charlie Williams »
Hello,
In the library of DITA references is states this:
"The bold (<b>) element is used to apply bold highlighting to the content of the element. Use this element only when there is not some other more proper element. For example, for specific items such as GUI controls, use the <uicontrol> element. This element is part of the DITA highlighting domain."
It also states that when using "<note type="Important"> the word "Important" will appear as bolded.
In the section following, these elements are not bolded although I'm using the default file, "dita2html.xsl." It is supposed to find the dita.css file. This should display the elements as bolded.
<prereq>
<note type="important">We strongly recommend that you write down your administrator user password and save it in a safe place. If you forget your password, you have to call Sage Customer Support to re-set it. </note>
<p>After the License Administration Tool has been successfully installed, clicking the <uicontrol>License Administration Tool </uicontrol> desktop icon opens the <wintitle>Logon Administrator Password</wintitle> window. </p>
<note type="important">Your License Administrator Tool password is case-sensitive. </note>
<p>
<b>To set the administrator user password:</b>
</p>
</prereq>
<steps>
<step>
<cmd>In the
<uicontrol>Password</uicontrol>
box, type a password.</cmd>
</step>
I must be missing something. Can anyone provide information that would help me point to the correct ".xsl" file so that this aspect of dita automation works correctly?
Here is the path to the .xsl file.
file:/C:/projects/AdminPassword/frameworks/dita/DITA-OT/xsl/dita2html.xsl
Thanks,
Charlie
In the library of DITA references is states this:
"The bold (<b>) element is used to apply bold highlighting to the content of the element. Use this element only when there is not some other more proper element. For example, for specific items such as GUI controls, use the <uicontrol> element. This element is part of the DITA highlighting domain."
It also states that when using "<note type="Important"> the word "Important" will appear as bolded.
In the section following, these elements are not bolded although I'm using the default file, "dita2html.xsl." It is supposed to find the dita.css file. This should display the elements as bolded.
<prereq>
<note type="important">We strongly recommend that you write down your administrator user password and save it in a safe place. If you forget your password, you have to call Sage Customer Support to re-set it. </note>
<p>After the License Administration Tool has been successfully installed, clicking the <uicontrol>License Administration Tool </uicontrol> desktop icon opens the <wintitle>Logon Administrator Password</wintitle> window. </p>
<note type="important">Your License Administrator Tool password is case-sensitive. </note>
<p>
<b>To set the administrator user password:</b>
</p>
</prereq>
<steps>
<step>
<cmd>In the
<uicontrol>Password</uicontrol>
box, type a password.</cmd>
</step>
I must be missing something. Can anyone provide information that would help me point to the correct ".xsl" file so that this aspect of dita automation works correctly?
Here is the path to the .xsl file.
file:/C:/projects/AdminPassword/frameworks/dita/DITA-OT/xsl/dita2html.xsl
Thanks,
Charlie
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
I have generated the HTML file from a task containing the XML fragment. Looking in the HTML source I observed that the note has been transformed into:
As you can see, the "Important:" word is wrapped in a span element, having an importanttitle class. Theoretically, you will have to add a style for that class in the CSS file it is referred from the HTML file.
An article about imposing a CSS to the DITA HTML output:
http://talk.bmc.com/blogs/blog-gentle/a ... a-chm-tips
Also, please see the DITA-OT user manual for more details.
(Probably you should create some ANT files to perform this advanced processing)
Regards,
Dan
Code: Select all
<div class="important">
<span class="importanttitle">Important:</span>
We strongly recommend that you write down your administrator user
password and save it in a safe place. ........ </div>
An article about imposing a CSS to the DITA HTML output:
http://talk.bmc.com/blogs/blog-gentle/a ... a-chm-tips
Also, please see the DITA-OT user manual for more details.
(Probably you should create some ANT files to perform this advanced processing)
Regards,
Dan
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service