Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add required files
  • Loading branch information
Masorubka1 authored and youknowone committed Apr 20, 2023
commit 334c15e879eb01a55dfd8dcb2cbd6dab621b5cb5
115 changes: 115 additions & 0 deletions Lib/test/xmltestdata/test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<HTML xmlns:pp="http://www.isogen.com/paul/post-processor">
<TITLE>Introduction to XSL</TITLE>
<H1>Introduction to XSL</H1>



<HR/>
<H2>Overview
</H2>
<UL>

<LI>1.Intro</LI>

<LI>2.History</LI>

<LI>3.XSL Basics</LI>

<LI>Lunch</LI>

<LI>4.An XML Data Model</LI>

<LI>5.XSL Patterns</LI>

<LI>6.XSL Templates</LI>

<LI>7.XSL Formatting Model
</LI>

</UL>






<HR/>
<H2>Intro</H2>
<UL>

<LI>Who am I?</LI>

<LI>Who are you?</LI>

<LI>Why are we here?
</LI>

</UL>






<HR/>
<H2>History: XML and SGML</H2>
<UL>

<LI>XML is a subset of SGML.</LI>

<LI>SGML allows the separation of abstract content from formatting.</LI>

<LI>Also one of XML's primary virtues (in the doc publishing domain).
</LI>

</UL>






<HR/>
<H2>History: What are stylesheets?</H2>
<UL>

<LI>Stylesheets specify the formatting of SGML/XML documents.</LI>

<LI>Stylesheets put the &quot;style&quot; back into documents.</LI>

<LI>New York Times content+NYT Stylesheet = NYT paper
</LI>

</UL>






<HR/>
<H2>History: FOSI</H2>
<UL>

<LI>FOSI: &quot;Formatted Output Specification Instance&quot;
<UL>
<LI>MIL-STD-28001
</LI>

<LI>FOSI's are SGML documents
</LI>

<LI>A stylesheet for another document
</LI>
</UL></LI>

<LI>Obsolete but implemented...
</LI>

</UL>



</HTML>
115 changes: 115 additions & 0 deletions Lib/test/xmltestdata/test.xml.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<HTML xmlns:pp="http://www.isogen.com/paul/post-processor">
<TITLE>Introduction to XSL</TITLE>
<H1>Introduction to XSL</H1>



<HR></HR>
<H2>Overview
</H2>
<UL>

<LI>1.Intro</LI>

<LI>2.History</LI>

<LI>3.XSL Basics</LI>

<LI>Lunch</LI>

<LI>4.An XML Data Model</LI>

<LI>5.XSL Patterns</LI>

<LI>6.XSL Templates</LI>

<LI>7.XSL Formatting Model
</LI>

</UL>






<HR></HR>
<H2>Intro</H2>
<UL>

<LI>Who am I?</LI>

<LI>Who are you?</LI>

<LI>Why are we here?
</LI>

</UL>






<HR></HR>
<H2>History: XML and SGML</H2>
<UL>

<LI>XML is a subset of SGML.</LI>

<LI>SGML allows the separation of abstract content from formatting.</LI>

<LI>Also one of XML's primary virtues (in the doc publishing domain).
</LI>

</UL>






<HR></HR>
<H2>History: What are stylesheets?</H2>
<UL>

<LI>Stylesheets specify the formatting of SGML/XML documents.</LI>

<LI>Stylesheets put the "style" back into documents.</LI>

<LI>New York Times content+NYT Stylesheet = NYT paper
</LI>

</UL>






<HR></HR>
<H2>History: FOSI</H2>
<UL>

<LI>FOSI: "Formatted Output Specification Instance"
<UL>
<LI>MIL-STD-28001
</LI>

<LI>FOSI's are SGML documents
</LI>

<LI>A stylesheet for another document
</LI>
</UL></LI>

<LI>Obsolete but implemented...
</LI>

</UL>



</HTML>
21 changes: 21 additions & 0 deletions Lib/test/xmltests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Convenience test module to run all of the XML-related tests in the
# standard library.

import sys
import test.support

test.support.verbose = 0

def runtest(name):
__import__(name)
module = sys.modules[name]
if hasattr(module, "test_main"):
module.test_main()

runtest("test.test_minidom")
runtest("test.test_pyexpat")
runtest("test.test_sax")
runtest("test.test_xml_dom_minicompat")
runtest("test.test_xml_etree")
runtest("test.test_xml_etree_c")
runtest("test.test_xmlrpc")
13 changes: 0 additions & 13 deletions Lib/xml/dom/pulldom.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,19 +216,6 @@ def reset(self):
self.parser.setFeature(xml.sax.handler.feature_namespaces, 1)
self.parser.setContentHandler(self.pulldom)

def __getitem__(self, pos):
import warnings
warnings.warn(
"DOMEventStream's __getitem__ method ignores 'pos' parameter. "
"Use iterator protocol instead.",
DeprecationWarning,
stacklevel=2
)
rc = self.getEvent()
if rc:
return rc
raise IndexError

def __next__(self):
rc = self.getEvent()
if rc:
Expand Down