Skip to content

Commit 321fe70

Browse files
committed
move test resources
git-svn-id: http://svn.code.sf.net/p/xmlunit/code/trunk/xmlunit@297 458802cb-8328-0410-b1d9-a76001e3bb52
0 parents  commit 321fe70

18 files changed

+919
-0
lines changed

Book.rng

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<element name="Book" ns="http://www.publishing.org"
3+
xmlns="http://relaxng.org/ns/structure/1.0">
4+
<element name="Title"><text/></element>
5+
<oneOrMore>
6+
<element name="Author"><text/></element>
7+
</oneOrMore>
8+
<element name="Date"><text/></element>
9+
<element name="ISBN"><text/></element>
10+
<element name="Publisher"><text/></element>
11+
</element>

Book.rngc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace b = "http://www.publishing.org"
2+
3+
element b:Book {
4+
element b:Title { text },
5+
element b:Author { text }+,
6+
element b:Date { text },
7+
element b:ISBN { text },
8+
element b:Publisher { text }
9+
}

Book.xsd

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3+
targetNamespace="http://www.publishing.org"
4+
xmlns="http://www.publishing.org"
5+
version="1.0"
6+
elementFormDefault="qualified">
7+
8+
<xsd:element name="Book" type="BookType"/>
9+
10+
<xsd:complexType name="BookType">
11+
<xsd:sequence>
12+
<xsd:element name="Title" type="xsd:string" minOccurs="1" maxOccurs="1"/>
13+
<xsd:element name="Author" type="xsd:string" minOccurs="1" maxOccurs="unbounded"/>
14+
<xsd:element name="Date" type="xsd:string" minOccurs="1" maxOccurs="1"/>
15+
<xsd:element name="ISBN" type="xsd:string" minOccurs="1" maxOccurs="1"/>
16+
<xsd:element name="Publisher" type="xsd:string" minOccurs="1" maxOccurs="1"/>
17+
</xsd:sequence>
18+
</xsd:complexType>
19+
</xsd:schema>
20+

BookXsdGenerated.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Book xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns="http://www.publishing.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.publishing.org src/tests/resources/Book.xsd">
3+
<Title>Chicken Soup for the Soul</Title>
4+
<Author>Jack Canfield</Author>
5+
<Author>Mark Victor Hansen</Author>
6+
<Date>1993</Date>
7+
<ISBN>1-55874-262-X</ISBN>
8+
<Publisher>Health Communications, Inc.</Publisher>
9+
</Book>

BookXsdGeneratedNoSchema.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Book xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns="http://www.publishing.org">
3+
<Title>Chicken Soup for the Soul</Title>
4+
<Author>Jack Canfield</Author>
5+
<Author>Mark Victor Hansen</Author>
6+
<Date>1993</Date>
7+
<ISBN>1-55874-262-X</ISBN>
8+
<Publisher>Health Communications, Inc.</Publisher>
9+
</Book>

InvalidBookXsdGeneratedNoSchema.xml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Book xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns="http://www.publishing.org">
3+
<Title>Chicken Soup for the Soul</Title>
4+
<Author>Jack Canfield</Author>
5+
<Author>Mark Victor Hansen</Author>
6+
<Date>1993</Date>
7+
<ISBN>1-55874-262-X</ISBN>
8+
<goat>Billy</goat>
9+
<Publisher>Health Communications, Inc.</Publisher>
10+
</Book>

animal.xsl

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3+
<xsl:output method="xml" version="1.0" encoding="UTF-8"/>
4+
5+
<xsl:template match="animal">
6+
<xsl:param name="whatAnimal"><xsl:value-of select="."/></xsl:param>
7+
<xsl:element name="{$whatAnimal}"/>
8+
</xsl:template>
9+
10+
</xsl:stylesheet>

broken.xsd

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3+
targetNamespace="http://www.publishing.org"
4+
xmlns="http://www.publishing.org"
5+
version="1.0"
6+
elementFormDefault="qualified">
7+
8+
<xsd:element name="Book" type="BookType"/>
9+
10+
<xsd:complexType name="BookType">
11+
<xsd:element name="Title" type="xsd:string" minOccurs="1" maxOccurs="1"/>
12+
<xsd:element name="Author" type="xsd:string" minOccurs="1" maxOccurs="unbounded"/>
13+
<xsd:element name="Date" type="xsd:string" minOccurs="1" maxOccurs="1"/>
14+
<xsd:element name="ISBN" type="xsd:string" minOccurs="1" maxOccurs="1"/>
15+
</xsd:complexType>
16+
</xsd:schema>
17+

controlDetail.xml

+309
Large diffs are not rendered by default.

controlNamespaces.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<openSource xmlns="http://xmlunit.sourceforge.net/tests"
3+
xmlns:ju="http://www.junit.org"
4+
xmlns:ec="http://www.eclipse.org"
5+
xmlns:ja="http://jakarta.apache.org">
6+
<tool ju:version="3.8.1">jUnit</tool>
7+
<tool ec:version="2.1">eclipse</tool>
8+
<tool ja:version="1.5.1">ant</tool>
9+
<tool ja:version="2.4">xalan</tool>
10+
<tool ja:version="2.0.1">xerces</tool>
11+
</openSource>

invalidBook.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Book xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
3+
xmlns="http://www.publishing.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.publishing.org tests/etc/Book.xsd">
4+
<Title>Chicken Soup for the Soul</Title>
5+
<Author>Jack Canfield</Author>
6+
<Author>Mark Victor Hansen</Author>
7+
<Date>1993</Date>
8+
<ISBN>1-55874-262-X</ISBN>
9+
</Book>

test.blame.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<html>
2+
<head>
3+
<title>Don't blame it on the...</title>
4+
</head>
5+
<body>
6+
<ul>
7+
<li>sunshine</li>
8+
<li>moonlight</li>
9+
<li>good times</li>
10+
<li>boogie...?</li>
11+
</ul>
12+
</body>
13+
</html>

test.dtd

Whitespace-only changes.

test1.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet type="text/xsl" href="animal.xsl" ?>
3+
<animal>
4+
<furry>rabbit</furry>
5+
</animal>

test2.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet href="animal.xsl" type="text/xsl"?>
3+
<animal>
4+
<hairy>caterpillar</hairy>
5+
</animal>

testAnimal.xml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet href="animal.xsl" type="text/xsl"?>
3+
<animal><shaggy>dog</shaggy></animal>

0 commit comments

Comments
 (0)