如何去除 XSLT 2.0 中字符串的前导和尾随空格?
How to strip leading and trailing spaces of a string in XSLT 2.0?
如何在 XSLT 2.0 中去除字符串的前导和尾随空格(因此使用 XPath)。
fn:normalize-space
不是解决方案,因为它还会折叠内部空间。
使用replace
:replace(' a ', '^\s+|\s+$', '')
。
如何在 XSLT 2.0 中去除字符串的前导和尾随空格(因此使用 XPath)。
fn:normalize-space
不是解决方案,因为它还会折叠内部空间。
使用replace
:replace(' a ', '^\s+|\s+$', '')
。