【发布时间】:2017-04-10 00:01:35
【问题描述】:
正在测试当前 saxon9he.jar 中的 xsl:output 并尝试使用以下调用:
<xsl:output encoding="UTF-8" media-type="text/plain"
indent="yes" method="text" saxon:line-length="1000"/>
导致 “线程“主”net.sf.saxon.trans.LicenseException 中的异常: 请求的功能(自定义序列化 {http://saxon.sf.net/}line-length)需要 Saxon-PE"
同时在另一个样式表中,以下似乎有效:
<xsl:result-document href="{$sourceFilePath}" method="html" omit-xml-declaration="yes"
encoding="UTF-8" indent="yes" saxon:line-length="120">
升级到付费 PE 版本不是一种选择,因为这项工作是必须可重复的开源标准开发项目的一部分。也不想将样式表(和调用)从 xsl:output 重构为 xsl:result-document。
我希望两个 xsl 元素都可以提供一致的实现支持。
对 saxon:line-length 的参考是 http://www.saxonica.com/documentation9.5/extensions/output-extras/line-length.html 和 http://www.saxonica.com/documentation/index.html#!changes/serialization/9.2-9.3
【问题讨论】:
标签: saxon