- Made more consistent use of xsl:text.
1 parent 637ed56 commit 00efef2c928d07f18de8117b05846d2580d054b5
nstanger authored on 22 Feb 2012
Showing 2 changed files
View
26
modules/mathematical-symbols.xml
<!-- Addition binary operation symbol (+). -->
 
<template name="plus-operator" match="plus|plus-sign">
<!-- U+002B PLUS SIGN -->
<common>+</common>
</template>
<common><xsl:text>+</xsl:text></common>
</template>
 
<!-- Multiplication binary operation symbol (×). -->
 
<!-- Subtraction binary operation symbol (−). -->
 
<template name="minus-operator" match="minus|subtract|minus-sign">
<common formats="/latex/xelatex/">\ensuremath{-}</common>
<common formats="/latex/xelatex/"><xsl:text>\ensuremath{-}</xsl:text></common>
<html><xsl:text disable-output-escaping="yes">&amp;minus;</xsl:text></html>
<!-- U+2212 MINUS SIGN -->
<xhtml><span class="unicode"><xsl:text></xsl:text></span></xhtml>
</template>
<!-- Division binary operation symbol (∕). -->
 
<template name="divide-operator" match="divide|division|division-slash">
<common formats="/latex/xelatex/">\ensuremath{/}</common>
<common formats="/latex/xelatex/"><xsl:text>\ensuremath{/}</xsl:text></common>
<html><xsl:text>/</xsl:text></html>
<!-- U+2215 DIVISION SLASH -->
<xhtml><span class="unicode"><xsl:text></xsl:text></span></xhtml>
</template>
<!-- Equality relation symbol (=). -->
 
<template name="equals-operator" match="equals|eq|equals-sign|equality">
<common formats="/latex/xelatex/">\ensuremath{=}</common>
<common formats="/latex/xelatex/"><xsl:text>\ensuremath{=}</xsl:text></common>
<!-- U+003D EQUALS SIGN -->
<common formats="/html/xhtml/"><xsl:text> = </xsl:text></common>
</template>
 
 
<!-- Greater than relation symbol (>). -->
 
<template name="greater-than-operator" match="greater-than|gt|greater-than-sign">
<common formats="/latex/xelatex/">\ensuremath{&gt;}</common>
<common formats="/latex/xelatex/"><xsl:text>\ensuremath{&gt;}</xsl:text></common>
<!-- U+003E GREATER-THAN SIGN -->
<common formats="/html/xhtml/"><xsl:text disable-output-escaping="yes"> &amp;gt; </xsl:text></common>
</template>
 
<!-- Less than relation symbol (<). -->
 
<template name="less-than-operator" match="less-than|lt|less-than-sign">
<common formats="/latex/xelatex/"> \ensuremath{&lt;} </common>
<common formats="/latex/xelatex/"><xsl:text> \ensuremath{&lt;} </xsl:text></common>
<!-- U+003C LESS-THAN SIGN -->
<common formats="/html/xhtml/"><xsl:text disable-output-escaping="yes"> &amp;lt; </xsl:text></common>
</template>
 
<!-- Less than or equal to relation symbol (≤). -->
 
<template name="less-equals-operator" match="less-equals|le|less-than-or-equal-to">
<common formats="/latex/xelatex/"> \ensuremath{\leq} </common>
<common formats="/latex/xelatex/"><xsl:text> \ensuremath{\leq} </xsl:text></common>
<html><xsl:text disable-output-escaping="yes"> &amp;le; </xsl:text></html>
<!-- U+2264 LESS-THAN OR EQUAL TO -->
<xhtml><xsl:text></xsl:text></xhtml>
</template>
 
<!-- Not-element-of relation symbol (∉). -->
 
<template name="not-element-sign" match="not-element-sign|not-element|not-element-of|is-not-element-of|is-not-an-element-of|not-an-element-of">
<common formats="/latex/xelatex/">\ensuremath{\not\in}</common>
<common formats="/latex/xelatex/"><xsl:text>\ensuremath{\not\in}</xsl:text></common>
<html><xsl:text disable-output-escaping="yes">&amp;notin;</xsl:text></html>
<!-- U+2209 NOT AN ELEMENT OF -->
<xhtml><span class="unicode"><xsl:text></xsl:text></span></xhtml>
</template>
<template name="right-arrow" match="right-arrow|rightarrow|implies|rarr|rarrow|rightwards-arrow">
<common formats="/latex/xelatex/">
<xsl:text>\ensuremath{\</xsl:text>
<xsl:choose>
<xsl:when test="@weight='double'">R</xsl:when>
<xsl:otherwise>r</xsl:otherwise>
<xsl:when test="@weight='double'"><xsl:text>R</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>r</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:text>ightarrow}</xsl:text>
</common>
<html>
<template name="left-arrow" match="left-arrow|leftarrow|larr|larrow|leftwards-arrow">
<common formats="/latex/xelatex/">
<xsl:text>\ensuremath{\</xsl:text>
<xsl:choose>
<xsl:when test="@weight='double'">L</xsl:when>
<xsl:otherwise>l</xsl:otherwise>
<xsl:when test="@weight='double'"><xsl:text>L</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>l</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:text>eftarrow}</xsl:text>
</common>
<html>
View
28
modules/quotations.xml
'yes' => single quotes ('').
otherwise => double quotes (""). [default]
-->
<template name="single-quote" match="quote[@single='yes']|q[@single='yes']">
<common formats="/latex/xelatex/">`<xsl:apply-templates />'</common>
<common formats="/latex/xelatex/">
<xsl:text>`</xsl:text>
<xsl:apply-templates />
<xsl:text>'</xsl:text>
</common>
<html>
<xsl:text disable-output-escaping="yes">&amp;lsquo;</xsl:text>
<xsl:apply-templates />
<xsl:text disable-output-escaping="yes">&amp;rsquo;</xsl:text>
<!-- U+2019 RIGHT SINGLE QUOTATION MARK -->
<xsl:text></xsl:text>
</xhtml>
</template>
<template name="double-quote" match="quote|qq">
<common formats="/latex/xelatex/">``<xsl:apply-templates />''</common>
<common formats="/latex/xelatex/">
<xsl:text>``</xsl:text>
<xsl:apply-templates />
<xsl:text>''</xsl:text>
</common>
<html>
<xsl:text disable-output-escaping="yes">&amp;ldquo;</xsl:text>
<xsl:apply-templates />
<xsl:text disable-output-escaping="yes">&amp;rdquo;</xsl:text>
<xsl:text></xsl:text>
</xhtml>
</template>
<!--
With nested quotes, we need to figure out what depth of nesting
we're at, then call the appropriate template depending on
the initial quoting style (single or double).
With nested quotes, we need to figure out what depth of nesting we're at, then call the appropriate template depending on the initial quoting style (single or double).
-->
<template name="nested-double-quote" match="quote//quote">
<common>
<xsl:choose>