3

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

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

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

<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。

4

0 回答 0