Re: DOCBOOK-APPS: dbmathml processing problem

From
Sebastian Rahtz <>
Date
2000-11-29T20:20:56+00:00
ID
Thread
Re: DOCBOOK-APPS: dbmathml processing problem
Norman Walsh writes:
 > It's my bug. I convert all unknown tags into "&lt;tagname..." so when
 > Bernd says xt outputs <mml:math>, I think he really means PassiveTeX
 > outputs <mml:math> because xt outputs "&lt;mml:math&gt;".
indeed. I was about to tell Bernd that...

 > <!-- just send the MathML all the way through... -->
 > <xsl:template match="mml:*">
 >   <xsl:element name="{name(.)}">
 >     <xsl:copy-of select="@*"/>
 >     <xsl:apply-templates select="node()"/>
 >   </xsl:element>
 > </xsl:template>

are you sure this is sufficient? I see that I have

<xsl:template match="m:math">
 <m:math>
  <xsl:copy-of select="@*"/>
  <xsl:apply-templates mode="math"/>
 </m:math>
</xsl:template>

<xsl:template match="m:*|@*|comment()|processing-instruction()|text()" mode="math">
 <xsl:copy>
   <xsl:apply-templates mode="math" select="*|@*|processing-instruction()|text()"/>
 </xsl:copy>
</xsl:template>

for what its worth

sebastian