xslt输出字符“”
xslt output character "
"
在我的一个用例中,无论遇到 space 或换行符,我的 XSLT 2.0 转换(由 Saxon 和 JAVA 提供支持)都会在我的输出中生成额外的 

字符。
但是,当使用 XSLT 1.0(由 libXSLT 和 Perl 提供支持)完成相同的转换时,它不会在输出中获得此特定字符。
我已经提到了这个 query,它解释了 SAXON 本质上是序列化这些特殊字符以进行往返。
我的问题是,为什么 XSLT 1.0 的行为不同?
我想 1999 年的 XSLT 1.0 比 XML 1.1 更旧,这需要 https://www.w3.org/TR/xml11/#sec-line-ends whereas XML 1.0 https://www.w3.org/TR/xml/#sec-line-ends does not cover that character. XSLT 2.0's serialization rules as outlined in https://www.w3.org/TR/xslt-xquery-serialization/#xml-output 中该字符的规范化确实考虑到了 XML 1.1,XSLT 1.0 更旧则不会.
在我的一个用例中,无论遇到 space 或换行符,我的 XSLT 2.0 转换(由 Saxon 和 JAVA 提供支持)都会在我的输出中生成额外的 

字符。
但是,当使用 XSLT 1.0(由 libXSLT 和 Perl 提供支持)完成相同的转换时,它不会在输出中获得此特定字符。
我已经提到了这个 query,它解释了 SAXON 本质上是序列化这些特殊字符以进行往返。
我的问题是,为什么 XSLT 1.0 的行为不同?
我想 1999 年的 XSLT 1.0 比 XML 1.1 更旧,这需要 https://www.w3.org/TR/xml11/#sec-line-ends whereas XML 1.0 https://www.w3.org/TR/xml/#sec-line-ends does not cover that character. XSLT 2.0's serialization rules as outlined in https://www.w3.org/TR/xslt-xquery-serialization/#xml-output 中该字符的规范化确实考虑到了 XML 1.1,XSLT 1.0 更旧则不会.