如何在xslt中组合模板
我有两个模板。我想把它们结合在一起如何在xslt中组合模板,xslt,Xslt,我有两个模板。我想把它们结合在一起 <xsl:template match="abc//para/c"> <p type="ccc"> <xsl:apply-templates/> </p> </xsl:template> <xsl:template match="abc/c"> <p type="ccc&q
<xsl:template match="abc//para/c">
<p type="ccc">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="abc/c">
<p type="ccc">
<xsl:apply-templates/>
</p>
</xsl:template>
试用代码:
<xsl:template match="abc//para/c or abc/c">
<p type="ccc">
<xsl:apply-templates/>
</p>
</xsl:template>
我尝试过的代码没有成功。使用match=“abc//para/c | abc/c”