Project

Profile

Help

Bug #2043

closed

Empty maps not passing type checking inside compound <xsl:map> statements

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

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

100%

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

Description

The attached stylesheet reports an error:

XTTE0570: Required item type of value of variable $daily.fact.map is (map(xs:date, (map(xs:string, xs:string*)); supplied value has item type (map(xs:date, map(*))

This error appears to be due to $putative.map being an empty map when the instruction is executed on the 2nd iteration of the xsl:iterate instruction. This means that xsl:map-entry is mapping an xs:date to an empty map. But this should be legal because an empty map satisfies the requirement of map(xs:string,xs:string*), otherwise, the xsl:param statement in the xsl:itereate instruction would throw an error.


Files

Public_Map_error.xsl (2.73 KB) Public_Map_error.xsl David Rudel, 2014-03-27 00:35

Please register to edit this issue

Also available in: Atom PDF