-
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 #86 from jokokko/namecollisions
If member names collide (e.g. attributes with the same names but from…
- Loading branch information
Showing
5 changed files
with
57 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:a="http://none.local/a" xmlns:b="http://none.local/b" elementFormDefault="qualified" targetNamespace="http://none.local/a"> | ||
<import namespace="http://none.local/b" schemaLocation="sameattributenames_import.xsd" /> | ||
<element name="document" type="a:elem" /> | ||
<element name="document2" type="a:elem2" /> | ||
<complexType name="elem"> | ||
<sequence> | ||
<element name="Type" type="a:elem2" /> | ||
</sequence> | ||
<attribute ref="b:type" /> | ||
<attribute name="type" type="string" /> | ||
</complexType> | ||
<complexType name="elem2"> | ||
<attribute name="type" type="string" /> | ||
</complexType> | ||
</schema> |
10 changes: 10 additions & 0 deletions
10
XmlSchemaClassGenerator.Tests/xml/sameattributenames_import.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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://none.local/b" xmlns:b="http://none.local/b"> | ||
<xs:attribute name="type" type="b:typeType"/> | ||
<xs:simpleType name="typeType"> | ||
<xs:restriction base="xs:token"> | ||
<xs:enumeration value="a"/> | ||
<xs:enumeration value="b"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</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