Project

Profile

Help

Bug #2041

closed

NPE: xsl:iterate/xsl:param with no @select attribute

Added by David Rudel over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2014-03-26
Due date:
% Done:

0%

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

Description

I cannot give any guesses as to what is causing it, but the attached script gives a compile-time NPE in 9.5.1.3 EE.


Files

NPE_public_Repro.xsl (1.73 KB) NPE_public_Repro.xsl David Rudel, 2014-03-26 14:05
Actions #1

Updated by Michael Kay over 10 years ago

  • Category set to Diagnostics
  • Status changed from New to In Progress
  • Assignee set to Michael Kay
  • Priority changed from Low to Normal

I see different symptoms under 9.5.1.5:

Error at xsl:param on line 24 of NPE_public_Repro.xsl:

Internal error: No select expression

Still not good diagnostics, but it does point to the cause, which is the absence of a select attribute on the xsl:param. This is needed in xsl:iterate to provide an initial value for the paramter.

Actions #2

Updated by Michael Kay over 10 years ago

I have raised spec bug 25158 because there is an error condition here which the XSLT 3.0 spec doesn't cover.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25158

Actions #3

Updated by Michael Kay over 10 years ago

Added W3C XSLT 3.0 test case iterate-902

Actions #4

Updated by Michael Kay over 10 years ago

  • Status changed from In Progress to Resolved

Fixed on the 9.5 and 9.6 branches. Provisional error code awaiting W3C action.

Actions #5

Updated by O'Neil Delpratt about 10 years ago

  • Status changed from Resolved to Closed

Bug fix applied in the Saxon maintenance release 9.5.1.6

Actions #6

Updated by Michael Kay about 10 years ago

  • Subject changed from NPE with unknown cause to NPE: xsl:iterate/xsl:param with no @select attribute

Please register to edit this issue

Also available in: Atom PDF