Project

Profile

Help

Bug #6598

open

java.lang.ArrayIndexOutOfBoundsException processing 1.0 stylesheet

Added by Norm Tovey-Walsh 7 days ago. Updated 6 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2024-11-27
Due date:
% Done:

0%

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

Description

Processing the XSLT 4.0 schema with the W3C's (1.0) xsd.xsl issues an error message then throws an exception:

Warning: /xs:schema/xs:defaultOpenContent not matched.
Warning: /xs:schema/xs:defaultOpenContent/xs:any not matched.
Warning: /xs:schema/xs:defaultOpenContent/xs:any/@processContents not matched.
Error at xsl:copy on line 676 column 14 of xsd.xsl:
  XTDE0410  An attribute node (processContents) cannot be created after a child of the
  containing element. Most recent element start tag was output at line 674 of module xsd.xsl
  In template rule with match="@*" on line 668 of xsd.xsl
     Focus
        Context item: /xs:schema/xs:defaultOpenContent[1]/xs:any[1]/@processContents
        Context position: 1
     Local variables
        $fqgi = doc()
     invoked by xsl:apply-templates at file:/Volumes/Saxonica/src/qt4cg/qtspecs/xsd.xsl#677
  In template rule with match="*" on line 668 of xsd.xsl
     Focus
        Context item: /xs:schema/xs:defaultOpenContent[1]/xs:any[1]
        Context position: 4
     Local variables
        $fqgi = doc()
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at com.saxonica.ee.config.SlotManagerEE.showStackFrame(SlotManagerEE.java:82)
	at net.sf.saxon.lib.StandardDiagnostics.logStackTrace(StandardDiagnostics.java:279)
	at net.sf.saxon.lib.StandardErrorReporter.outputStackTrace(StandardErrorReporter.java:634)

Files

schema-for-xslt40.xsd (119 KB) schema-for-xslt40.xsd Norm Tovey-Walsh, 2024-11-27 14:19
xsd.xsl (31.2 KB) xsd.xsl Norm Tovey-Walsh, 2024-11-27 14:19

Please register to edit this issue

Also available in: Atom PDF