﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
	version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:ufcpp="http://ufcpp.net/study/document">

<!-- 数式環境 -->
<xsl:template match="ufcpp:Math">
<xsl:variable name="css" select="mathstyle" />
<div class="math"><xsl:apply-templates/></div>
</xsl:template>

<xsl:template match="ufcpp:math">
<span class="math"><xsl:apply-templates/></span>
</xsl:template>
<xsl:template match="ufcpp:sup0"><sup><span class="normal">0</span></sup></xsl:template><xsl:template match="ufcpp:sup1"><sup><span class="normal">1</span></sup></xsl:template><xsl:template match="ufcpp:sup2"><sup><span class="normal">2</span></sup></xsl:template><xsl:template match="ufcpp:sup2"><sup><span class="normal">2</span></sup></xsl:template><xsl:template match="ufcpp:sup3"><sup><span class="normal">3</span></sup></xsl:template><xsl:template match="ufcpp:sup4"><sup><span class="normal">4</span></sup></xsl:template><xsl:template match="ufcpp:sup5"><sup><span class="normal">5</span></sup></xsl:template><xsl:template match="ufcpp:sup6"><sup><span class="normal">6</span></sup></xsl:template><xsl:template match="ufcpp:sup7"><sup><span class="normal">7</span></sup></xsl:template><xsl:template match="ufcpp:sup8"><sup><span class="normal">8</span></sup></xsl:template><xsl:template match="ufcpp:sup9"><sup><span class="normal">9</span></sup></xsl:template><xsl:template match="ufcpp:sup10"><sup><span class="normal">10</span></sup></xsl:template><xsl:template match="ufcpp:sub0"><sub><span class="normal">0</span></sub></xsl:template><xsl:template match="ufcpp:sub1"><sub><span class="normal">1</span></sub></xsl:template><xsl:template match="ufcpp:sub2"><sub><span class="normal">2</span></sub></xsl:template><xsl:template match="ufcpp:sub2"><sub><span class="normal">2</span></sub></xsl:template><xsl:template match="ufcpp:sub3"><sub><span class="normal">3</span></sub></xsl:template><xsl:template match="ufcpp:sub4"><sub><span class="normal">4</span></sub></xsl:template><xsl:template match="ufcpp:sub5"><sub><span class="normal">5</span></sub></xsl:template><xsl:template match="ufcpp:sub6"><sub><span class="normal">6</span></sub></xsl:template><xsl:template match="ufcpp:sub7"><sub><span class="normal">7</span></sub></xsl:template><xsl:template match="ufcpp:sub8"><sub><span class="normal">8</span></sub></xsl:template><xsl:template match="ufcpp:sub9"><sub><span class="normal">9</span></sub></xsl:template><xsl:template match="ufcpp:sub10"><sub><span class="normal">10</span></sub></xsl:template><xsl:template match="ufcpp:supinv"><sup><span class="normal">&#8722;1</span></sup></xsl:template>
<xsl:template match="ufcpp:subsup/ufcpp:sub|ufcpp:subsup/ufcpp:sup"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:sin"><span class="normal">sin</span></xsl:template>
<xsl:template match="ufcpp:textrot"><span class="normal">rot</span></xsl:template>
<xsl:template match="ufcpp:frac/ufcpp:num"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:tan"><span class="normal">tan</span></xsl:template>
<xsl:template match="ufcpp:dl"><span class="normal">d</span><span class="vector">l</span></xsl:template>
<xsl:template match="ufcpp:abs"><span class="normal">|</span><xsl:apply-templates/><span class="normal">|</span></xsl:template>
<xsl:template match="ufcpp:vervec"><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><table class="matrix" summary="vector"><xsl:apply-templates select="ufcpp:elem"/></table><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size" />em;</xsl:attribute>]</span></xsl:template>
<xsl:template match="ufcpp:funcsub"><table class="sigma" summary="statement under a function"><tr><td><span class="normal"><xsl:value-of select="@name"/></span></td></tr><tr><td class="sigmasub"><xsl:apply-templates/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:cite">　　　<span class="normal">・・・(<xsl:number level="any" count="cite" format="1"/>)</span></xsl:template>
<xsl:template match="ufcpp:Sigma"><table class="sigma" summary="sum"><tr><td class="sigmasub"><xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td class="sigma">&#8721;</td></tr><tr><td class="sigmasub"><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:Pi"><table class="sigma" summary="product"><tr><td class="sigmasub"><xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td class="sigma">&#8719;</td></tr><tr><td class="sigmasub"><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:dS"><span class="normal">d</span><span class="vector">S</span></xsl:template>
<xsl:template match="ufcpp:Im"><span class="script">Im</span></xsl:template>
<xsl:template match="ufcpp:divergence"><span class="vector">∇</span>・</xsl:template>
<xsl:template match="ufcpp:tripleint"><span class="integral">∫<span style="margin-left:-0.5em;">∫</span><span style="margin-left:-0.5em;">∫</span></span><table class="integral" summary="integral"><tr><td class="intsup">&#xA0;&#xA0;<xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td style="font-size:30%;">&#xA0;</td></tr><tr><td class="intsub"><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:vec"><span class="vector"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="ufcpp:subsup"><table class="subsup" summary="sub / sup"><tr><td><xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td style="font-size:30%;">&#xA0;</td></tr><tr><td><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:func"><span class="normal"><xsl:value-of select="@name"/></span></xsl:template>
<xsl:template match="ufcpp:sqbracket"><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>]</span></xsl:template>
<xsl:template match="ufcpp:dd"><table class="frac" summary="differential"><tr><td class="num"><span class="normal">d</span><xsl:value-of select="@func"/></td></tr><tr><td><span class="normal">d</span><xsl:choose><xsl:when test="@var != ''"><xsl:value-of select="@var"/></xsl:when><xsl:otherwise><xsl:apply-templates/></xsl:otherwise></xsl:choose></td></tr></table></xsl:template><xsl:template match="ufcpp:pdd"><table class="frac" summary="differential"><tr><td class="num">��<xsl:value-of select="@func"/></td></tr><tr><td>��<xsl:choose><xsl:when test="@var != ''"><xsl:value-of select="@var"/></xsl:when><xsl:otherwise><xsl:apply-templates/></xsl:otherwise></xsl:choose></td></tr></table></xsl:template>
<xsl:template match="ufcpp:int"><span class="integral">∫</span><table class="integral" summary="integral"><tr><td class="intsup">&#xA0;<xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td style="font-size:30%;">&#xA0;</td></tr><tr><td class="intsub"><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:textdiv"><span class="normal">div</span></xsl:template>
<xsl:template match="ufcpp:matrix/ufcpp:row|ufcpp:array/ufcpp:row"><tr><xsl:apply-templates select="ufcpp:elem"/></tr></xsl:template>
<xsl:template match="ufcpp:inv"><table class="frac" summary="fraction"><tr><td class="num"><span class="normal">1</span></td></tr><tr><td><xsl:choose><xsl:when test="@var != ''"><xsl:value-of select="@var"/></xsl:when><xsl:when test="@v != ''"><xsl:value-of select="@v"/></xsl:when><xsl:otherwise><xsl:apply-templates/></xsl:otherwise></xsl:choose></td></tr></table></xsl:template><xsl:template match="ufcpp:inv2"><table class="frac" summary="fraction"><tr><td class="num"><span class="normal">1</span></td></tr><tr><td><span class="normal">2</span></td></tr></table></xsl:template>
<xsl:template match="ufcpp:lim"><table class="sigma" summary="limitation"><tr><td><span class="normal">lim</span></td></tr><tr><td class="sigmasub"><xsl:apply-templates/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:textgrad"><span class="normal">grad</span></xsl:template>
<xsl:template match="ufcpp:pddt"><table class="frac" summary="differential"><tr><td class="num">∂<xsl:choose><xsl:when test="@var != ''"><xsl:value-of select="@var"/></xsl:when><xsl:when test="@v != ''"><xsl:value-of select="@v"/></xsl:when><xsl:otherwise><xsl:apply-templates/></xsl:otherwise></xsl:choose></td></tr><tr><td>∂t</td></tr></table></xsl:template><xsl:template match="ufcpp:math//ufcpp:pdd|ufcpp:Math//ufcpp:pdd"><table class="frac" summary="differential"><tr><td class="num">∂<xsl:choose><xsl:when test="@num != ''"><xsl:value-of select="@num"/></xsl:when><xsl:when test="@n != ''"><xsl:value-of select="@n"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:num"/></xsl:otherwise></xsl:choose></td></tr><tr><td>∂<xsl:choose><xsl:when test="@denom != ''"><xsl:value-of select="@denom"/></xsl:when><xsl:when test="@d != ''"><xsl:value-of select="@d"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:denom"/></xsl:otherwise></xsl:choose></td></tr></table></xsl:template>
<xsl:template match="ufcpp:Laplace"><span class="normal">&#x2112;</span><xsl:if test="@inv!=''"><sup>�|1</sup></xsl:if><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>]</span></xsl:template>
<xsl:template match="ufcpp:gradient"><span class="vector">∇</span></xsl:template>
<xsl:template match="ufcpp:math//ufcpp:bracket|ufcpp:math//ufcpp:bra|ufcpp:Math//ufcpp:bracket|ufcpp:Math//ufcpp:bra"><xsl:variable name="t"><xsl:choose><xsl:when test="@type != ''"><xsl:value-of select="@type"/></xsl:when><xsl:otherwise><xsl:value-of select="@t"/></xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="l"> <xsl:choose>  <xsl:when test="$t = 'p'">(</xsl:when>  <xsl:when test="$t = 'paren'">(</xsl:when>  <xsl:when test="$t = 'r'">(</xsl:when>  <xsl:when test="$t = 'round'">(</xsl:when>  <xsl:when test="$t = 'c'">{</xsl:when>  <xsl:when test="$t = 'curl'">{</xsl:when>  <xsl:when test="$t = 'b'">{</xsl:when>  <xsl:when test="$t = 'brace'">{</xsl:when>  <xsl:when test="$t = 'angle'">&#9001;</xsl:when>  <xsl:when test="$t = 'square'">[</xsl:when>  <xsl:when test="$t = 'sq'">[</xsl:when>  <xsl:when test="$t = 'abs'">|</xsl:when>  <xsl:when test="$t = 'norm'">||</xsl:when>  <xsl:when test="$t = 'ceil'">&#8968;</xsl:when>  <xsl:when test="$t = 'floor'">&#8970;</xsl:when>  <xsl:otherwise>&#9001;</xsl:otherwise> </xsl:choose></xsl:variable><xsl:variable name="r"> <xsl:choose>  <xsl:when test="$t = 'p'">)</xsl:when>  <xsl:when test="$t = 'paren'">)</xsl:when>  <xsl:when test="$t = 'r'">)</xsl:when>  <xsl:when test="$t = 'round'">)</xsl:when>  <xsl:when test="$t = 'c'">}</xsl:when>  <xsl:when test="$t = 'curl'">}</xsl:when>  <xsl:when test="$t = 'b'">}</xsl:when>  <xsl:when test="$t = 'brace'">}</xsl:when>  <xsl:when test="$t = 'angle'">&#9002;</xsl:when>  <xsl:when test="$t = 'square'">]</xsl:when>  <xsl:when test="$t = 'sq'">]</xsl:when>  <xsl:when test="$t = 'abs'">|</xsl:when>  <xsl:when test="$t = 'norm'">||</xsl:when>  <xsl:when test="$t = 'ceil'">&#8969;</xsl:when>  <xsl:when test="$t = 'floor'">&#8971;</xsl:when>  <xsl:otherwise>&#9002;</xsl:otherwise> </xsl:choose></xsl:variable><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute><xsl:value-of select="$l"/></span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute><xsl:value-of select="$r"/></span></xsl:template>
<xsl:template match="ufcpp:aleph">&#x202D;&#x05D0;<xsl:if test="@sub!=''"><sub><xsl:value-of select="@sub"/></sub></xsl:if></xsl:template>
<xsl:template match="ufcpp:branch/ufcpp:case/ufcpp:cond"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:frac"><table class="frac" summary="fraction"><tr><td class="num"><xsl:choose><xsl:when test="@num != ''"><xsl:value-of select="@num"/></xsl:when><xsl:when test="@n != ''"><xsl:value-of select="@n"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:num"/></xsl:otherwise></xsl:choose></td></tr><tr><td><xsl:choose><xsl:when test="@denom != ''"><xsl:value-of select="@denom"/></xsl:when><xsl:when test="@d != ''"><xsl:value-of select="@d"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:denom"/></xsl:otherwise></xsl:choose></td></tr></table></xsl:template>
<xsl:template match="ufcpp:math//ufcpp:n|ufcpp:math//ufcpp:number|ufcpp:Math//ufcpp:n|ufcpp:Math//ufcpp:number"><span class="normal"><xsl:value-of select="text()"/></span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n0|ufcpp:Math//ufcpp:n0"><span class="normal">0</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n1|ufcpp:Math//ufcpp:n1"><span class="normal">1</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n2|ufcpp:Math//ufcpp:n2"><span class="normal">2</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n3|ufcpp:Math//ufcpp:n3"><span class="normal">3</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n4|ufcpp:Math//ufcpp:n4"><span class="normal">4</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n5|ufcpp:Math//ufcpp:n5"><span class="normal">5</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n6|ufcpp:Math//ufcpp:n6"><span class="normal">6</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n7|ufcpp:Math//ufcpp:n7"><span class="normal">7</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n8|ufcpp:Math//ufcpp:n8"><span class="normal">8</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n9|ufcpp:Math//ufcpp:n9"><span class="normal">9</span></xsl:template><xsl:template match="ufcpp:math//ufcpp:n10|ufcpp:Math//ufcpp:n10"><span class="normal">10</span></xsl:template>
<xsl:template match="ufcpp:Fourier"><span class="normal">&#x2131;</span><xsl:if test="@inv!=''"><sup>�|1</sup></xsl:if><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>]</span></xsl:template>
<xsl:template match="ufcpp:frac/ufcpp:denom"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:vervec/ufcpp:elem"><tr><td><xsl:apply-templates/></td></tr></xsl:template>
<xsl:template match="ufcpp:matrix"><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><table class="matrix" summary="matrix"><xsl:apply-templates select="ufcpp:row"/></table><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size" />em;</xsl:attribute>]</span></xsl:template><xsl:template match="ufcpp:array"><table class="matrix" summary="array"><xsl:apply-templates select="ufcpp:row"/></table></xsl:template>
<xsl:template match="ufcpp:rotation"><span class="vector">∇</span>×</xsl:template>
<xsl:template match="ufcpp:d"><span class="normal">d</span></xsl:template>
<xsl:template match="ufcpp:e"><span class="normal">e</span></xsl:template>
<xsl:template match="ufcpp:pddt_second"><table class="frac" summary="differential"><tr><td class="num">∂<sup>2</sup></td></tr><tr><td>∂t<sup>2</sup></td></tr></table></xsl:template>
<xsl:template match="ufcpp:ddt"><table class="frac" summary="differential"><tr><td class="num"><span class="normal">d</span><xsl:choose><xsl:when test="@var != ''"><xsl:value-of select="@var"/></xsl:when><xsl:when test="@v != ''"><xsl:value-of select="@v"/></xsl:when><xsl:otherwise><xsl:apply-templates/></xsl:otherwise></xsl:choose></td></tr><tr><td><span class="normal">d</span>t</td></tr></table></xsl:template><xsl:template match="ufcpp:math//ufcpp:dd|ufcpp:Math//ufcpp:dd"><table class="frac" summary="differential"><tr><td class="num"><span class="normal">d</span><xsl:choose><xsl:when test="@num != ''"><xsl:value-of select="@num"/></xsl:when><xsl:when test="@n != ''"><xsl:value-of select="@n"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:num"/></xsl:otherwise></xsl:choose></td></tr><tr><td><span class="normal">d</span><xsl:choose><xsl:when test="@denom != ''"><xsl:value-of select="@denom"/></xsl:when><xsl:when test="@d != ''"><xsl:value-of select="@d"/></xsl:when><xsl:otherwise><xsl:apply-templates select="ufcpp:denom"/></xsl:otherwise></xsl:choose></td></tr></table></xsl:template>
<xsl:template match="ufcpp:dV"><span class="normal">d</span>V</xsl:template>
<xsl:template match="ufcpp:oint/ufcpp:sub|ufcpp:int/ufcpp:sub|ufcpp:doubleint/ufcpp:sub|ufcpp:tripleint/ufcpp:sub"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:sqrt"><span class="normal"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>√</span><span class="bar"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="ufcpp:cos"><span class="normal">cos</span></xsl:template>
<xsl:template match="ufcpp:math//ufcpp:symbol|ufcpp:math//ufcpp:sym|ufcpp:Math//ufcpp:symbol|ufcpp:Math//ufcpp:sym"><xsl:variable name="n"><xsl:choose><xsl:when test="@name != ''"><xsl:value-of select="@name"/></xsl:when><xsl:otherwise><xsl:value-of select="@n"/></xsl:otherwise></xsl:choose></xsl:variable><span class="normal"><xsl:choose> <xsl:when test="$n = 'forall'">&#8704;</xsl:when> <xsl:when test="$n = 'exist'">&#8707;</xsl:when> <xsl:when test="$n = 'partial'">&#8706;</xsl:when> <xsl:when test="$n = 'part'">&#8706;</xsl:when> <xsl:when test="$n = 'nabla'">&#8711;</xsl:when> <xsl:when test="$n = 'infinity'">&#8734;</xsl:when> <xsl:when test="$n = 'infty'">&#8734;</xsl:when> <xsl:when test="$n = 'infin'">&#8734;</xsl:when> <xsl:when test="$n = 'ang'">&#8736;</xsl:when> <xsl:when test="$n = 'therefore'">&#8756;</xsl:when> <xsl:when test="$n = 'because'">&#8757;</xsl:when> <xsl:when test="$n = 'empty'">&#8709;</xsl:when> <xsl:when test="$n = 'weierp'">&#8472;</xsl:when> <xsl:when test="$n = 'image'">&#8465;</xsl:when> <xsl:when test="$n = 'real'">&#8476;</xsl:when> <xsl:when test="$n = 'alef'">&#8501;</xsl:when> <xsl:when test="$n = 'planck'">&#x210F;</xsl:when>  <xsl:when test="$n = 'dots'">&#x22EF;</xsl:when> <xsl:when test="$n = 'vdots'">&#x22EE;</xsl:when> <xsl:when test="$n = 'updots'">&#x22F0;</xsl:when> <xsl:when test="$n = 'downdots'">&#x22F1;</xsl:when>  <xsl:when test="$n = 'vbeta'">&#976;</xsl:when> <xsl:when test="$n = 'vepsilon'">&#8714;</xsl:when> <xsl:when test="$n = 'vtheta'">&#977;</xsl:when> <xsl:when test="$n = 'vkappa'">&#1008;</xsl:when> <xsl:when test="$n = 'vpi'">&#982;</xsl:when> <xsl:when test="$n = 'vrho'">&#1009;</xsl:when> <xsl:when test="$n = 'vsigma'">&#962;</xsl:when> <xsl:when test="$n = 'vphi'">&#981;</xsl:when> <xsl:otherwise>  <xsl:value-of select="text()"/> </xsl:otherwise></xsl:choose></span></xsl:template>
<xsl:template match="ufcpp:text"><span class="normal"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="ufcpp:math//ufcpp:f|ufcpp:math//ufcpp:func|ufcpp:Math//ufcpp:f|ufcpp:Math//ufcpp:func"><xsl:variable name="n"><xsl:choose><xsl:when test="@name != ''"><xsl:value-of select="@name"/></xsl:when><xsl:when test="@n != ''"><xsl:value-of select="@n"/></xsl:when><xsl:otherwise><xsl:value-of select="text()"/></xsl:otherwise></xsl:choose></xsl:variable><span class="normal"><xsl:value-of select="$n"/></span></xsl:template>
<xsl:template match="ufcpp:branch"><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>{</span><table class="branch" summary="conditional"><xsl:for-each select="ufcpp:case"><tr><td><span class="math"><xsl:apply-templates select="ufcpp:equ"/></span>&#xA0;&#xA0;</td><td><span class="paren">(</span><span class="math"><xsl:apply-templates select="ufcpp:cond"/></span><span class="paren">)</span></td></tr></xsl:for-each></table></xsl:template>
<xsl:template match="ufcpp:branch/ufcpp:case/ufcpp:equ"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:bold"><span class="bold"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="ufcpp:matrix/ufcpp:row/ufcpp:elem|ufcpp:array/ufcpp:row/ufcpp:elem"><td><xsl:apply-templates/></td></xsl:template>
<xsl:template match="ufcpp:bar"><span class="bar"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="ufcpp:conjugate"><xsl:apply-templates/><sup>*</sup></xsl:template>
<xsl:template match="ufcpp:oint"><span class="ointegral">∮</span><table class="integral" summary="integral"><tr><td class="intsup">&#xA0;<xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td style="font-size:30%;">&#xA0;</td></tr><tr><td class="intsub"><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:oint/ufcpp:sup|ufcpp:int/ufcpp:sup|ufcpp:doubleint/ufcpp:sup|ufcpp:tripleint/ufcpp:sup"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:Res"><span class="normal">Res</span><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>]</span></xsl:template>
<xsl:template match="ufcpp:brace"><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>{</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>}</span></xsl:template>
<xsl:template match="ufcpp:Z"><span class="script">Z</span><xsl:if test="@inv!=''"><sup>�|1</sup></xsl:if><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>[</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>]</span></xsl:template>
<xsl:template match="ufcpp:paren"><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>(</span><xsl:apply-templates/><span class="paren"><xsl:attribute name="style">font-size:<xsl:value-of select="@size"/>em;</xsl:attribute>)</span></xsl:template>
<xsl:template match="ufcpp:factorial"><span class="normal">!</span></xsl:template>
<xsl:template match="ufcpp:math//ufcpp:o|ufcpp:math//ufcpp:operator|ufcpp:Math//ufcpp:o|ufcpp:Math//ufcpp:operator"><xsl:variable name="n"><xsl:choose><xsl:when test="@name != ''"><xsl:value-of select="@name"/></xsl:when><xsl:otherwise><xsl:value-of select="@n"/></xsl:otherwise></xsl:choose></xsl:variable><span class="normal"><xsl:choose> <xsl:when test="$n = 'in'">&#8712;</xsl:when> <xsl:when test="$n = 'nin'">&#8713;</xsl:when> <xsl:when test="$n = 'ni'">&#8715;</xsl:when> <xsl:when test="$n = 'nni'">&#8716;</xsl:when> <xsl:when test="$n = 'wedge'">&#8743;</xsl:when> <xsl:when test="$n = 'vee'">&#8744;</xsl:when> <xsl:when test="$n = 'cap'">&#8745;</xsl:when> <xsl:when test="$n = 'cup'">&#8746;</xsl:when> <xsl:when test="$n = 'sub'">&#8834;</xsl:when> <xsl:when test="$n = 'sup'">&#8835;</xsl:when> <xsl:when test="$n = 'nsub'">&#8836;</xsl:when> <xsl:when test="$n = 'nsup'">&#8837;</xsl:when> <xsl:when test="$n = 'sube'">&#8838;</xsl:when> <xsl:when test="$n = 'supe'">&#8839;</xsl:when> <xsl:when test="$n = 'perp'">&#8869;</xsl:when> <xsl:when test="$n = 'para'">&#8514;</xsl:when> <xsl:when test="$n = 'eq'">=</xsl:when> <xsl:when test="$n = 'sim'">&#8764;</xsl:when> <xsl:when test="$n = 'approx'">&#8773;</xsl:when> <xsl:when test="$n = 'asymp'">&#8776;</xsl:when> <xsl:when test="$n = 'ne'">&#8800;</xsl:when> <xsl:when test="$n = 'equiv'">&#8801;</xsl:when> <xsl:when test="$n = 'prop'">&#8733;</xsl:when> <xsl:when test="$n = 'lt'">&lt;</xsl:when> <xsl:when test="$n = 'gt'">&gt;</xsl:when> <xsl:when test="$n = 'le'">&#8804;</xsl:when> <xsl:when test="$n = 'ge'">&#8805;</xsl:when> <xsl:when test="$n = 'lE'">&#8806;</xsl:when> <xsl:when test="$n = 'gE'">&#8807;</xsl:when> <xsl:when test="$n = 'lnE'">&#8808;</xsl:when> <xsl:when test="$n = 'gnE'">&#8809;</xsl:when> <xsl:when test="$n = 'Lt'">&#8810;</xsl:when> <xsl:when test="$n = 'Gt'">&#8811;</xsl:when> <xsl:when test="$n = 'p'">&#43;</xsl:when> <xsl:when test="$n = 'plus'">&#43;</xsl:when> <xsl:when test="$n = 'm'">&#8722;</xsl:when> <xsl:when test="$n = 'minus'">&#8722;</xsl:when> <xsl:when test="$n = 'times'">&#215;</xsl:when> <xsl:when test="$n = 'div'">&#247;</xsl:when> <xsl:when test="$n = 'slash'">/</xsl:when> <xsl:when test="$n = 'mp'">&#8723;</xsl:when> <xsl:when test="$n = 'pm'">&#177;</xsl:when> <xsl:when test="$n = 'oplus'">&#8853;</xsl:when> <xsl:when test="$n = 'ominus'">&#8854;</xsl:when> <xsl:when test="$n = 'otimes'">&#8855;</xsl:when> <xsl:when test="$n = 'bs'">&#8726;</xsl:when> <xsl:when test="$n = 'dot'">&#8901;</xsl:when> <xsl:when test="$n = 'cross'">&#215;</xsl:when> <xsl:when test="$n = 'wedge'">&#8743;</xsl:when> <xsl:when test="$n = 'ring'">&#8728;</xsl:when> <xsl:when test="$n = 'aster'">&#8727;</xsl:when> <xsl:when test="$n = 'star'">&#8902;</xsl:when> <xsl:when test="$n = 'not'">&#172;</xsl:when> <xsl:when test="$n = 'larr'">&#8592;</xsl:when> <xsl:when test="$n = 'uarr'">&#8593;</xsl:when> <xsl:when test="$n = 'rarr'">&#8594;</xsl:when> <xsl:when test="$n = 'darr'">&#8595;</xsl:when> <xsl:when test="$n = 'harr'">&#8596;</xsl:when> <xsl:when test="$n = 'lArr'">&#8656;</xsl:when> <xsl:when test="$n = 'uArr'">&#8657;</xsl:when> <xsl:when test="$n = 'rArr'">&#8658;</xsl:when> <xsl:when test="$n = 'dArr'">&#8659;</xsl:when> <xsl:when test="$n = 'hArr'">&#8660;</xsl:when> <xsl:when test="$n = 'prec'">&#x227A;</xsl:when> <xsl:when test="$n = 'succ'">&#x227B;</xsl:when> <xsl:when test="$n = 'cr'">&#8629;</xsl:when> <xsl:otherwise>  <xsl:value-of select="text()"/> </xsl:otherwise></xsl:choose></span></xsl:template>
<xsl:template match="ufcpp:doubleint"><span class="integral">∫<span style="margin-left:-0.5em;">∫</span></span><table class="integral" summary="integral"><tr><td class="intsup">&#xA0;&#xA0;<xsl:apply-templates select="ufcpp:sup"/></td></tr><tr><td style="font-size:30%;">&#xA0;</td></tr><tr><td class="intsub"><xsl:apply-templates select="ufcpp:sub"/></td></tr></table></xsl:template>
<xsl:template match="ufcpp:Sigma/ufcpp:sup|ufcpp:Pi/ufcpp:sup|ufcpp:Sigma/ufcpp:sub|ufcpp:Pi/ufcpp:sub"><xsl:apply-templates/></xsl:template>
<xsl:template match="ufcpp:exp"><span class="normal">exp</span></xsl:template>
<xsl:template match="ufcpp:cursive"><span class="cursive"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="ufcpp:Re"><span class="script">Re</span></xsl:template>
<xsl:template match="ufcpp:arg"><span class="normal">arg</span></xsl:template>
<xsl:template match="ufcpp:log"><span class="normal">log</span></xsl:template>
<xsl:template match="ufcpp:nabra"><span class="vector">∇</span></xsl:template>
</xsl:stylesheet>
