You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2003/09/29 19:32:27 UTC

cvs commit: xml-xerces/java/tests/xinclude/output test13.txt test10.xml test30.xml test17.xml test37.xml test05.xml test01.xml test33.xml test24.txt test21.xml test12.txt test41.xml test32.txt test08.xml test28.xml test40.txt test39.txt test16.xml test07.txt test36.xml test04.xml test20.xml test11.txt test19.xml test27.xml test18.txt test15.xml test03.xml test35.xml test26.txt test14.txt test23.xml test22.txt test31.xml test09.txt test38.xml test06.xml test29.txt test34.xml test25.txt test02.xml

mrglavas    2003/09/29 10:32:27

  Added:       java/tests/xinclude/output test13.txt test10.xml test30.xml
                        test17.xml test37.xml test05.xml test01.xml
                        test33.xml test24.txt test21.xml test12.txt
                        test41.xml test32.txt test08.xml test28.xml
                        test40.txt test39.txt test16.xml test07.txt
                        test36.xml test04.xml test20.xml test11.txt
                        test19.xml test27.xml test18.txt test15.xml
                        test03.xml test35.xml test26.txt test14.txt
                        test23.xml test22.txt test31.xml test09.txt
                        test38.xml test06.xml test29.txt test34.xml
                        test25.txt test02.xml
  Log:
  Expected output from XInclude test harness. Submitted by Peter McCracken.
  
  Revision  Changes    Path
  1.1                  xml-xerces/java/tests/xinclude/output/test13.txt
  
  Index: test13.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that other elements from xi namespace are not allowed when include is successful -->
     <!-- EXPECT FAILURE -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>[Fatal Error] test13.xml:10:19: Elements from namespace 'http://www.w3.org/2001/XInclude', other than 'fallback', are not allowed to be children of 'include' elements.  However, 'xi:other' was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test10.xml
  
  Index: test10.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that a fallback is used when the include is unsuccessful -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test30.xml
  
  Index: test30.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- including document with non-conflicting unparsed entity -->
     <elem foo="ximage"/>
     <elem foo="image" xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/ue.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test17.xml
  
  Index: test17.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test that empty fallback is valid -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test37.xml
  
  Index: test37.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- using xml:base on include element to move to the included directory -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test05.xml
  
  Index: test05.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that parse="text" works -->
     blah blah blah
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test01.xml
  
  Index: test01.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 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">
  	[Warning] test01.xml:8:87: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  
  			[Warning] test01.xml:11:47: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  
  					<child1 name="kid1" xmlns:test01="http://www.test.org/test02" xmlns:test02="http://www.test.org/TEST02"><desc>Text1</desc></child1>
  				
  		
  	[Warning] test01.xml:22:45: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  
  			<child2 name="kid2"><desc>Text2</desc></child2>
  		
  	
  	<!-- this tests a valid include -->
  	<!-- tests that files included from other directories work -->[Warning] include09.xml:3:69: Include operation failed, reverting to fallback. Resource error reading file as XML (href='invalid.xml'). Reason: tests\xinclude\included\dir\invalid.xml (The system cannot find the file specified)
  <child3 xmlns="" name="kid3" xml:base="../included/dir/include09.xml"><desc>Text3</desc></child3>
  	
  	<!-- 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 -->
  	<view sun="image" xml:base="../included/unparsed.xml"/>
  </xit:myRoot>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test33.xml
  
  Index: test33.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- including document with a DTD, and unparsed entities and notations,
          when the root document doesn't have one -->
     <elem foo="image" xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/ue.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test24.txt
  
  Index: test24.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test that including the same document fails -->
     <!-- EXPECT FAILURE -->
     [Fatal Error] test24.xml:1:1: Recursive include detected.  Document 'tests/xinclude/tests/test24.xml' was already processed.
  [Fatal Error] test24.xml:9:35: Error attempting to parse XML file (href='test24.xml').
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test21.xml
  
  Index: test21.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test including file with different MIME-type as text -->
     &lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;elem xmlns=&quot;http://www.schemaTest.org/xinclude-test&quot;/&gt;
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test12.txt
  
  Index: test12.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that 2 fallbacks cause a failure when the include is unsuccessful -->
     <!-- EXPECT FAILURE -->
     [Warning] test12.xml:9:47: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  [Fatal Error] test12.xml:11:22: The [children] of an 'include' element cannot contain more than one 'fallback' element.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test41.xml
  
  Index: test41.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- final included element specifies an xml:base attribute, which will be
          overwritten by the new xml:base attribute -->
     <!-- redundant path structure --><elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/dir/"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test32.txt
  
  Index: test32.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test including document with conflicting unparsed entity -->
     <!-- Note: this actually fails because of the conflicting notation; I'm not
          sure how to make a conflicting unparsed entity without having a conflicting
          notation -->
     <!-- EXPECT FAILURE -->
     <elem foo="image"/>
     [Fatal Error] ue2.xml:12:56: Multiple notations were used which had the name 'jpg', but which were not determined to be duplicates.
  [Fatal Error] test32.xml:14:44: Error attempting to parse XML file (href='../included/ue2.xml').
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test08.xml
  
  Index: test08.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that 0 fallbacks is not a failure when the include is successful -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test28.xml
  
  Index: test28.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <elem bar="jpg"/>
     <!-- test including a document with a duplicate notation -->
     <elem bar="jpg" xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/not.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test40.txt
  
  Index: test40.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- using xml:base on include element to move to wrong directory -->
     <!-- EXPECT FAILURE -->
     [Warning] test40.xml:10:45: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/elem.xml'). Reason: tests\included\elem.xml (The system cannot find the path specified)
  [Fatal Error] test40.xml:10:45: An 'include' failed, and no 'fallback' element was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test39.txt
  
  Index: test39.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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" xml:base="../">
     <!-- using xml:base on both parent element to move to wrong directory -->
     <!-- EXPECT FAILURE -->
     [Warning] test39.xml:10:45: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/elem.xml'). Reason: tests\included\elem.xml (The system cannot find the path specified)
  [Fatal Error] test39.xml:10:45: An 'include' failed, and no 'fallback' element was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test16.xml
  
  Index: test16.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- included file includes another file -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test07.txt
  
  Index: test07.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that values for parse other than "xml" or "text" are invalid -->
     <!-- EXPECT FAILURE -->
     [Fatal Error] test07.xml:9:45: Invalid value for 'parse' attribute on 'include' element: 'xxx'.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test36.xml
  
  Index: test36.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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/tests.xsd" xml:base="../included/">
     <!-- using xml:base on parent element to move to the included directory -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test04.xml
  
  Index: test04.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- thats that parse="xml" works -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test20.xml
  
  Index: test20.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test including file with different MIME-type as XML -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.jpg"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test11.txt
  
  Index: test11.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that 2 fallbacks cause a failure when the include is successful -->
     <!-- EXPECT FAILURE -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>[Fatal Error] test11.xml:11:22: The [children] of an 'include' element cannot contain more than one 'fallback' element.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test19.xml
  
  Index: test19.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test including XML as text -->
     &lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;elem xmlns=&quot;http://www.schemaTest.org/xinclude-test&quot;/&gt;
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test27.xml
  
  Index: test27.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <elem bar="xjpg"/>
     <!-- test including a document with a non-conflicting notation -->
     <elem bar="jpg" xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/not.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test18.txt
  
  Index: test18.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that fallback must be child of include -->
     <!-- EXPECT FAILURE -->
     [Fatal Error] test18.xml:8:18: A 'fallback' element was found that did not have 'include' as the parent.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test15.xml
  
  Index: test15.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test that parser can be reused -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test03.xml
  
  Index: test03.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that attributes from the XInclude namespace are ignored -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test35.xml
  
  Index: test35.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- using xml:base on include element to move back a directory -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test26.txt
  
  Index: test26.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test including a resource that isn't there, when parse="text" -->
     <!-- EXPECT FAILURE -->
     [Warning] test26.xml:9:48: Include operation failed, reverting to fallback. Resource error reading file as text (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  [Fatal Error] test26.xml:9:48: An 'include' failed, and no 'fallback' element was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test14.txt
  
  Index: test14.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that other elements from xi namespace are not allowed when include is not successful -->
     <!-- EXPECT FAILURE -->
     [Warning] test14.xml:9:47: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  [Fatal Error] test14.xml:10:19: Elements from namespace 'http://www.w3.org/2001/XInclude', other than 'fallback', are not allowed to be children of 'include' elements.  However, 'xi:other' was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test23.xml
  
  Index: test23.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- including the same document, but as text -->
     &lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;x xmlns=&quot;http://www.schemaTest.org/xinclude-test&quot;
     xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot;
     xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
     xsi:schemaLocation=&quot;http://www.schemaTest.org/xinclude-test tests.xsd&quot;&gt;
     &lt;!-- test that including the same document fails --&gt;
     &lt;!-- EXPECT FAILURE --&gt;
     &lt;xi:include parse=&quot;xml&quot;
                 href=&quot;test24.xml&quot;/&gt;
  &lt;/x&gt;
  
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test22.txt
  
  Index: test22.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- include not well formed XML -->
     <!-- EXPECT FAILURE -->
     [Fatal Error] not-well-formed.xml:1:10: Attribute name "is" associated with an element type "this" must be followed by the ' = ' character.
  [Fatal Error] test22.xml:9:56: Error attempting to parse XML file (href='../included/not-well-formed.xml').
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test31.xml
  
  Index: test31.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- including document with duplicate unparsed entity -->
     <elem foo="image"/>
     <elem foo="image" xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/ue.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test09.txt
  
  Index: test09.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that 0 fallbacks is a failure when the include is unsuccessful -->
     <!-- EXPECT FAILURE -->
     [Warning] test09.xml:9:48: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  [Fatal Error] test09.xml:9:48: An 'include' failed, and no 'fallback' element was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test38.xml
  
  Index: test38.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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" xml:base="../">
     <!-- using xml:base on both parent element and include element -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test06.xml
  
  Index: test06.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that parse="xml" is the default -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test29.txt
  
  Index: test29.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <elem bar="jpg"/>
     <!-- test including a document with a conflicting notation -->
     <!-- EXPECT FAILURE -->
     [Fatal Error] not2.xml:12:56: Multiple notations were used which had the name 'jpg', but which were not determined to be duplicates.
  [Fatal Error] test29.xml:11:45: Error attempting to parse XML file (href='../included/not2.xml').
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test34.xml
  
  Index: test34.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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" xml:base="../">
     <!-- using xml:base on parent element to move back a directory -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="included/elem.xml"/>
  </x>
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test25.txt
  
  Index: test25.txt
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- test including a resource that isn't there, when parse="xml" -->
     <!-- EXPECT FAILURE -->
     [Warning] test25.xml:9:48: Include operation failed, reverting to fallback. Resource error reading file as XML (href='../included/invalid.xml'). Reason: tests\xinclude\included\invalid.xml (The system cannot find the file specified)
  [Fatal Error] test25.xml:9:48: An 'include' failed, and no 'fallback' element was found.
  
  
  
  1.1                  xml-xerces/java/tests/xinclude/output/test02.xml
  
  Index: test02.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <x xmlns="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">
     <!-- tests that attributes from other namespaces on xi:include elements are ignored -->
     <elem xmlns="http://www.schemaTest.org/xinclude-test" xml:base="../included/elem.xml"/>
  </x>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org