Project

Profile

Help

Bug #3628

closed

Type annotation for a complex type with simple content

Added by Michael Kay over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema-Aware processing
Sprint/Milestone:
-
Start date:
2018-01-16
Due date:
% Done:

100%

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

Description

When Saxon validates an element against a complex type with simple content (specified in this case using xsl:type on a literal result element), the resulting type annotation is the simple (content) type, not the complex type.

The code in ContentValidator appears to do this quite deliberately, but there doesn't appear to be anything in the specs to justify it.

Raised on the oXygen forum and subsequently on xml-dev.

Please register to edit this issue

Also available in: Atom PDF