Suggestions |
---|
Search:
|
Next:
menuchoice |
Previous:
glossterm Up: Inline Elements inline.mod.xsl |
<xsl:template match="keycombo"> <xsl:variable name="action" select="@action"/> <xsl:variable name="joinchar"> <xsl:choose> <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when> <xsl:when test="$action='simul'">+</xsl:when> <xsl:when test="$action='press'">--</xsl:when> <xsl:when test="$action='click'">--</xsl:when> <xsl:when test="$action='double-click'">--</xsl:when> <xsl:when test="$action='other'"/> <xsl:otherwise>--</xsl:otherwise> </xsl:choose> </xsl:variable> ... </xsl:template>
Templates are applied for all children, with comjugation characters based upon the action attribute.
For “seq” actions, a space character is used. For “simul” actions, a plus sign (+) is used. For “other” actions, no conjugation character is used (children will be abutting). For all other actions, an en-dash is used.