使用Saxon,如何在单独的样式表(xsl)中包含已编译的样式表(sep)?

时间:2017-09-15 15:49:09

标签: xml xslt saxon saxon-js

我正在编译样式表(XSL)以与SaxonJS一起使用到它们的编译形式(SEP)。

$ java -jar saxon9ee.jar -target:JS -xsl:child.xsl -export:child.sef.xml -nogo

我想通过include。在另一个父样式表中使用已编译的子样式表。

<xsl:include href="child.sef.xml"/>

但是当我编译父样式表时,我会收到错误。

$ java -jar saxon9ee.jar -target:JS -xsl:parent.xsl -export:parent.sef.xml -nogo
Static error at package on line 2 column 352 of child.sef.xml:
  XTSE0150: The supplied file does not appear to be a stylesheet
Errors were reported during stylesheet compilation

我不想将child.xsl交付给组成parent.xsl的团队,只需要编译版本的child.sep.xml。

0 个答案:

没有答案
相关问题