Project

Profile

Help

Bug #4403

closed

Internal error when calling saxon:transform() with stylesheet without primary output

Added by Johan Gheys almost 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
Start date:
2019-12-04
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

For the moment, we chain multiple transformations together by using the standard transform() function without any problems (see the simplified example 1 in attached zip). In order to reduce memory consumption, we like to replace this function by the saxon:transform() extension function allowing the secondary result output to be serialized directly to filestore. When the styleheet has no primary output, we get the following error (see example 2):

java.lang.RuntimeException: Internal error evaluating function shared:transform-with-saxon at line 162 in module file:/D:/Data/MyProjects/upp/upm-publish-processing/src/test/saxon-transform/xsl/shared-functions.xslt at net.sf.saxon.expr.instruct.UserFunction.call(UserFunction.java:612)...

Putting a dummy element in the primary result tree, solves the problem.


Files

saxon-transform.zip (538 KB) saxon-transform.zip Johan Gheys, 2019-12-04 10:53
saxon-config.xml (387 Bytes) saxon-config.xml Johan Gheys, 2022-02-21 09:53

Please register to edit this issue

Also available in: Atom PDF