Project

Profile

Help

Bug #4225

closed

Imprecise type inference for xml-to-json() function

Added by Michael Kay almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2019-05-24
Due date:
% Done:

100%

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

Description

The static type inferred for the result of the xml-to-json() function is item()? rather than xs:string()?.

This is unnecessarily imprecise, which means that optimizations on the enclosing expression don't kick in.

Please register to edit this issue

Also available in: Atom PDF