-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate XML Schema with Xerces XSD validator. See #190
Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
f549ca7
commit fe3f9bc
Showing
14 changed files
with
208 additions
and
52 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
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
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.lsp4xml/src/test/resources/validation/schema/s4s_att_invalid_value.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,5 @@ | ||
<?xml version="1.1"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:element name=""></xs:element> | ||
</xs:schema> |
5 changes: 5 additions & 0 deletions
5
org.eclipse.lsp4xml/src/test/resources/validation/schema/s4s_att_must_appear.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,5 @@ | ||
<?xml version="1.1"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:element></xs:element> | ||
</xs:schema> |
5 changes: 5 additions & 0 deletions
5
org.eclipse.lsp4xml/src/test/resources/validation/schema/s4s_att_not_allowed.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,5 @@ | ||
<?xml version="1.1"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:element foo="bar"></xs:element> | ||
</xs:schema> |
5 changes: 5 additions & 0 deletions
5
org.eclipse.lsp4xml/src/test/resources/validation/schema/s4s_elt_character.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,5 @@ | ||
<?xml version="1.1"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:element name="foo">bar</xs:element> | ||
</xs:schema> |
5 changes: 5 additions & 0 deletions
5
org.eclipse.lsp4xml/src/test/resources/validation/schema/s4s_elt_invalid_content_1.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,5 @@ | ||
<?xml version="1.1"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<foo></foo> | ||
</xs:schema> |
12 changes: 12 additions & 0 deletions
12
org.eclipse.lsp4xml/src/test/resources/validation/schema/src-resolve.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,12 @@ | ||
<?xml version="1.1"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:element name="A"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="A.1" type="xs:string" /> | ||
<xs:element name="A.2" type="XXXXX" /> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
16 changes: 16 additions & 0 deletions
16
org.eclipse.lsp4xml/src/test/resources/validation/schema/src-resolve2.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,16 @@ | ||
<?xml version="1.1" ?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
|
||
<xs:simpleType name="carType"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="Audi" /> | ||
<xs:enumeration value="Golf" /> | ||
<xs:enumeration value="BMW" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
<xs:element name="car" type="carType" /> | ||
<xs:element name="foo" type="fooType" /> | ||
|
||
</xs:schema> |