3 <!--***********************************************************************-->
4 <!-- XSLT version 0.1 of annotated MathML content to MathML presentation: -->
5 <!-- First draft: March 29 2000, Claudio Sacerdoti Coen, Irene Schena -->
6 <!--***********************************************************************-->
8 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:m="http://www.w3.org/1998/Math/MathML">
11 <xsl:import href="objcontent.xsl"/>
13 <xsl:template match="Definition|Axiom|CurrentProof|InductiveDefinition|Variable">
15 <xsl:when test="'annotation' != name(*[1])">
16 <xsl:apply-templates select="." mode="noannot"/>
20 <xsl:apply-templates select="annotation"/>
26 <xsl:template match="LAMBDA|PROD|CAST|REL|SORT|APPLY|VAR|META|CONST|MUTIND|MUTCONSTRUCT|MUTCASE|FIX|COFIX">
27 <xsl:param name="backpointer" select="''"/>
29 <xsl:when test="'Annotation' != name(*[1])">
31 <xsl:apply-templates select="." mode="noannot">
32 <xsl:with-param name="backpointer" select="$backpointer"/>
33 </xsl:apply-templates>
38 <xsl:apply-templates select="Annotation"/>
44 <!-- DA MODIFICARE PER GESTIRE I RIFERIMENTI A SOTTOANNOTAZIONI O NODI MATH -->
46 <xsl:template match="nephew">
47 <xsl:variable name="select" select="@no"/>
48 <xsl:apply-templates select="../../*[2]/*[number($select)]"/>
51 <xsl:template match="brother">
52 <xsl:variable name="select" select="@no"/>
53 <xsl:apply-templates select="../../*[number($select) + 1]"/>
56 <xsl:template match="name">
57 <xsl:value-of select="../../*[2]/@name"/>
60 <xsl:template match="nephew-name">
61 <xsl:variable name="select" select="@no"/>
62 <xsl:value-of select="../../*[2]/*[number($select)]/@name"/>