1
1
mirror of https://github.com/dgis/xsddiagram.git synced 2024-08-16 14:00:40 +03:00

Fix the bad case sensitivity to reference the elements (#15).

This commit is contained in:
dgis 2017-08-24 11:29:10 +02:00
parent cd3a6a5ac1
commit 0ea4e6e87d
6 changed files with 43 additions and 5 deletions

View File

@ -111,6 +111,7 @@ NOTES:
TODO LIST: 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). - 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.). - Show/hide group elements in the settings (Mario M.).
- Font look blurry on Windows, add default font size 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: CHANGES:
version 1.2alpha (2017-02-??) version 1.2alpha (2017-09-??)
- Add infer XSD from XML menu. - Add infer XSD from XML menu.
- Fix a null reference exception in the documentation (Thanks Mario M.). - Fix a null reference exception in the documentation (Thanks Mario M.).
- Add the namespace in the command line option -r (Thanks Kevin). - 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). - 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). - 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. - 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) version 1.1 (2016-07-08)
- Fix SVG page size. - Fix SVG page size.
@ -268,7 +270,7 @@ version 0.1 (2006-09-14)
LICENSE: 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 This program is free software and may be distributed
according to the terms of the GNU General Public License (GPL). according to the terms of the GNU General Public License (GPL).

View 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>

Binary file not shown.

Binary file not shown.

View File

@ -25,8 +25,8 @@ namespace XSDDiagram
private static XmlSerializer schemaSerializer = new XmlSerializer(typeof(XMLSchema.schema)); private static XmlSerializer schemaSerializer = new XmlSerializer(typeof(XMLSchema.schema));
private List<XSDObject> elements = new List<XSDObject>(); private List<XSDObject> elements = new List<XSDObject>();
private Dictionary<string, XSDObject> hashtableElementsByName = new Dictionary<string, XSDObject>(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 Dictionary<string, object> hashtableAttributesByName = new Dictionary<string, object>(); // StringComparer.OrdinalIgnoreCase);
private XSDObject firstElement = null; private XSDObject firstElement = null;
private List<string> loadError = new List<string>(); private List<string> loadError = new List<string>();
private List<string> listOfXsdFilename = new List<string>(); private List<string> listOfXsdFilename = new List<string>();

View File

@ -57,7 +57,7 @@ namespace XSDDiagram.Rendering
_alignement = DiagramAlignement.Center; _alignement = DiagramAlignement.Center;
_rootElements = new List<DiagramItem>(); _rootElements = new List<DiagramItem>();
_selectedElement = null; _selectedElement = null;
_elementsByName = new Dictionary<string, XSDObject>(StringComparer.OrdinalIgnoreCase); _elementsByName = new Dictionary<string, XSDObject>(); // StringComparer.OrdinalIgnoreCase);
} }
#endregion #endregion