dn2osdbk: support the :command: inline markup

This sphinx markup will be converted to a <command> docbook tag.

Change-Id: I1b3c8eac7b70db41cb47f0a8158c93a56e8990fd
This commit is contained in:
Gauvain Pocentek 2014-08-26 08:48:54 +02:00
parent b7cb32e44c
commit cb86eed9dc
1 changed files with 14 additions and 6 deletions

View File

@ -415,12 +415,20 @@ INLINETAGS
</xsl:template>
<xsl:template match="strong">
<emphasis>
<xsl:attribute name="role">
<xsl:value-of select="'strong'"/>
</xsl:attribute>
<xsl:apply-templates/>
</emphasis>
<xsl:choose>
<xsl:when test="@classes='command'">
<command>
<xsl:apply-templates/>
</command>
</xsl:when>
<xsl:otherwise>
<emphasis>
<xsl:attribute name="role">
<xsl:apply-templates/>
</xsl:attribute>
</emphasis>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="literal">