diff --git a/ReadMe.txt b/ReadMe.txt index 5816e31..f537784 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -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). diff --git a/Tests/issues/15/domicoudin.xsd b/Tests/issues/15/domicoudin.xsd new file mode 100644 index 0000000..0ffb331 --- /dev/null +++ b/Tests/issues/15/domicoudin.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/XSDDiagram.exe b/XSDDiagram.exe index 5fc2e2c..36cbb36 100644 Binary files a/XSDDiagram.exe and b/XSDDiagram.exe differ diff --git a/XSDDiagramConsole.exe b/XSDDiagramConsole.exe index f5b987a..5145042 100644 Binary files a/XSDDiagramConsole.exe and b/XSDDiagramConsole.exe differ diff --git a/XSDDiagrams/Parsing/Schema.cs b/XSDDiagrams/Parsing/Schema.cs index 025e9c9..35d39a6 100644 --- a/XSDDiagrams/Parsing/Schema.cs +++ b/XSDDiagrams/Parsing/Schema.cs @@ -25,8 +25,8 @@ namespace XSDDiagram private static XmlSerializer schemaSerializer = new XmlSerializer(typeof(XMLSchema.schema)); private List elements = new List(); - private Dictionary hashtableElementsByName = new Dictionary(StringComparer.OrdinalIgnoreCase); - private Dictionary hashtableAttributesByName = new Dictionary(StringComparer.OrdinalIgnoreCase); + private Dictionary hashtableElementsByName = new Dictionary(); // StringComparer.OrdinalIgnoreCase); + private Dictionary hashtableAttributesByName = new Dictionary(); // StringComparer.OrdinalIgnoreCase); private XSDObject firstElement = null; private List loadError = new List(); private List listOfXsdFilename = new List(); diff --git a/XSDDiagrams/Rendering/Diagram.cs b/XSDDiagrams/Rendering/Diagram.cs index c6b6707..2ee1053 100644 --- a/XSDDiagrams/Rendering/Diagram.cs +++ b/XSDDiagrams/Rendering/Diagram.cs @@ -57,7 +57,7 @@ namespace XSDDiagram.Rendering _alignement = DiagramAlignement.Center; _rootElements = new List(); _selectedElement = null; - _elementsByName = new Dictionary(StringComparer.OrdinalIgnoreCase); + _elementsByName = new Dictionary(); // StringComparer.OrdinalIgnoreCase); } #endregion