diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
commit | 15c7d39533a1eb1da0748011f3378fd0f02ed14d (patch) | |
tree | a7ed12df60c5ffd4d00a570804c51470bfb8b0f5 /stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl | |
parent | 09a35dd7178070f01a7961d2ded39e11ba2aac83 (diff) |
Update stylesheets to docbook-xsl-1.78.1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl deleted file mode 100644 index 77ec2d5ec..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl +++ /dev/null @@ -1,128 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:mml="http://www.w3.org/1998/Math/MathML" - exclude-result-prefixes="mml" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://docbook.sf.net/release/xsl/current/ for - copyright and other information. - - ******************************************************************** --> - -<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:template> - -<xsl:template match="alt"> -</xsl:template> - -<xsl:template match="mathphrase"> - <fo:inline> - <xsl:apply-templates/> - </fo:inline> -</xsl:template> - -<!-- "Support" for MathML --> - -<xsl:template match="mml:math" xmlns:mml="http://www.w3.org/1998/Math/MathML"> - <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"> - <xsl:copy> - <xsl:copy-of select="@*"/> - <xsl:apply-templates/> - </xsl:copy> -</xsl:template> - -<xsl:template match="equation/graphic | informalequation/graphic"> - <xsl:if test="$passivetex.extensions = 0 or $tex.math.in.alt = ''"> - <fo:block> - <xsl:call-template name="process.image"/> - </fo:block> - </xsl:if> -</xsl:template> - -<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'] | - equation/mediaobject/textobject[@role='tex'] | - informalequation/mediaobject/textobject[@role='tex']" priority="1"> - <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"> - <xsl:variable name="pi.delims"> - <xsl:call-template name="pi-attribute"> - <xsl:with-param name="pis" select=".//processing-instruction('dbtex')"/> - <xsl:with-param name="attribute" select="'delims'"/> - </xsl:call-template> - </xsl:variable> - <xsl:variable name="result"> - <xsl:choose> - <xsl:when test="$pi.delims = 'no'">0</xsl:when> - <xsl:when test="$pi.delims = '' and $tex.math.delims = 0">0</xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:value-of select="$result"/> -</xsl:template> - -</xsl:stylesheet> |