Page 1 of 1

HTML structure Caution & Danger

Posted: Thu Oct 15, 2015 11:22 am
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

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.

Re: HTML structure Caution & Danger

Posted: Thu Oct 15, 2015 3:49 pm
by radu_pisoi

This seems to be done intentionally, see the XSLT template that process caution note: ... 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:

Re: HTML structure Caution & Danger

Posted: Fri Oct 16, 2015 11:05 am
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.