以下转换模板从我的输入文档中正确删除命名空间:
<xsl:template match="@*|node()[not(self::*)]">
<xsl:copy/>
</xsl:template>
<xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
</xsl:template>
有没有办法继续处理同一样式表中的“命名空间剥离”输出以实现进一步的转换?例如使用 xsl:copy 或嵌套模板或类似的东西?还是我必须进行转换链接?