我认为而不是:
<xsl:template match="*[@ml:dessert]">
<xsl:copy>
<xsl:value-of select="@ml:name"/>
</xsl:copy>
</xsl:template>
你想要:
<xsl:template match="ml:dessert">
<xsl:copy>
<xsl:value-of select="ml:name"/>
</xsl:copy>
</xsl:template>