summaryrefslogtreecommitdiff
path: root/fo/math.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'fo/math.xsl')
-rw-r--r--fo/math.xsl69
1 files changed, 8 insertions, 61 deletions
diff --git a/fo/math.xsl b/fo/math.xsl
index c0c70b5..e25edf2 100644
--- a/fo/math.xsl
+++ b/fo/math.xsl
@@ -6,7 +6,7 @@
version='1.0'>
<!-- ********************************************************************
- $Id: math.xsl 9375 2012-05-24 16:33:32Z bobstayton $
+ $Id: math.xsl 9647 2012-10-26 17:42:03Z bobstayton $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -16,18 +16,7 @@
******************************************************************** -->
<xsl:template match="inlineequation">
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:apply-templates select="alt[@role='tex'] | inlinemediaobject/textobject[@role='tex']">
- <xsl:with-param name="output.delims">
- <xsl:call-template name="tex.math.output.delims"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="alt">
@@ -42,24 +31,12 @@
<!-- "Support" for MathML -->
<xsl:template match="mml:math" xmlns:mml="http://www.w3.org/1998/Math/MathML">
- <xsl:choose>
- <!-- * If user is using passivetex, we don't wrap the output in -->
- <!-- * fo:instream-foreign-object (which passivetex doesn't support). -->
- <xsl:when test="not($passivetex.extensions = 0)">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <fo:instream-foreign-object>
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </fo:instream-foreign-object>
- </xsl:otherwise>
- </xsl:choose>
+ <fo:instream-foreign-object>
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </fo:instream-foreign-object>
</xsl:template>
<xsl:template match="mml:*" xmlns:mml="http://www.w3.org/1998/Math/MathML">
@@ -80,17 +57,6 @@
<xsl:template match="inlineequation/alt[@role='tex'] |
inlineequation/inlinemediaobject/textobject[@role='tex']" priority="1">
<xsl:param name="output.delims" select="1"/>
- <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:processing-instruction name="xmltex">
- <xsl:if test="$output.delims != 0">
- <xsl:text>$</xsl:text>
- </xsl:if>
- <xsl:value-of select="."/>
- <xsl:if test="$output.delims != 0">
- <xsl:text>$</xsl:text>
- </xsl:if>
- </xsl:processing-instruction>
- </xsl:if>
</xsl:template>
<xsl:template match="equation/alt[@role='tex'] | informalequation/alt[@role='tex'] |
@@ -99,25 +65,6 @@
<xsl:variable name="output.delims">
<xsl:call-template name="tex.math.output.delims"/>
</xsl:variable>
- <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:processing-instruction name="xmltex">
- <xsl:if test="$output.delims != 0">
- <xsl:text>$$</xsl:text>
- </xsl:if>
- <xsl:value-of select="."/>
- <xsl:if test="$output.delims != 0">
- <xsl:text>$$</xsl:text>
- </xsl:if>
- </xsl:processing-instruction>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="alt[@role='tex']">
- <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:message>
- Your equation is misplaced. It should be in inlineequation, equation or informalequation.
- </xsl:message>
- </xsl:if>
</xsl:template>
<xsl:template name="tex.math.output.delims">