如何创建相同的 XML 表,但删除每个属性的前导和尾随空格?(使用 XSLT 2.0)
从这里开始:
<node id="DSN ">
<event id=" 2190 ">
<attribute key=" Teardown"/>
<attribute key="Resource "/>
</event>
</node>
对此:
<node id="DSN">
<event id="2190">
<attribute key="Teardown"/>
<attribute key="Resource"/>
</event>
</node>
我想我更喜欢使用该normalize-space()
功能,但无论如何都可以。