--- mathmlc2p.xsl	2005-07-06 16:45:37.000000000 -0500
+++ mathmlc2p-6.xsl	2005-07-08 15:55:37.000000000 -0500
@@ -508,23 +508,21 @@
   </mrow>
 </xsl:template>
 
-<!-- piecwise -->
+<!-- piecewise -->
 <xsl:template match="m:piecewise">
   <mrow>
-    <xsl:element name="mfenced">
-      <xsl:attribute name="open">{</xsl:attribute>
-      <xsl:attribute name="close"></xsl:attribute>
+    <mfenced open="{{" close="">
       <mtable>
 	<xsl:for-each select="m:piece">
 	<mtr><mtd>
-	  <xsl:apply-templates select="*[1]"/><mspace/>if<mspace/><xsl:apply-templates select="*[2]"/>
+	  <xsl:apply-templates select="*[1]"/><mspace width="0.3em"/><m:mtext>if</m:mtext><mspace width="0.3em"/><xsl:apply-templates select="*[2]"/>
 	</mtd></mtr>
 	</xsl:for-each>
         <xsl:if test="m:otherwise">
-	  <mtr><mtd><xsl:apply-templates select="m:otherwise/*"/><mspace/>otherwise</mtd></mtr>
+	  <mtr><mtd><xsl:apply-templates select="m:otherwise/*"/><mspace width="0.3em"/><m:mtext>otherwise</m:mtext></mtd></mtr>
         </xsl:if>
       </mtable>
-    </xsl:element>
+    </mfenced>
   </mrow>
 </xsl:template>
 

