summaryrefslogtreecommitdiff
path: root/xml/tests/testData/completion
diff options
context:
space:
mode:
Diffstat (limited to 'xml/tests/testData/completion')
-rw-r--r--xml/tests/testData/completion/Substitute/schema-a.xsd18
-rw-r--r--xml/tests/testData/completion/Substitute/schema-b.xsd17
-rw-r--r--xml/tests/testData/completion/Substitute/test.xml7
3 files changed, 42 insertions, 0 deletions
diff --git a/xml/tests/testData/completion/Substitute/schema-a.xsd b/xml/tests/testData/completion/Substitute/schema-a.xsd
new file mode 100644
index 000000000000..d359cf02280b
--- /dev/null
+++ b/xml/tests/testData/completion/Substitute/schema-a.xsd
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:a="http://test/a"
+ targetNamespace="http://test/a">
+
+ <xsd:complexType name="abstractType">
+ <xsd:attribute name="id" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="Root">
+ <xsd:sequence>
+ <xsd:element ref="a:instance" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="instance" type="a:abstractType"/>
+ <xsd:element name="root" type="a:Root"/>
+</xsd:schema> \ No newline at end of file
diff --git a/xml/tests/testData/completion/Substitute/schema-b.xsd b/xml/tests/testData/completion/Substitute/schema-b.xsd
new file mode 100644
index 000000000000..4581f360c571
--- /dev/null
+++ b/xml/tests/testData/completion/Substitute/schema-b.xsd
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:b="http://test/b"
+ xmlns:a="http://test/a"
+ targetNamespace="http://test/b">
+ <xsd:import namespace="http://test/a"/>
+
+ <xsd:complexType name="subType">
+ <xsd:complexContent>
+ <xsd:restriction base="a:abstractType">
+ <xsd:attribute name="id" type="xsd:string" use="required"/>
+ </xsd:restriction>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:element name="instance" type="b:subType" substitutionGroup="a:instance"/>
+</xsd:schema> \ No newline at end of file
diff --git a/xml/tests/testData/completion/Substitute/test.xml b/xml/tests/testData/completion/Substitute/test.xml
new file mode 100644
index 000000000000..0f6d6eb1a01c
--- /dev/null
+++ b/xml/tests/testData/completion/Substitute/test.xml
@@ -0,0 +1,7 @@
+<root xmlns="http://test/a"
+ xmlns:b="http://test/b"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://test/b schema-b.xsd">
+
+ <<caret>
+</root> \ No newline at end of file