#Erik Dasque's RDFtoRSS converter problem, 28 April 2000 from Xml.Xslt import test_harness source_1 = """ JavaWorld http://www.javaworld.com Add JavaWorld to your My Netscape page! The JavaWorld channel lets you stay on top of the latest developer tips, tutorials, news, and resources offered by JavaWorld. JavaWorld Logo http://www.javaworld.com/icons/jw-mynetscape.gif http://www.javaworld.com "Streaming JavaWorld" -- the streaming audio news and talk for Java project managers http://www.javaworld.com/common/jw-streaming.html?myns Streaming JavaWord: An audio program for Java project managers and programmers http://www.javaworld.com/common/jw-streaming.html?myns Programming Java Devices: An Overview http://www.javaworld.com/jw-07-1999/jw-07-device.html?myns GO! Search JavaWorld col=jw&qt http://search.javaworld.com/query.html """ sheet_1 = """ """ sheet_2 = """ """ expected_1 = """ """ expected_2 = """ JavaWorld http://www.javaworld.com Add JavaWorld to your My Netscape page! The JavaWorld channel lets you stay on top of the latest developer tips, tutorials, news, and resources offered by JavaWorld. JavaWorld Logo http://www.javaworld.com/icons/jw-mynetscape.gif http://www.javaworld.com "Streaming JavaWorld" -- the streaming audio news and talk for Java project managers http://www.javaworld.com/common/jw-streaming.html?myns Streaming JavaWord: An audio program for Java project managers and programmers http://www.javaworld.com/common/jw-streaming.html?myns Programming Java Devices: An Overview http://www.javaworld.com/jw-07-1999/jw-07-device.html?myns """ def Test(tester): source = test_harness.FileInfo(string=source_1) sheet = test_harness.FileInfo(string=sheet_1) test_harness.XsltTest(tester, source, [sheet], expected_1, title='With default namespace') source = test_harness.FileInfo(string=source_1) sheet = test_harness.FileInfo(string=sheet_2) test_harness.XsltTest(tester, source, [sheet], expected_2, title='With named namespace') return