Skip to content

Commit 979ad04

Browse files
committed
XSD warnings
In CGAL we got a number of times a warning like: ``` element memberdef: Schemas validity error : Element 'memberdef': This element is not expected. Expected is ( member ) ``` when running a xsd check. The resulting XML output gave that in a `sectiondef` part there were a number of `member`s and `memberdef`s in a unsorted order and this was not supported in the `compound.xsd`.
1 parent 1040db6 commit 979ad04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/xml/compound.xsd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@
174174
<xsd:sequence>
175175
<xsd:element name="header" type="xsd:string" minOccurs="0" />
176176
<xsd:element name="description" type="descriptionType" minOccurs="0" />
177-
<xsd:element name="memberdef" type="memberdefType" minOccurs="0" maxOccurs="unbounded" />
178-
<xsd:element name="member" type="MemberType" minOccurs="0" maxOccurs="unbounded" />
177+
<xsd:choice maxOccurs="unbounded">
178+
<xsd:element name="memberdef" type="memberdefType" minOccurs="0" maxOccurs="unbounded" />
179+
<xsd:element name="member" type="MemberType" minOccurs="0" maxOccurs="unbounded" />
180+
</xsd:choice>
179181
</xsd:sequence>
180182
<xsd:attribute name="kind" type="DoxSectionKind" />
181183
</xsd:complexType>

0 commit comments

Comments
 (0)