Project

Profile

Help

Bug #6092

closed

XSD: defaultOpenContent/@appliesToEmpty not working?

Added by Michael Kay over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema conformance
Sprint/Milestone:
-
Start date:
2023-06-23
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
11, 12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

To implement the rules for the proposed xsl:note element in the schema for XSLT 4.0, I am using a defaultOpenContent declaration with appliesToEmpty=true. This doesn't appear to be working: test case note-007, which has an xsl:noteelement as a child ofxsl:strip-space`, is rejected as invalid.

Summary

defaultOpenContent with appliesToEmpty=true is not working in the case of a complex type with a locally empty content model that is derived by extension from another complex type with a locally empty content model; the resulting type is classified (and validated) as empty without taking the openContent into account.

Please register to edit this issue

Also available in: Atom PDF