You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to inject code into the HTML header using a hdf file, that can be passed using the args.hdf parameter. A hdf file must be a valid XML file. Therefore it needs to have a root element. So it is not possible to inject multiple elements.
But there is a template in dita2htmlImpl.xsl which unwraps a root <div> element, if it exists.
<!-- For header file processing, pull out the wrapping DIV if one is there -->
<xsl:templatematch="/div"mode="add-HDF">
<xsl:apply-templatesselect="*|comment()|processing-instruction()|text()"mode="add-HDF"/>
</xsl:template>
It is possible to inject code into the HTML header using a hdf file, that can be passed using the
args.hdf
parameter. A hdf file must be a valid XML file. Therefore it needs to have a root element. So it is not possible to inject multiple elements.Valid:
Invalid:
But there is a template in
dita2htmlImpl.xsl
which unwraps a root<div>
element, if it exists.Valid:
Currently this is not explained in the docs, see HTML-based output parameters ->
args.hdf
.@infotexture: Could you please explain that in the docs?
The text was updated successfully, but these errors were encountered: