函数functx:remove-attributes自动向节点添加一个空的@xmlns,我想防止这种行为。示例 xml:
<mei meiversion="3.0.0" xmlns="http://www.music-encoding.org/ns/mei">
<note accid.ges="f" doxml.id="d28e18935" dur="8" oct="4" pname="e" tstamp="1.75" xml:id="note_112296"/>
</mei>
XSLT 摘录:
<xsl:copy-of select="functx:remove-attributes(., $attributes2remove)" />
当前(假)XML 输出:
<note accid.ges="f" doxml.id="d28e18935" dur="8" oct="4" pname="e" tstamp="1.75" xml:id="note_112296" xmlns=""/>