Bug #3857
closed
Saxon resources S9APIExamples sample failures
Category:
Build and release
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Description
A couple of the S9APIExamples Java samples fail under 9.8.
TransformG fails with "EXCEPTION: net.sf.saxon.s9api.SaxonApiException: Cannot invoke function path#1 externally, because it is not public"
XPathC fails with "EXCEPTION: net.sf.saxon.s9api.SaxonApiException: When schema validation is used, the whitespace stripping policy must be IGNORABLE"
(Note that the samples are running fine under 9.7.)
The XPathC Java code includes:
DocumentBuilder.setWhitespaceStrippingPolicy(WhitespaceStrippingPolicy.ALL);
But the documentation comment for this method includes:
(New rule in 9.8:) If DTD or schema validation is applied, the only permitted setting is WhitespaceStrippingPolicy#IGNORABLE. Any other value results in an exception from the #build(File) method.
So the sample Java code should be updated accordingly for 9.8 onwards.
TransformG runs the XSLT 2.0 stylesheet styles/summarize.xsl. It looks like we need to update the version to 3.0, to use the new attribute xsl:function/@visibility to declare the function as public.
- Status changed from New to Resolved
- Fix Committed on Branch 9.8, trunk added
Fixes committed on 9.8 and 9.9 dev branches.
(The saxon-resources download should be updated with the next 9.8 maintenance release.)
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.8.0.14 added
Bug fix applied in the Saxon 9.8.0.14 maintenance release.
9.8 saxon-resources download now updated.
Please register to edit this issue
Also available in: Atom
PDF