Type annotation for a complex type with simple content
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.
#3 Updated by Michael Kay over 3 years ago
- Status changed from New to Resolved
- Applies to branch 9.8, trunk added
- Fix Committed on Branch 9.8, trunk added
Fix committed for 9.8 and trunk. (One-line change in SimpleContentValidator). The bug is present since the dawn of time, but won't fix in earlier releases as users are unlikely to be affected.
Please register to edit this issue