Project

Profile

Help

Support #5108

closed

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

Added by Juhi Gupta over 2 years ago. Updated over 2 years ago.

Status:
Closed
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")

Actions #1

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

Actions #2

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

Also available in: Atom PDF