Support #5108
closedInheriting the optional property from the parent element definition to all the child elements
0%
Description
We wanted to check if this feature is supported in Saxon where constraints/properties applied on parent element definitions are inherited from parent element to child element For example: If parent is defined an optional element (minOccurs="0") in XSD, all its child element should inherit this optional property (minOccurs="0")
Updated by Michael Kay over 2 years ago
I thought at first you might be referring to the XSD 1.1 feature called "Inherited Attributes", but this doesn't quite match your description.
Reading your question carefully, I don't think I recognise anything here that's available in XSD 1.1 or in Saxon. But I might have misunderstood what you are looking for. (I'm not even sure what you mean by "parent" and "child": element definitions in XSD don't form a hierarchy, they form a generalised graph: A can be a parent of B while B is also a parent of A.)
Updated by Michael Kay over 2 years ago
- Status changed from New to Closed
- Assignee set to Michael Kay
I'm closing this request as we can't provide any further help without clarification of the request. Feel free to reopen if you have new information to add.
Please register to edit this issue