This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: dbmathml processing problem
Norman Walsh writes:
> It's my bug. I convert all unknown tags into "<tagname..." so when
> Bernd says xt outputs <mml:math>, I think he really means PassiveTeX
> outputs <mml:math> because xt outputs "<mml:math>".
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