Project

Profile

Help

Bug #4389

closed

ClassCastException when running EE rather than HE

Added by Ken Holman about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2019-11-18
Due date:
% Done:

0%

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

Description

While I found this in my first attempt to execute EE and it was with this stylesheet and real data, I see that I can reproduce the problem when executing the stylesheet with bogus input:

~/s/companies/bpc $ java -jar ~/p/xml/xslt/saxon9he/saxon9he.jar -s:skeletonCommenter.xsl -xsl:skeletonCommenter.xsl

~/s/companies/bpc $

~/s/companies/bpc $ java -jar ~/p/xml/xslt/saxon9ee/saxon9ee.jar -s:skeletonCommenter.xsl -xsl:skeletonCommenter.xsl java.lang.ClassCastException: net.sf.saxon.pattern.NodeKindTest cannot be cast to net.sf.saxon.type.BuiltInAtomicType at net.sf.saxon.style.XSLKey.compileDeclaration(XSLKey.java:301) at net.sf.saxon.style.PrincipalStylesheetModule.compile(PrincipalStylesheetModule.java:1235) at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:326) at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:222) at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:107) at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:785) at net.sf.saxon.Transform.doTransform(Transform.java:741) at net.sf.saxon.Transform.main(Transform.java:80) Fatal error during transformation: java.lang.ClassCastException: net.sf.saxon.pattern.NodeKindTest cannot be cast to net.sf.saxon.type.BuiltInAtomicType ~/s/companies/bpc $

As a side note, oXygenXML reports a syntax error on line 64:

match="Row[not(c:col(.,'ComponentType')='ABIE')] [not(c:col(.,'BPCML')=('','0'))]"

... but there is nothing wrong that I can see with that expression and I get no static error when running HE as seen above.

I hope this is helpful.

. . . . . Ken


Files

skeletonCommenter.xsl (5.5 KB) skeletonCommenter.xsl Ken Holman, 2019-11-18 02:32
skeletonCommenter.xsl (7.41 KB) skeletonCommenter.xsl Ken Holman, 2019-11-18 04:16

Please register to edit this issue

Also available in: Atom PDF