我有以下调用模板的代码:
<xsl:call-template name="LigneDonnee">
<xsl:with-param name="text">Les émissions de CO<fo:inline font-size="6pt">2</fo:inline> :</xsl:with-param>
<xsl:with-param name="value"><xsl:value-of select='InfoGenerale/EmissionCO2' /></xsl:with-param>
</xsl:call-template>
调用以下模板:
<xsl:template name="LigneDonnee">
<xsl:param name="text"/>
<xsl:param name="value"/>
<fo:table table-layout="fixed" width="9.5in" padding-bottom="6pt" padding-top="6pt">
<fo:table-column column-width="6.0in"/>
<fo:table-column column-width="1.70in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block><xsl:value-of select="$text" disable-output-escaping="yes" /></fo:block>
</fo:table-cell>
<fo:table-cell text-align="right" vertical-align="middle">
<fo:block>
<xsl:if test="$value != ''">
<xsl:value-of select='translate(format-number($value, "### ### ### ##0.######"),".",",")' />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
我的问题是CO<fo:inline font-size="6pt">2</fo:inline>
似乎CO2
被<xsl:value-of select="$text" />
.
如何避免/规避?