mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-07-14 22:00:33 +03:00
Fix the bad case sensitivity to reference the elements (#15).
This commit is contained in:
parent
cd3a6a5ac1
commit
0ea4e6e87d
@ -111,6 +111,7 @@ NOTES:
|
||||
|
||||
TODO LIST:
|
||||
|
||||
- Add redefine (for external schema) and restrictions.
|
||||
- Add an icon "Go to Diagram" on tool bar, to help working with lot of includes (Majo).
|
||||
- Show/hide group elements in the settings (Mario M.).
|
||||
- Font look blurry on Windows, add default font size in the settings (Mario M.).
|
||||
@ -137,7 +138,7 @@ TODO LIST:
|
||||
|
||||
CHANGES:
|
||||
|
||||
version 1.2alpha (2017-02-??)
|
||||
version 1.2alpha (2017-09-??)
|
||||
- Add infer XSD from XML menu.
|
||||
- Fix a null reference exception in the documentation (Thanks Mario M.).
|
||||
- Add the namespace in the command line option -r (Thanks Kevin).
|
||||
@ -145,6 +146,7 @@ version 1.2alpha (2017-02-??)
|
||||
- Add multi-(language) documentation (https://github.com/dgis/xsddiagram/issues/8).
|
||||
- Fix the URL escaping in the import (https://github.com/dgis/xsddiagram/issues/11).
|
||||
- Add the attributes of an element with the option -a for text output only.
|
||||
- Fix bad case sensitivity to reference the elements (https://github.com/dgis/xsddiagram/issues/15).
|
||||
|
||||
version 1.1 (2016-07-08)
|
||||
- Fix SVG page size.
|
||||
@ -268,7 +270,7 @@ version 0.1 (2006-09-14)
|
||||
|
||||
LICENSE:
|
||||
|
||||
Copyright (c) 2006-2016 Regis COSNIER, All Rights Reserved.
|
||||
Copyright (c) 2006-2017 Regis COSNIER, All Rights Reserved.
|
||||
|
||||
This program is free software and may be distributed
|
||||
according to the terms of the GNU General Public License (GPL).
|
||||
|
36
Tests/issues/15/domicoudin.xsd
Normal file
36
Tests/issues/15/domicoudin.xsd
Normal file
@ -0,0 +1,36 @@
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
<xs:element name="x">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="a"/>
|
||||
<xs:element ref="b"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="a">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="b">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="A"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="A">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="c"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="c">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
BIN
XSDDiagram.exe
BIN
XSDDiagram.exe
Binary file not shown.
Binary file not shown.
@ -25,8 +25,8 @@ namespace XSDDiagram
|
||||
private static XmlSerializer schemaSerializer = new XmlSerializer(typeof(XMLSchema.schema));
|
||||
|
||||
private List<XSDObject> elements = new List<XSDObject>();
|
||||
private Dictionary<string, XSDObject> hashtableElementsByName = new Dictionary<string, XSDObject>(StringComparer.OrdinalIgnoreCase);
|
||||
private Dictionary<string, object> hashtableAttributesByName = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
|
||||
private Dictionary<string, XSDObject> hashtableElementsByName = new Dictionary<string, XSDObject>(); // StringComparer.OrdinalIgnoreCase);
|
||||
private Dictionary<string, object> hashtableAttributesByName = new Dictionary<string, object>(); // StringComparer.OrdinalIgnoreCase);
|
||||
private XSDObject firstElement = null;
|
||||
private List<string> loadError = new List<string>();
|
||||
private List<string> listOfXsdFilename = new List<string>();
|
||||
|
@ -57,7 +57,7 @@ namespace XSDDiagram.Rendering
|
||||
_alignement = DiagramAlignement.Center;
|
||||
_rootElements = new List<DiagramItem>();
|
||||
_selectedElement = null;
|
||||
_elementsByName = new Dictionary<string, XSDObject>(StringComparer.OrdinalIgnoreCase);
|
||||
_elementsByName = new Dictionary<string, XSDObject>(); // StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user