forked from eclipse/lemminx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix completion & hover based on XSD with
elementFormDefault="unqualified" See redhat-developer/vscode-xml#311 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
1e3f131
commit 32b05d8
Showing
4 changed files
with
69 additions
and
11 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
8 changes: 8 additions & 0 deletions
8
org.eclipse.lemminx/src/test/resources/xml/foo-unqualified.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,8 @@ | ||
<f:foo xmlns:f="http://foo" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://foo ../xsd/foo-unqualified.xsd"> | ||
<bar> | ||
<item></item> | ||
</bar> | ||
</f:foo> |
19 changes: 19 additions & 0 deletions
19
org.eclipse.lemminx/src/test/resources/xsd/foo-unqualified.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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema elementFormDefault="unqualified" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="http://foo"> | ||
<xs:element name="foo"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="bar"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="item"> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |