Project

Profile

Help

Bug #4020

closed

Incorrect XSLT validation error in Oxygen XML Editor 20.1 when Saxon config file is used

Added by Mark Dunn over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2018-11-12
Due date:
% Done:

0%

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

Description

When validating an XSLT file in Oxygen XML Editor 20.1 using its default validation scenario, I get an unexpected error message:

Cannot find a 2-argument function named {java:ro.sync.util.xslt.XPathElementsAndAttributesExtractor}getElementNames(). Reflexive calls to Java methods are not available under Saxon-HE

The error message relates to a Schematron file that is run as part of the validation scenario (attached).

According to my Oxygen Preferences, the validation engine for XSLT 2.0 and 3.0 is Saxon-EE 9.8.0.12 (not Saxon-HE)

My preferences also include using a Saxon config file (attached). The only config options in this file relate to XSLT 3 packages.

But if I switch the Preferences to not use a config file, the error message goes away.

I've raised a ticket with Oxygen support as well, as I can't tell where the problem ultimately lies.

Is there anything I need to include in the Saxon config file to prevent this error message appearing? Or is it a bug?


Files

config-saxon.xml (1.33 KB) config-saxon.xml Mark Dunn, 2018-11-12 10:39
xsltBadPractices.sch (3.88 KB) xsltBadPractices.sch Mark Dunn, 2018-11-12 10:40
Actions #1

Updated by Mark Dunn over 5 years ago

Found the issue: I needed to explicitly declare @edition="EE" on the root element in the config file.

Actions #2

Updated by Michael Kay over 5 years ago

  • Status changed from New to Closed

Glad you were able to solve it.

Marking as closed.

Please register to edit this issue

Also available in: Atom PDF