Wrapping cmd, info, stepxmp etc with divs in HTML output


Mica Semrick
 

Hi all,

I'm having some trouble finding my way; any help would be excellent.

I need to wrap the elements cmd, info, stepxmp in some extra structure in the HTML5 output.

So far, I have this template, but it doesn't work as expected:



<xsl:template match="*[contains(@class, ' task/cmd ')] | *[contains(@class, ' task/info ')] | *[contains(@class, ' task/stepxmp ')]">

<div class="wrap">
<div class="left">
<xsl:apply-templates select="current()" mode="topic.task.cmd"/>
<xsl:apply-templates select="current()" mode="topic.task.info"/>
</div>

<div class="right">
<xsl:apply-templates select="current()" mode="topic.task.stepxmp"/>
</div>

</div>

</xsl:template>

Best,
Mica

Join main@dita-users.groups.io to automatically receive all group messages.