You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Saxon-JS 2/3中配置处理器以支持codepoints-to-string(8)?

在Saxon-JS中配置支持XML 1.1字符的方法?

在Saxon-J中,可通过以下代码配置处理器以支持XML 1.1字符:

processor.getUnderlyingConfiguration().setXMLVersion(XML11);

现寻求Saxon-JS 2(或Saxon-JS 3测试版)中的等效配置方法。当前在Saxon-JS 2中执行XPath表达式codepoints-to-string(8)时,会抛出错误:

Uncaught XError: Invalid XML character 0x8

请问是否可在Saxon-JS中实现该配置?

内容的提问来源于stack exchange,提问作者al.truisme

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.11 09:54:49