Page 1 of 1

Hazard Statement Elements Output to Word

Posted: Wed Jun 29, 2022 12:12 am
by wdtanner
I'm trying to develop a transformation scenario that will output to a MS Word template file (.dotx). There are quite a few things that aren't working as expected, but the one that stands out is how the <hazardstatement> element is handled. It looks like they are handled as an unordered list. There is no warning symbol or table, just a bold title and two bullet items. Is this something I'm doing wrong or is this a symptom of hazard statements being a relatively new development?

Here's the code:

Code: Select all

<hazardstatement xml:lang="en-US" type="danger" id="battery_explosive_fumes_danger" outputclass="page-break-avoid">
            <messagepanel>
               <typeofhazard>Explosive Fumes</typeofhazard>
               <howtoavoid>When working around batteries, avoid any sparks or flames. The hydrogen
                  gas given off by batteries is explosive. Serious injury or death will occur if
                  explosive fumes are exposed to sparks or flames.</howtoavoid>
            </messagepanel>
         </hazardstatement>
And here's what it looks like in Word:
Danger
  • Explosive Fumes
  • When working around batteries, avoid any sparks or flames. The hydrogen
    gas given off by batteries is explosive. Serious injury or death will occur if
    explosive fumes are exposed to sparks or flames

Re: Hazard Statement Elements Output to Word

Posted: Wed Jun 29, 2022 7:57 am
by Radu
Hi,

Oxygen uses a third party plugin to produce Word output from DITA content, I reproduced the problem and added an issue on the plugin's issues list:
https://github.com/jelovirt/com.elovirt ... /issues/96
Unfortunately I do not have right now a workaround for you.

Regards,
Radu

Re: Hazard Statement Elements Output to Word

Posted: Thu Jun 30, 2022 6:17 pm
by wdtanner
Thank you, Radu.