-
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: Interaction between XInclude and <?xml-model> PI
Fixes redhat-developer/vscode-xml#1021 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
1063ef0
commit d3a1235
Showing
9 changed files
with
70 additions
and
1 deletion.
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
1 change: 1 addition & 0 deletions
1
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/book.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 @@ | ||
<book></book> |
3 changes: 3 additions & 0 deletions
3
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/chapter.rnc
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,3 @@ | ||
include "common.rnc" | ||
|
||
start = chapter |
5 changes: 5 additions & 0 deletions
5
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/chapter1.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"?> | ||
<?xml-model href="chapter.rnc"?> | ||
<chapter> | ||
<title>Chapter</title> | ||
</chapter> |
5 changes: 5 additions & 0 deletions
5
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/chapter2.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"?> | ||
<?xml-model href="chapter.rnc"?> | ||
<chapter> | ||
<title>Chapter</title> | ||
</chapter> |
12 changes: 12 additions & 0 deletions
12
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/common.rnc
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 @@ | ||
namespace xml = "http://www.w3.org/XML/1998/namespace" | ||
|
||
base = attribute xml:base { text } | ||
|
||
chapter = element chapter { | ||
element title { text } | ||
& base? | ||
} | ||
|
||
document = element document { | ||
chapter+ | ||
} |
3 changes: 3 additions & 0 deletions
3
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/document.rnc
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,3 @@ | ||
include "common.rnc" | ||
|
||
start = document |
6 changes: 6 additions & 0 deletions
6
org.eclipse.lemminx/src/test/resources/relaxng/xinclude-chapter/document.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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="document.rnc"?> | ||
<document xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<xi:include href="chapter1.xml"/> | ||
<xi:include href="chapter2.xml"/> | ||
</document> |