Project

Profile

Help

Support #5108

Inheriting the optional property from the parent element definition to all the child elements

Added by Juhi Gupta 20 days ago. Updated 20 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2021-09-28
Due date:
% Done:

0%

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

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")

History

#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

Also available in: Atom PDF