Hazard Statement Elements Output to Word

Are you missing a feature? Request its implementation here.
wdtanner
Posts: 4
Joined: Thu May 19, 2022 7:40 pm

Hazard Statement Elements Output to Word

Post 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
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: Hazard Statement Elements Output to Word

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
wdtanner
Posts: 4
Joined: Thu May 19, 2022 7:40 pm

Re: Hazard Statement Elements Output to Word

Post by wdtanner »

Thank you, Radu.
Post Reply