【发布时间】:2020-08-04 06:03:04
【问题描述】:
我正在尝试将 XSL 2.0 版与 openJDK 13 和 apache FOP 一起使用。
尽管在样式表中编写了以下代码:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
...
<xsl:value-of select="system-property('xsl:version')"/>
...正在返回“1.0”
如何让 XSL 2.0 版在此环境中运行?
【问题讨论】:
-
我想把 Saxon 9 或 10 HE(在 Sourceforge 和 Maven 上可用)放在类路径上。除非 JDK 13 有不允许运行为 JDK 8 开发的 Saxon 9 或 10 的重大更改。我已经测试了 Saxon 10.1 HE 以与 JDK 11 一起运行,不知道 JDK 13 是否会破坏一些向后兼容性。
标签: java xslt apache-fop java-13