Project

Profile

Help

Bug #2161

closed

Attempt to use text value templates under Saxon-HE gives poor diagnostics

Added by Michael Kay about 10 years ago. Updated about 9 years ago.

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

100%

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

Description

See XSLT 3.0 test case attr/expand-text/cvt-029 under Saxon-HE. In StyleElement.compileSequenceConstructor, the method isExpandText() is returning true, when it should return false because the expand-text attribute should be ignored when running a 2.0 procesor in forwards-compatible mode.

Actions #1

Updated by Michael Kay about 10 years ago

  • Status changed from New to Resolved

Patch applied in StyleElement.processExpandTextAttribute() on the 9.6 and 9.7 branches. The effect of the patch is to ignore the expand-text attribute with a warning if XSLT 3.0 is not enabled. The test case now outputs:

Warning: at xsl:function on line 8 column 62 of cvt-029.xsl:

The @expand-text attribute is ignored because XSLT 3.0 is not enabled

...

Validation error at function f:sum on line 8 of cvt-029.xsl:

FORG0001: Cannot convert string "\n {$x + $y}\n" to an integer

Actions #2

Updated by O'Neil Delpratt about 10 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.2

Bug fix applied to the maintenance release Saxon 9.6.0.2

Actions #3

Updated by O'Neil Delpratt about 9 years ago

  • Sprint/Milestone set to 9.6.0.2
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.2 added

Please register to edit this issue

Also available in: Atom PDF