| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- This test doesn't test anything in particular. But it is an example of a |
| somewhat complicated setup. --> |
| <xit:myRoot xmlns:xit="http://www.schemaTest.org/xinclude-test" |
| xmlns:xi="http://www.w3.org/2001/XInclude" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://www.schemaTest.org/xinclude-test tests.xsd"> |
| <xi:include xmlns:test01="http://www.test.org/test02" href="../included/invalid.xml"> |
| <!-- comment --> |
| <xi:fallback xmlns:test02="http://www.test.org/test02"> |
| <xi:include href="../included/invalid.xml"> |
| <invalid1 xmlns:test03="http://www.test.org/test03"> |
| <invalid2> |
| </invalid2> |
| </invalid1> |
| <xi:fallback xmlns:test02="http://www.test.org/TEST02"> |
| <child1 name="kid1"><desc>Text1</desc></child1> |
| </xi:fallback> |
| </xi:include> |
| </xi:fallback> |
| </xi:include> |
| <xi:include href="../included/invalid.xml"> |
| <xi:fallback> |
| <child2 name="kid2"><desc>Text2</desc></child2> |
| </xi:fallback> |
| </xi:include> |
| |
| <!-- this tests a valid include --> |
| <xi:include href="../included/include01.xml" parse="xml"> |
| <xi:fallback> |
| <!-- this should be ignored --> |
| <child2>Text2</child2> |
| </xi:fallback> |
| </xi:include> |
| |
| <!-- this tests that idrefs still work when an ID from an included file is used --> |
| <select name="kid3"/> |
| |
| <!-- this tests when an included file has a DTD, but the base file doesn't --> |
| <xi:include href="../included/unparsed.xml"><xi:fallback/></xi:include> |
| </xit:myRoot> |