]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/xsl/tml-mmlp.xsl
* this is a large commit
[helm.git] / helm / DEVEL / mathml_editor / xsl / tml-mmlp.xsl
index 9054b9c997ffbaf020b6378f819c373384ed3fbd..8736053872db15bd8c9b00518b0d4cd910786493 100644 (file)
@@ -88,9 +88,7 @@
            <xsl:attribute name="xref">
              <xsl:value-of select="@id"/>
            </xsl:attribute>
-         </xsl:if>
-        I
-        </m:mtext>
+         </xsl:if>I</m:mtext>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
           <xsl:value-of select="@id"/>
         </xsl:attribute>
       </xsl:if>
-      <xsl:apply-templates select="*[2]"/>
-      <xsl:apply-templates select="*[1]"/>
+      <xsl:choose>
+        <xsl:when test="count(*) &lt; 2">
+         <m:mrow/>
+         <xsl:apply-templates select="*[1]"/>
+       </xsl:when>
+       <xsl:otherwise>
+          <xsl:apply-templates select="*[2]"/>
+          <xsl:apply-templates select="*[1]"/>
+       </xsl:otherwise>
+      </xsl:choose>
     </m:mroot>
   </xsl:template>