-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #284 from gureedo/master
any attribute is not rendered if complex type extends other complex type
- Loading branch information
Showing
9 changed files
with
173 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<xs:schema id="default" | ||
targetNamespace="http://tempuri.org/default.xsd" | ||
elementFormDefault="qualified" | ||
xmlns="http://tempuri.org/default.xsd" | ||
xmlns:mstns="http://tempuri.org/default.xsd" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
> | ||
<xs:complexType name="AnyTest_ExtendedString"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:anyAttribute namespace="##any" processContents="lax"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="AnyTest_Type"> | ||
<xs:sequence/> | ||
<xs:anyAttribute namespace="##any" processContents="lax"/> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="AnyTest_ExtendedTypeWithAnyAttr"> | ||
<xs:complexContent> | ||
<xs:extension base="AnyTest_Type"> | ||
<xs:anyAttribute namespace="##any" processContents="lax"/> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="AnyTest_ExtendedTypeWithoutAnyAttr"> | ||
<xs:complexContent> | ||
<xs:extension base="AnyTest_Type" /> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
29 changes: 29 additions & 0 deletions
29
XmlSchemaClassGenerator.Tests/xsd/simple/fields_ambiguity.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<xs:schema id="default" | ||
targetNamespace="http://tempuri.org/default.xsd" | ||
elementFormDefault="qualified" | ||
xmlns="http://tempuri.org/default.xsd" | ||
xmlns:mstns="http://tempuri.org/default.xsd" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
> | ||
<xs:complexType name="AmbiguityTest_Type"> | ||
<xs:sequence> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element name="Property"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="Value" type="AmbiguityTest_NestedType" minOccurs="0" maxOccurs="unbounded" /> | ||
</xs:sequence> | ||
<xs:attribute name="value" type="xs:string" use="optional" default="" /> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:choice> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="AmbiguityTest_NestedType"> | ||
<xs:attribute name="NestedItem" type="xs:string" use="required" /> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<xs:schema id="default" | ||
targetNamespace="http://tempuri.org/default.xsd" | ||
elementFormDefault="qualified" | ||
xmlns="http://tempuri.org/default.xsd" | ||
xmlns:mstns="http://tempuri.org/default.xsd" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
> | ||
|
||
<xs:complexType name="NestedTest_NestedType"> | ||
<xs:sequence> | ||
<xs:element name="TestField" type="xs:string" /> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="NestedTest_Type"> | ||
<xs:sequence> | ||
<xs:element name="TestField" type="NestedTest_NestedType" minOccurs="0" maxOccurs="1" /> | ||
<xs:element name="TestCollectionField" type="NestedTest_NestedType" minOccurs="0" maxOccurs="unbounded" /> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters