Hazard Statement Elements Output to Word
Posted: Wed Jun 29, 2022 12:12 am
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:
And here's what it looks like in Word:
Danger
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>
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