Saxon 不再支持 `saxon:output` [英] Saxon doesn't support `saxon:output` anymore
问题描述
我正在尝试使用 Saxon 9.1.0.8 HE 来应用(最近的)Docbook XSL,并得到这个:
I'm trying to use Saxon 9.1.0.8 HE to apply (recent) Docbook XSL, and getting this:
Don't know how to chunk with SAXON 9.1.0.8 from Saxonica
Processing terminated by xsl:message at line 46 in chunker.xsl
Docbook XSL 源声称:
Docbook XSL source claims that:
<!-- This stylesheet works with XSLT implementations that support -->
<!-- exsl:document, saxon:output, or Xalan's redirect:write -->
<!-- Note: Only Saxon 6.4.2 or later is supported. -->
...并访问错误消息中提到的第 46 行(测试 element-available('saxon:output')
),并访问 Saxon 文档,表明问题的根源在于 Saxon 不再识别 saxon:output代码>扩展.
...and a visit to line 46 mentioned in the error message (which tests for element-available('saxon:output')
), and to Saxon documentation, shows that the root of the problem is that Saxon no longer recognizes the saxon:output
extension.
该来源 建议使 Saxon 9.4 与 XSLT 1.0 兼容(这就是样式表在,以及 saxon:output
过去最适合做什么),必须启用某种向后兼容行为".但为什么,以及如何?
This source suggests that to make Saxon 9.4 compatible with XSLT 1.0 (which is what the stylesheets are in, and what saxon:output
used to be good for in the first place), some kind of "backward compatible behavior" must be enabled. But why, and how?
(有问题的 docbook 样式表确实指定了 <xsl:stylesheet version="1.0" xmlns:saxon="http://icl.com/saxon">
.)
(The docbook stylesheet in question does specify <xsl:stylesheet version="1.0" xmlns:saxon="http://icl.com/saxon">
.)
推荐答案
我不是 DocBook 的专家,但我相信 Docbook 1.0 样式表可能最适合 Saxon 6.5.5,如果您想使用最新的 Saxon发布(例如为了性能),那么您最好使用 Docbook 2.0 样式表:请参阅
I'm no expert in DocBook, but I believe the Docbook 1.0 stylesheets probably work best with Saxon 6.5.5, and if you want to use the latest Saxon releases (e.g. for performance) then you're probably better off using the Docbook 2.0 stylesheets: see
http://norman.walsh.name/2011/08/25/docbook-xslt-2
这篇关于Saxon 不再支持 `saxon:output`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!