- Made more consistent use of xsl:text.
1 parent d4c0f40 commit 637ed56daba0917895c3713ea3b8ce2422b6d605
nstanger authored on 22 Feb 2012
Showing 1 changed file
View
12
modules/menus.xml
<!-- Menu item separator (either ▹ or →). -->
<template name="menu-separator" match="menu-separator|menusep|menu/separator">
<common formats="/latex/xelatex/"> \ensuremath{\triangleright} </common>
<common formats="/latex/xelatex/"><xsl:text> \ensuremath{\triangleright} </xsl:text></common>
<!-- Need spaces for HTML as they seem to get munched otherwise. -->
<!-- Note: no equivalent of \triangleright in HTML, use right arrow instead. -->
<html><xsl:text disable-output-escaping="yes"> &amp;rarr; </xsl:text></html>
<!-- U+25B9 WHITE RIGHT-POINTING SMALL TRIANGLE -->
<!-- Individual menu items. -->
<template name="menu-item" match="menu/item">
<common formats="/latex/xelatex/">\textbf{<xsl:apply-templates />}</common>
<common formats="/latex/xelatex/">
<xsl:text>\textbf{</xsl:text>
<xsl:apply-templates />
<xsl:text>}</xsl:text>
</common>
<common formats="/html/xhtml/"><b><xsl:apply-templates /></b></common>
</template>
</stylesheet>