| 1 |
<?xml version='1.0' encoding="UTF-8"?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
xmlns:m="http://www.w3.org/1998/Math/MathML" |
| 4 |
version='1.0'> |
| 5 |
|
| 6 |
<xsl:output method="text" indent="no" encoding="UTF-8"/> |
| 7 |
|
| 8 |
<!-- ====================================================================== --> |
| 9 |
<!-- $Id |
| 10 |
This file is part of the XSLT MathML Library distribution. |
| 11 |
See ./README or http://www.raleigh.ru/MathML/mmltex for |
| 12 |
copyright and other information --> |
| 13 |
<!-- ====================================================================== --> |
| 14 |
|
| 15 |
<xsl:include href="tokens.xsl"/> |
| 16 |
<xsl:include href="glayout.xsl"/> |
| 17 |
<xsl:include href="scripts.xsl"/> |
| 18 |
<xsl:include href="tables.xsl"/> |
| 19 |
<xsl:include href="entities.xsl"/> |
| 20 |
<xsl:include href="cmarkup.xsl"/> |
| 21 |
|
| 22 |
<xsl:strip-space elements="m:*"/> |
| 23 |
|
| 24 |
<xsl:template match="m:math[not(@mode) or @mode='inline'][not(@display)] | m:math[@display='inline']"> |
| 25 |
<xsl:text>$ </xsl:text> |
| 26 |
<xsl:apply-templates/> |
| 27 |
<xsl:text>$</xsl:text> |
| 28 |
</xsl:template> |
| 29 |
|
| 30 |
<xsl:template match="m:math[@display='block'] | m:math[@mode='display'][not(@display)]"> |
| 31 |
<xsl:text>
\[
	</xsl:text> |
| 32 |
<xsl:apply-templates/> |
| 33 |
<xsl:text>
\]</xsl:text> |
| 34 |
</xsl:template> |
| 35 |
|
| 36 |
</xsl:stylesheet> |