Skip to content

Commit 0f63b25

Browse files
mavegaartmavegaart
mavegaart
authored and
mavegaart
committed
https://github.com/mybatis/mybatis-3/issues/2541
1 parent 8c5474b commit 0f63b25

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extends CDATA #IMPLIED
6161
autoMapping (true|false) #IMPLIED
6262
>
6363

64-
<!ELEMENT constructor (idArg*,arg*)>
64+
<!ELEMENT constructor ((idArg|arg)*)>
6565

6666
<!ELEMENT id EMPTY>
6767
<!ATTLIST id

src/main/java/org/apache/ibatis/builder/xml/mybatis-mapper.xsd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108
</xs:element>
109109
<xs:element name="constructor">
110110
<xs:complexType>
111-
<xs:sequence>
112-
<xs:element minOccurs="0" maxOccurs="unbounded" ref="idArg"/>
113-
<xs:element minOccurs="0" maxOccurs="unbounded" ref="arg"/>
114-
</xs:sequence>
111+
<xs:choice minOccurs="0" maxOccurs="unbounded">
112+
<xs:element ref="idArg"/>
113+
<xs:element ref="arg"/>
114+
</xs:choice>
115115
</xs:complexType>
116116
</xs:element>
117117
<xs:element name="id">

0 commit comments

Comments
 (0)