-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error range for cvc-datatype-valid.1.2.3
Fixes #864 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
d2d5bb7
commit 11478ef
Showing
4 changed files
with
50 additions
and
17 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
5 changes: 5 additions & 0 deletions
5
org.eclipse.lemminx/src/test/resources/validation/schema/cvc-datatype-valid.1.2.3.xml
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<dresssize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../xsd/dressSize.xsd"> | ||
XXX | ||
</dresssize> |
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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
|
||
<xs:simpleType name="SizeType"> | ||
<xs:union memberTypes="DressSizeType"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:token"> | ||
<xs:enumeration value="small" /> | ||
<xs:enumeration value="medium" /> | ||
<xs:enumeration value="large" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:union> | ||
</xs:simpleType> | ||
<xs:simpleType name="DressSizeType"> | ||
<xs:restriction base="xs:integer"> | ||
<xs:minInclusive value="2" /> | ||
<xs:maxInclusive value="18" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
<xs:element name="dresssize" type="SizeType" /> | ||
|
||
</xs:schema> |