This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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 "&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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]