When I insert a new element oXygen will add all mandatory child elements as well, which is very nice. Now It occurs increasingly often that I add new elements to the xsd. To be downward compatible (i.e. not having to adapt all older documents), I don't want these new elements to be mandatory. But then the author has to insert them manually, which is quite unconfortable.
I'm aware of the possibilities to add a schematron rule (with quick-fix) or to implement an author action for inserting the parant element, but they both don't fit well.
Now I'd like to mark such optional elements as "insert it automativally when the parent element is inserted". This could look like this:
Code: Select all
<xs:element name="optionalChild" minOccurs="0">
Thanks and regards,