Update of /cvsroot/mvp-xml/XInclude/v2/test/XInclude-Test-Suite/Nist/test/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20225/v2/test/XInclude-Test-Suite/Nist/test/docs Added Files: nist-include-01.xml nist-include-02.xml nist-include-03.xml nist-include-04.xml nist-include-05.xml nist-include-06.xml nist-include-07.xml nist-include-08.xml nist-include-09.xml nist-include-10.xml nist-include-11.xml nist-include-12.xml nist-include-13.xml nist-include-14.xml nist-include-15.xml nist-include-16.xml nist-include-17.xml nist-include-18.xml nist-include-19.xml nist-include-20.xml nist-include-21.xml nist-include-22.xml nist-include-23.xml nist-include-24.xml nist-include-25.xml nist-include-26.xml nist-include-27.xml nist-include-28.xml nist-include-29.xml nist-include-30.xml nist-include-31.xml nist-include-32.xml nist-include-33.xml nist-include-34.xml nist-include-35.xml nist-include-36.xml nist-include-37.xml nist-include-38.xml nist-include-39.xml nist-include-40.xml nist-include-41.xml nist-include-42.xml nist-include-43.xml nist-include-44.xml nist-include-45.xml nist-include-46.xml nist-include-47.xml nist-include-48.xml nist-include-49.xml nist-include-50.xml nist-include-51.xml nist-include-52.xml nist-include-53.xml nist-include-54.xml nist-include-55.xml nist-include-56.xml Log Message: --- NEW FILE: nist-include-56.xml --- <?xml version="1.0"?> <!DOCTYPE x [ <!ELEMENT x (xinclude:include*, view*)> <!ELEMENT xinclude:include EMPTY> <!ATTLIST xinclude:include xmlns:xinclude CDATA #FIXED "http://www.w3.org/2001/XInclude" href CDATA #REQUIRED parse (xml|text) "xml" encoding CDATA #IMPLIED> <!ELEMENT view EMPTY> <!NOTATION jpg SYSTEM "jpg"> <!ENTITY image SYSTEM "bkgris.jpg" NDATA jpg> <!ATTLIST view sun ENTITY #IMPLIED> ]> <!-- Including an unparsed entity with same name, but different sysid. Test should fail. --> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including duplicate unparsed entity. --> <xinclude:include href="../ents/unparent.xml" parse="xml"/> <view sun="image"/> </x> --- NEW FILE: nist-include-44.xml --- <?xml version="1.0"?> <!-- Test a resource that contain not-well-formed XML. This test should resultin a fatal error. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/incl.xml"> <xi:fallback><xi:include href="../ents/nwf1.xml" parse="xml"/></xi:fallback> </xi:include> </x> --- NEW FILE: nist-include-28.xml --- <!DOCTYPE book [ <!ELEMENT book (doc*)> <!ELEMENT doc (isid*)> <!ELEMENT isid EMPTY> <!ATTLIST isid myid ID #IMPLIED> ]> <book> <doc> <isid myid="mine"/> <isid myid="dup"/> </doc> <!-- including another XML document with IDs, using a shorthand pointer. --> <xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude" href="../ents/prtids.xml" xpointer="dup"/> </book> --- NEW FILE: nist-include-24.xml --- <!-- Testing an include element in the document (top-level) element in the source doc. Test should fail because is including a processing instruction. --> <xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude" href="../ents/getnodes.xml" xpointer="xpointer(//processing-instruction())"/> --- NEW FILE: nist-include-34.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document with ids using XPointer element schema. --> <xinclude:include href="../ents/idtst.xml" xpointer="element(f1)"/> </x> --- NEW FILE: nist-include-23.xml --- <!-- Testing an include element in the document (top-level) element in the source doc. Test should fail because is including more than one element. --> <xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude" href="../ents/books.xml" xpointer="xpointer(//chapter)"/> --- NEW FILE: nist-include-03.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that values other than "xml" and "text" in the parse attribute of the XInclude element will generate a fatal error. Negative test.--> <xinclude:include href="../ents/something.xml" parse="xtext"/> </x> --- NEW FILE: nist-include-26.xml --- <this><xinc:include href="../ents/reluriref.ent" parse="xml" xmlns:xinc="http://www.w3.org/2001/XInclude"/></this> --- NEW FILE: nist-include-01.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Simple test of including another XML document --> <xinclude:include href="../ents/books.xml" parse="xml"/> </x> --- NEW FILE: nist-include-08.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that when the fallback element is missing, from the include element, a resource error results in a fatal error. Negative test. --> <xinclude:include href="../ents/something.xml"/> <xinclude:include href="../ents/some.txt" parse="text"/> </x> --- NEW FILE: nist-include-48.xml --- <!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ENTITY e SYSTEM "../ents/004.ent"> ]> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- An attempt to resolve an xpointer schema on a documenent that contains unexpanded entity reference. This test should fail.--> <xinclude:include href="../ents/extref.xml" xpointer="xpointer(//doc)" parse="xml"/> </x> --- NEW FILE: nist-include-13.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that a fallback element content is not dependent on the value of the parse attribute. --> <xinclude:include href="../ents/some.xml" parse="text"> <xinclude:fallback><doc>With something else.</doc></xinclude:fallback> </xinclude:include> </x> --- NEW FILE: nist-include-10.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test content other than the fallback, in the xinclude element. This content must be ignored. --> <xinclude:include href="../ents/something.xml"> This content should be ignored </xinclude:include> </x> --- NEW FILE: nist-include-22.xml --- <!-- Testing when the document (top level) element in the source infoset is an include element.--> <xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude" href="../ents/books.xml" parse="xml"/> --- NEW FILE: nist-include-50.xml --- <?xml version="1.0" encoding="UTF-8" ?> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test an include location identifying the document information item without an Xpointer, the set of top-level included item should be the children of the acquired inforset's document information item, except for the document type declaration information item. --> <xinclude:include href="../ents/idtst.xml"/> </x> --- NEW FILE: nist-include-55.xml --- <?xml version="1.0"?> <!DOCTYPE x [ <!ELEMENT x (xinclude:include*, view*)> <!ELEMENT xinclude:include EMPTY> <!ATTLIST xinclude:include xmlns:xinclude CDATA #FIXED "http://www.w3.org/2001/XInclude" href CDATA #REQUIRED parse (xml|text) "xml" encoding CDATA #IMPLIED> <!ELEMENT view EMPTY> <!NOTATION jpg SYSTEM "jpg"> <!ENTITY image SYSTEM "gris.jpg" NDATA jpg> <!ATTLIST view sun ENTITY #IMPLIED> ]> <!-- Including a duplicate unparsed entity. Test should ignore duplicate unparsed entity. --> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <xinclude:include href="../ents/unparent.xml" parse="xml"/> <view sun="image"/> </x> --- NEW FILE: nist-include-54.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that an include location identifying an attribute node will result in a fatal error. --> <xinclude:include href="../ents/idtst.xml" xpointer="xpointer(//family/@fnumber)"/> </x> --- NEW FILE: nist-include-39.xml --- <?xml version="1.0"?> <!-- Testing the content of the xinclude element. The comment should be ignored. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/something.xml"> <!-- This comment must be ignored. --> </xi:include> </x> --- NEW FILE: nist-include-16.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test the exclusion of the document type declaration information item when performing an inclusion.--> <xinclude:include href="../ents/books.xml" parse="xml"/> </x> --- NEW FILE: nist-include-38.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document using the XPointer Framework. --> <xinclude:include href="../ents/idtst.xml" xpointer="xpointer(id('f2'))element(/1/2)"/> </x> --- NEW FILE: nist-include-51.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test an include location identifying a comment. In this case the set of top level include items consist of the information item corresponding to the comment node in the acquired infoset. --> <xinclude:include href="../ents/getnodes.xml" xpointer="xpointer(//comment())"/> </x> --- NEW FILE: nist-include-36.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document with ids using XPointer element schema. --> <xinclude:include href="../ents/idtst.xml" xpointer="element(/1/2)"/> </x> --- NEW FILE: nist-include-52.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test an include location identifying a processing instruction. In this case the set of top level included items consist of the information item corresponding to the processing node in the acquired infoset. --> <xinclude:include href="../ents/getnodes.xml" xpointer="xpointer(//processing-instruction())"/> </x> --- NEW FILE: nist-include-33.xml --- <?xml version='1.0'?> <!-- Including an XML document using an XPointer element schema. --> <document> <quotation> <include xmlns="http://www.w3.org/2001/XInclude" href="../ents/ptrtst.xml" xpointer="element(chapter)"/> </quotation> </document> --- NEW FILE: nist-include-32.xml --- <?xml version='1.0'?> <!-- Including an XML document using an XPointer element schema. --> <document> <p>The relevant excerpt is:</p> <quotation> <include xmlns="http://www.w3.org/2001/XInclude" href="../ents/ptrtst.xml" xpointer="element(book/1)"/> </quotation> </document> --- NEW FILE: nist-include-41.xml --- <?xml version="1.0"?> <!-- The content of the include element is another include element, this test should result in a fatal error. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <p>The report is available.</p> <xi:include href="../ents/something.xml"> <xi:include href="../ents/something.xml"/> </xi:include> </x> --- NEW FILE: nist-include-53.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that an include location identifying an attribute node will result in a fatal error. --> <xinclude:include href="../ents/idtst.xml" xpointer="xpointer(//@*)"/> </x> --- NEW FILE: nist-include-11.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test the inclusion of a non-well-formed resource. The inclusion should generate a fatal error. --> <xinclude:include href="../ents/nwfsomething.xml"/> </x> --- NEW FILE: nist-include-37.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document using XPointer Framework. If the processor does not support the scheme used in a pointer part, it skip that pointer part. --> <xinclude:include href="../ents/idtst.xml" xpointer="element(/1/2)xpointer(id('f2'))"/> </x> --- NEW FILE: nist-include-07.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test an empty fallback element. The include element is removed from the results. --> <xinclude:include href="../ents/some.txt" parse="text"> <xinclude:fallback/> </xinclude:include> </x> --- NEW FILE: nist-include-27.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that the encoding attribute of the XInclude element has no efect when parse="xml"--> <xinclude:include href="../ents/include1.xml" parse="xml" encoding="utf-16"/> </x> --- NEW FILE: nist-include-04.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test the fallback as a child of an xinclude element. Resource should be fetch. This test should pass. --> <xinclude:include href="../ents/something.xml"> <xinclude:fallback>some text in ascii</xinclude:fallback> </xinclude:include> </x> --- NEW FILE: nist-include-30.xml --- <?xml version="1.0"?> <!DOCTYPE x [ <!ELEMENT x (family*)> <!ELEMENT family (#PCDATA)> <!ATTLIST family fnumber ID #REQUIRED> <!ATTLIST family father IDREF #IMPLIED> <!ATTLIST family mother IDREF #IMPLIED> ]> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document with ids using a shorthand pointer. --> <xinclude:include href="../ents/idtst.xml" xpointer="f3"/> </x> --- NEW FILE: nist-include-15.xml --- <this><xinc:include href="nist-include-15.xml" parse="xml" xmlns:xinc="http://www.w3.org/2001/XInclude"/></this> --- NEW FILE: nist-include-35.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document with ids using XPointer element schema. --> <xinclude:include href="../ents/idtst.xml" xpointer="element(/1)"/> </x> --- NEW FILE: nist-include-12.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that is a fatal error for an include element to contain more than one fallback elements.--> <xinclude:include href="../ents/something.xml"> <xinclude:fallback> <doc> <p>with</p> <p>something</p> <p>else</p> </doc> </xinclude:fallback> <xinclude:fallback>only one fallback is allowed</xinclude:fallback> </xinclude:include> </x> --- NEW FILE: nist-include-40.xml --- <?xml version="1.0"?> <!-- Testing the content of the xinclude element. The element elem should be ignored. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/something.xml"> <xi:fallback>Resource not available.</xi:fallback> <elem>This element must be ignored.</elem> </xi:include> </x> --- NEW FILE: nist-include-18.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Simple test of including a set of nodes from an XML document --> <xinclude:include href="../ents/books.xml" xpointer="xpointer(//chapter)"/> </x> --- NEW FILE: nist-include-17.xml --- <x xmlns:xinc="http://www.w3.org/2001/XInclude"> <!-- Test intra-document reference within include elements. --> <xinc:include href="../ents/something.xml"/> <xinc:include xpointer="element(/1/1)" parse="xml"/> </x> --- NEW FILE: nist-include-02.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test that the encoding attribute of the XInclude element has no efect when parse="xml"--> <xinclude:include href="../ents/something.xml" parse="xml" encoding="iso-2022-jp"/> </x> --- NEW FILE: nist-include-14.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test a fallback element containing text even when xml is specified in the parse aurgument.--> <xinclude:include href="../ents/some.xml" parse="xml"> <xinclude:fallback> Add something else. </xinclude:fallback> </xinclude:include> </x> --- NEW FILE: nist-include-29.xml --- <?xml version="1.0"?> <!DOCTYPE x [ <!ELEMENT x (family*)> <!ELEMENT family (#PCDATA)> <!ATTLIST family fnumber ID #REQUIRED> <!ATTLIST family father IDREF #IMPLIED> <!ATTLIST family mother IDREF #IMPLIED> ]> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document with ids using a shorthand pointer. --> <xinclude:include href="../ents/idtst.xml" xpointer="f1"/> </x> --- NEW FILE: nist-include-31.xml --- <?xml version='1.0'?> <!-- Including an XML document using an XPointer element schema. --> <document> <p>The relevant excerpt is:</p> <quotation> <include xmlns="http://www.w3.org/2001/XInclude" href="../ents/ptrtst.xml" xpointer="element(/1/1/1)"/> </quotation> </document> --- NEW FILE: nist-include-49.xml --- <!DOCTYPE x [ <!ENTITY e SYSTEM "../ents/004.ent"> ]> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including another XML document that contains an unexpanded entity reference. --> <xinclude:include href="../ents/extref.xml" parse="xml"/> </x> --- NEW FILE: nist-include-47.xml --- <?xml version="1.0"?> <!-- Testing the content of the xinclude element. The xinclude element may contain a fallback element; other elements from the xinclude namespace result in a fatal error.--> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/include1.xml"> <xi:include href="../ents/something.xml"/> </xi:include> </x> --- NEW FILE: nist-include-42.xml --- <?xml version="1.0"?> <!-- Testing the content of the xinclude element. This test should result in a fatal error. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/some.xml"> <xi:fallback>A resource is missing.</xi:fallback> <xi:include href="../ents/something.xml"/> </xi:include> </x> --- NEW FILE: nist-include-43.xml --- <?xml version="1.0"?> <!-- Testing the content of the xinclude element. This test should result in a fatal error. The content must be one fallback. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/something.xml"> <xi:fallback><xi:include href="../ents/include1.xml"/></xi:fallback> <xi:fallback>Resource not available.</xi:fallback> </xi:include> </x> --- NEW FILE: nist-include-06.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test a fallback when a resource error occurs. --> <xinclude:include href="../ents/some.xml"> <xinclude:fallback> <doc> <p>with</p> <p>something</p> <p>else</p> </doc> </xinclude:fallback> </xinclude:include> </x> --- NEW FILE: nist-include-19.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Simple test of including a set of nodes from an XML document --> <xinclude:include href="../ents/books.xml" xpointer="xpointer(//book/chapter[1])"/> </x> --- NEW FILE: nist-include-09.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test unqualified attributes in the xinclude element --> <xinclude:include href="../ents/something.xml" arg="mustignore"/> </x> --- NEW FILE: nist-include-05.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test a fallback element not appearing as a direct child of an xinclude element. A fatal error should be generated. --> <xinclude:include href="../ents/something.xml"/> <somelem>I am part of the source infoset</somelem> <xinclude:fallback>some text in ascii.</xinclude:fallback> </x> --- NEW FILE: nist-include-46.xml --- <?xml version="1.0"?> <!-- Testing the content of the xinclude element. The xinclude element may contain a fallback element; other elements from the xinclude namespace result in a fatal error. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/something.xml"> <xi:fallback>Resource not available.</xi:fallback> <xi:include href="../ents/include1.xml"/> </xi:include> </x> --- NEW FILE: nist-include-25.xml --- <!-- Testing an include element in the document (top-level) element in the source doc. Test should fail because is including only a comment. --> <xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude" href="../ents/getnodes.xml" xpointer="xpointer(//comment())"/> --- NEW FILE: nist-include-45.xml --- <?xml version="1.0"?> <!-- Test a resource that contain not-well-formed XML. This test should result in a fatal error. --> <x xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="../ents/nwf2.xml"/> </x> --- NEW FILE: nist-include-20.xml --- <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Test an include location identifying a document information item with an xpointer locating the document root. In this case the set of top level include items is the children of acquired infoset's document information item, except for the document type information item. --> <xinclude:include href="../ents/books.xml" xpointer="xpointer(/book)"/> </x> --- NEW FILE: nist-include-21.xml --- <?xml version="1.0"?> <!DOCTYPE x [ <!ELEMENT x (view*)> <!ELEMENT view EMPTY> <!ATTLIST view sun ENTITY #IMPLIED> <!NOTATION jpg SYSTEM "jpg"> <!ENTITY image SYSTEM "gris.jpg" NDATA jpg> ]> <x xmlns:xinclude="http://www.w3.org/2001/XInclude"> <!-- Including an XML document with an unparsed entity. --> <xinclude:include href="../ents/unparent.xml" parse="xml"/> </x> |