HTML structure Caution & Danger

Post here questions and problems related to editing and publishing DITA content.
Tristan
Posts: 30
Joined: Tue Jun 02, 2015 2:01 pm

HTML structure Caution & Danger

Post by Tristan »

The dita toolbox delivered with oxygen 17 will convert most note types to the following structure in the HTML output:

Code: Select all

<div class="note warning">
<span class="warningtitle">Warning:</span>
This is a warning example text
</div>

However for the 'caution' and 'danger' type the structure in the HTML output differs:

Code: Select all

<div class="cautiontitle">CAUTION:</div>
<div class="note caution">A caution type note text</div>
Has this been done intentionally?
Having no parent container for caution and danger makes it a bit more tricky to style, but especially the different approach for those two types, seem to unnecessarily overcomplicate styling.
radu_pisoi
Posts: 404
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: HTML structure Caution & Danger

Post by radu_pisoi »

Hi,

This seems to be done intentionally, see the XSLT template that process caution note:
https://github.com/dita-ot/dita-ot/blob ... l.xsl#L666

I'm not sure if I entirely understand the reason why they are processed differently, so I have added an issue to the DITA-OT project:
https://github.com/dita-ot/dita-ot/issues/2100
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Tristan
Posts: 30
Joined: Tue Jun 02, 2015 2:01 pm

Re: HTML structure Caution & Danger

Post by Tristan »

Thanks for the quick response and request.
It's not critical and can be handled in styling; it just seems to unnecessarily 'complicate' consistent styling of note boxes.
Post Reply