Update of /cvsroot/mvp-xml/XInclude/v2/test/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20225/v2/test/tests Added Files: binary.bin caching.xml count.txt data.xml disclaimer.xml document.xml fallback.xml fallbacknotchildinclude.xml filenotfound.xml includechildofinclude.xml includesitself-nohref-text.xml includesitself.xml langtest.xml loop.xml nohref.xml nonxmlchar.xml nxslt.exe resolver.xml russian.xml table.xml test-Martin.xml test2.xml twofallbacks.xml unknownparseattr.xml working_example.xml working_example2.xml xpointer.xml Log Message: --- NEW FILE: filenotfound.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="thereisnosuchfile.xml"><foo></foo></xi:include> foo </document> --- NEW FILE: caching.xml --- (This appears to be a binary file; contents omitted.) --- NEW FILE: twofallbacks.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="disclaimer2.xml" parse="xml"> <foo><xi:include href="disclaimer.xml"/></foo> <xi:fallback> <xi:include href="disclaimer.xml"/> </xi:fallback> <xi:fallback> <xi:include href="disclaimer.xml"/> </xi:fallback> <foo></foo> </xi:include> foo </document> --- NEW FILE: working_example.xml --- <?xml version='1.0'?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>This document has been accessed <xi:include href="count.txt" parse="text"/> times.</p> </document> --- NEW FILE: includechildofinclude.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="disclaimer2.xml" parse="xml"> <foo><xi:include href="disclaimer.xml"/></foo> <xi:include href="disclaimer.xml"/> <xi:fallback> <xi:include href="disclaimer.xml"/> </xi:fallback> <foo></foo> </xi:include> foo </document> --- NEW FILE: table.xml --- <HTML> <BODY> <TABLE> <CAPTION>MyCaption</CAPTION> </TABLE> </BODY> </HTML> --- NEW FILE: fallbacknotchildinclude.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:fallback>N/A</xi:fallback> <xi:include href="disclaimer.xml" parse="xml"><foo></foo></xi:include> foo </document> --- NEW FILE: count.txt --- 324387 --- NEW FILE: binary.bin --- (This appears to be a binary file; contents omitted.) --- NEW FILE: fallback.xml --- <?xml version="1.0" encoding="utf-8"?> <div xmlns:xi="http://www.w3.org/2003/XInclude"> <xi:include href="no-such-file.txt" parse="text"> <xi:fallback> <xi:include href="and-no-such-one.txt" parse="text"> <xi:fallback><a href="mailto:bo...@ex...">Report error</a></xi:fallback> </xi:include> </xi:fallback> </xi:include> </div> --- NEW FILE: nxslt.exe --- (This appears to be a binary file; contents omitted.) --- NEW FILE: unknownparseattr.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="disclaimer.xml" parse="foo"><foo></foo></xi:include> foo </document> --- NEW FILE: test2.xml --- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE toinclude [ <!ELEMENT book (#PCDATA)> <!ATTLIST book id ID #IMPLIED > <!ELEMENT toinclude (book)> ]> <toinclude xmlns="foo.bar#"> <book id="f1">Books</book> </toinclude> --- NEW FILE: includesitself.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="includesitself.xml" parse="text"><foo></foo></xi:include> foo </document> --- NEW FILE: xpointer.xml --- <?xml version='1.0'?> <document xmlns:xi="http://www.w3.org/2001/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="test2.xml" xpointer="f1"/> </document> --- NEW FILE: russian.xml --- (This appears to be a binary file; contents omitted.) --- NEW FILE: working_example2.xml --- <?xml version='1.0'?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>The following is the source of the "data.xml" resource:</p> <example><xi:include href="data.xml" parse="text"/></example> </document> --- NEW FILE: document.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include hre2f="disclaimer.xml" parse="xml"><foo></foo></xi:include> foo </document> --- NEW FILE: includesitself-nohref-text.xml --- (This appears to be a binary file; contents omitted.) --- NEW FILE: resolver.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2001/XInclude"> <stream> <xi:include href="stream://whatever"/> </stream> <textreader> <xi:include href="textreader://whatever"/> </textreader> <xmlreader> <xi:include href="xmlreader://whatever"/> </xmlreader> <p>Filtered:</p> <xi:include href="textreader://whatever" xpointer="xpointer(//text())"/> </document> --- NEW FILE: disclaimer.xml --- <?xml version='1.0'?> <!-- comment --> <?pi foo ?> <disclaimer> <p>The opinions represented herein represent those of the individual and should not be interpreted as official policy endorsed by this organization.</p> </disclaimer> --- NEW FILE: loop.xml --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nohref.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include parse="xml"><foo></foo></xi:include> foo </document> --- NEW FILE: nonxmlchar.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="binary.bin" parse="text"/> foo </document> --- NEW FILE: langtest.xml --- <?xml version="1.0" encoding="utf-8" ?> <foo xmlns:xi="http://www.w3.org/2003/XInclude"> <bar xml:lang="en-us"> <baz>whatever</baz> <xi:include href="russian.xml"/> <xi:include href="russian.xml" xpointer="xpointer(//text2)"/> <xi:include href="russian.xml" xpointer="xpointer(//english)"/> <xi:include href="russian.xml" xpointer="xpointer(//eng)"/> <xi:include href="russian.xml" xpointer="xpointer(//eng2)"/> <xi:include href="russian.xml" xpointer="xpointer(//eng3)"/> <xi:include href="russian.xml" xpointer="xpointer(//eng4)"/> <xi:include href="russian.xml" xpointer="xpointer(//eng5)"/> </bar> </foo> --- NEW FILE: data.xml --- <?xml version='1.0'?> <data> <item><![CDATA[Brooks & Shields]]></item> </data> --- NEW FILE: test-Martin.xml --- <?xml version="1.0" encoding="UTF-8"?> <myXml xmlns:xi="http://www.w3.org/2001/XInclude">> <otherStuff> </otherStuff> <!--WORKS (found node)--> <xi:include href="table.xml" xpointer="xpointer(//HTML/BODY/TABLE[starts-with(CAPTION,'M')] )"> <xi:fallback> node not found </xi:fallback> </xi:include> <!--WORKS CORRECTLY (found node)--> <xi:include href="table.xml" xpointer="xpointer(//HTML/BODY/TABLE)"> <xi:fallback> node not found </xi:fallback> </xi:include> <!--WORKS CORRECTLY(fallback, node not found)--> <xi:include href="table.xml" xpointer="xpointer(//HTML/BODY/STUFF)"> <xi:fallback> node not found </xi:fallback> </xi:include> <!--DOES NOT WORK CORRECTLY (node does not exist, should do fallback but throws CircularReferenceException--> <xi:include href="table.xml" xpointer="xpointer(//HTML/BODY/TABLE[starts-with(STUFF,'M')] )"> <xi:fallback> node not found </xi:fallback> </xi:include> <!--DOES NOT WORK CORRECTLY (node does not exist, should do fallback but throws CircularReferenceException--> <xi:include href="table.xml" xpointer="xpointer(//HTML/BODY/STUFF[starts-with(CAPTION,'M')] )"> <xi:fallback> node not found </xi:fallback> </xi:include> <moreXML/> </myXml> |