#David Carlisle demonstrates drawing NS data out of attributes from Xml.Xslt import test_harness sheet_1 = """\ Schema Element name: type: { } Elements with the same type are: """ source_1 = """ """ expected = """ Schema Element name: swissBankAccountNo type: {http://www.w3.org/1999/XMLSchema} string Elements with the same type are: swissBankAccountNo luxembourgBankAccountNo Schema Element name: luxembourgBankAccountNo type: {http://www.w3.org/1999/XMLSchema} string Elements with the same type are: swissBankAccountNo luxembourgBankAccountNo Schema Element name: englishBankAccountNo type: {http://www.w3.org/1999/XMLSchema} string2 Elements with the same type are: englishBankAccountNo frenchBankAccountNo Schema Element name: frenchBankAccountNo type: {http://www.w3.org/1999/XMLSchema} string2 Elements with the same type are: englishBankAccountNo frenchBankAccountNo """ def Test(tester): source = test_harness.FileInfo(string=source_1) sheet = test_harness.FileInfo(string=sheet_1) test_harness.XsltTest(tester, source, [sheet], expected) return