<xsl:value-of select="following-sibling::mim:input-method[1]/mim:title"/>
<xsl:text> icon:<img src="</xsl:text>
<xsl:value-of select="substring-before(., '.mimx')"/><xsl:text>.png" border="1" style="vertical-align:middle;"> @endhtmlonly)\r@verbatim\r</xsl:text>
- <xsl:value-of select="following-sibling::mim:input-method[1]/mim:description"/>
+ <xsl:choose><xsl:when test="following-sibling::mim:input-method[1]/comment()">
<xsl:value-of select="following-sibling::mim:input-method[1]/comment()"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="following-sibling::mim:input-method[1]/mim:description"/>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text> \r@endverbatim\r</xsl:text>
</li>
</xsl:when>
<xsl:text> name:</xsl:text>
<xsl:value-of select="following-sibling::mim:input-method[1]/mim:tags/mim:name"/>
<xsl:text>)\r@verbatim\r</xsl:text>
- <xsl:value-of select="following-sibling::mim:input-method[1]/mim:description"/>
- <xsl:value-of select="following-sibling::mim:input-method[1]/comment()"/>
+ <xsl:choose>
+ <xsl:when test="following-sibling::mim:input-method[1]/comment()">
+ <xsl:value-of select="following-sibling::mim:input-method[1]/comment()"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="following-sibling::mim:input-method[1]/mim:description"/>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text> @endverbatim\r</xsl:text>
</li>
</xsl:when>