Project

Profile

Help

Bug #3857

closed

Saxon resources S9APIExamples sample failures

Added by Debbie Lockett over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Build and release
Sprint/Milestone:
-
Start date:
2018-07-24
Due date:
% Done:

100%

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

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.)

Actions #1

Updated by Debbie Lockett over 5 years ago

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.

Actions #2

Updated by Debbie Lockett over 5 years ago

  • 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.)

Actions #3

Updated by Debbie Lockett over 5 years ago

  • 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.

Actions #4

Updated by Debbie Lockett over 5 years ago

9.8 saxon-resources download now updated.

Please register to edit this issue

Also available in: Atom PDF