d/dx や ∂/∂x 等を表示する
<dd var="x" func="y"/> <pdd var="x" func="y/>
<dd var="s"/>f
=
<pdd var="x" func="f"/><d/>x
+
<pdd var="y" func="f"/><d/>y
+
<pdd var="y" func="f"/><d/>x
<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>
table.frac
{
display:inline;
vertical-align:middle;
font-style:italic;
font-size:90%;
text-align:center;
}
td.num
{
border-bottom:#000000 1pt solid;
}
span.normal
{
font-weight:normal;
font-style:normal;
}