]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/xsl/tml-mmlp.xsl
This commit was manufactured by cvs2svn to create tag 'v0_0_2'.
[helm.git] / helm / DEVEL / mathml_editor / xsl / tml-mmlp.xsl
index f5e1b6f74cc415601a2169432cb91acf011f7963..cd4ee601fc516f044ff3bc07aa91065b635b347e 100644 (file)
     </m:mo>
   </xsl:template>
 
-  <xsl:template match="tml:cursor">
+  <xsl:template match="tml:cursor[@visible='1']">
     <xsl:choose>
       <xsl:when test="substring(@val,1,1)='\'">
         <m:mrow>
              </m:mi>
            </xsl:otherwise>
          </xsl:choose>
-         <xsl:if test="@visible='1'">
-          <m:mtext mathcolor="blue">I</m:mtext>
-         </xsl:if>
+         <m:mtext mathcolor="blue">I</m:mtext>
        </m:mrow>
       </xsl:when>
       <xsl:otherwise>
-       <xsl:if test="@visible='1'">
-         <m:mtext mathcolor="blue">
-          <xsl:if test="@id">
-            <xsl:attribute name="xref">
-              <xsl:value-of select="@id"/>
-            </xsl:attribute>
-          </xsl:if>
-         <xsl:text>I</xsl:text>
-        </m:mtext>
-       </xsl:if>
+        <m:mtext mathcolor="blue">
+         <xsl:if test="@id">
+           <xsl:attribute name="xref">
+             <xsl:value-of select="@id"/>
+           </xsl:attribute>
+         </xsl:if><xsl:value-of select="@val"/>I</m:mtext>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
 
+  <xsl:template match="tml:cursor[not(@visible) or @visible='0']">
+  </xsl:template>
+
   <xsl:template match="tml:sb[@under='1'][*[1]/tml:sp[@over='1']]">
     <m:munderover>
       <xsl:if test="@id">