Webhelp hazard statement XSLT extension point
Posted: Wed Mar 17, 2021 12:55 am
We use a custom Webhelp extension point that overrides the HTML5 XSL template for hazardstatement.
"C:\DITA-OT3.x\plugins\org.dita.html5\xsl\hazard-d.xsl"
Our extension includes the whole HTML5 hazardstatement table from hazard-d.xsl. We've copied the template from this file and modified the use of symbols and borders. We also added conditional statements to differentiate 2 different hazard statement styles that are controlled by a parameter.
The latest Webhelp release v23.1 now includes its own extension of this template.
"C:\DITA-OT3.x\plugins\com.oxygenxml.webhelp.responsive\xsl\dita2webhelp\html5-pdf-webhelp\html5-hazard.xsl"
But the new Webhelp extension breaks into different parts:
Is there a way to call our extension of the HTML5 hazard-d.xsl instead of the original one?
Or should we extend the new html5-hazard.xsl templates instead?
"C:\DITA-OT3.x\plugins\org.dita.html5\xsl\hazard-d.xsl"
Our extension includes the whole HTML5 hazardstatement table from hazard-d.xsl. We've copied the template from this file and modified the use of symbols and borders. We also added conditional statements to differentiate 2 different hazard statement styles that are controlled by a parameter.
The latest Webhelp release v23.1 now includes its own extension of this template.
"C:\DITA-OT3.x\plugins\com.oxygenxml.webhelp.responsive\xsl\dita2webhelp\html5-pdf-webhelp\html5-hazard.xsl"
But the new Webhelp extension breaks into different parts:
- Call original template from org.dita.html5/xsl/hazard-d.xsl.
- Add hazard type to class attribute.
- Add hazard header in a thead element and define colgroup.
- Add hazard content into a tbody element.
Is there a way to call our extension of the HTML5 hazard-d.xsl instead of the original one?
Or should we extend the new html5-hazard.xsl templates instead?