2) Current Proof and META rendering improved.
<xsl:template match="META" mode="pure">
<m:ci helm:xref="{@id}">
- <xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="@no"/></xsl:with-param></xsl:call-template>
+ <xsl:call-template name="insert_subscript"><xsl:with-param name="node_value">?<xsl:value-of select="@no"/></xsl:with-param></xsl:call-template>
</m:ci>
</xsl:template>
<m:mtd>
<m:mrow>
<m:mphantom><m:mtext>__</m:mtext></m:mphantom>
- <m:mtext><xsl:value-of select="./@no"/>:</m:mtext>
+ <m:msub><m:mi>?</m:mi><m:mn><xsl:value-of select="@no"/></m:mn></m:msub>
+ <m:mtext>:</m:mtext>
<xsl:apply-templates select="./*[1]"/>
</m:mrow>
</m:mtd>
<m:mtr>
<m:mtd>
<m:mrow>
- <m:mtext>CORRESPONDING PROOF:</m:mtext>
+ <m:mtext>PROOF:</m:mtext>
</m:mrow>
</m:mtd>
</m:mtr>
</m:math>
</xsl:template>
+<!-- SEQUENT -->
+
+<xsl:template match="Sequent">
+ <m:math>
+ <m:mtable align="baseline 1" equalrows="false" columnalign="left" helm:xref="{@helm:xref}">
+ <xsl:for-each select="Declaration|Definition">
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mi><xsl:value-of select="@name"/></m:mi>
+ <xsl:choose>
+ <xsl:when test="name(.) = 'Declaration'">
+ <m:mo>:</m:mo>
+ </xsl:when>
+ <xsl:otherwise>
+ <m:mo>:=</m:mo>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates select="*[1]"/>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ </xsl:for-each>
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <m:mtext>========================================</m:mtext>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ <m:mtr>
+ <m:mtd>
+ <m:mrow>
+ <xsl:apply-templates select="Goal/*[1]"/>
+ </m:mrow>
+ </m:mtd>
+ </m:mtr>
+ </m:mtable>
+ </m:math>
+</xsl:template>
+
<!--**********************-->
<!-- TERMS -->
<!--**********************-->
<!-- CIC OBJECTS -->
+<xsl:template match="Sequent"> <!-- For Sequents there are no annotations -->
+ <Sequent helm:xref="{@id}">
+ <xsl:for-each select="Declaration|Definition">
+ <xsl:copy>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:apply-templates select="*[1]"/>
+ </xsl:copy>
+ </xsl:for-each>
+ <Goal>
+ <xsl:apply-templates select="Goal/*[1]"/>
+ </Goal>
+ </Sequent>
+</xsl:template>
+
<xsl:template match="Definition" mode="noannot">
<Definition name="{@name}" helm:xref="{@id}">
<xsl:if test="string(@params) != """>
<xsl:template match="CurrentProof" mode="noannot">
<CurrentProof name="{@name}" helm:xref="{@id}">
<xsl:for-each select="Conjecture">
- <Conjecture no="./{@no}">
+ <Conjecture no="{@no}">
<xsl:apply-templates select="."/>
</Conjecture>
</xsl:for-each>