Inheriting the optional property from the parent element definition to all the child elements
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")
#1 Updated by Michael Kay 20 days 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.)
Please register to edit this issue