]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/xsl/tml-mmlp.xsl
* added show/hide cursro methods
[helm.git] / helm / DEVEL / mathml_editor / xsl / tml-mmlp.xsl
index 8736053872db15bd8c9b00518b0d4cd910786493..34f44b3e80a3ffad4ab6b802d268b8f681d72246 100644 (file)
@@ -93,7 +93,7 @@
     </xsl:choose>
   </xsl:template>
 
-  <xsl:template match="tml:cursor">
+  <xsl:template match="tml:cursor[@visible='1']">
     <xsl:param name="annotation" select="/.."/>
     <xsl:choose>
       <xsl:when test="$annotation">
     </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">
         </xsl:attribute>
       </xsl:if>
       <xsl:apply-templates select="*[1]"/>
-      <xsl:if test="tml:g/tml:cursor">
+      <xsl:if test="tml:g/tml:cursor[@visible='1']">
         <m:msub>
           <m:mtext mathcolor="#808080">}</m:mtext>
          <m:mtext><xsl:value-of select="@name"/></m:mtext>