#Example from Michael Kay's to Sanjay on 9 Dec 1999, with minor corrections to produce well-formed XML from Xml.Xslt import test_harness sheet_1 = """ Do some more things here """ source_1 = """ DEPT_PREHTML Departments DEPT_POSTHTML EMP_PREHTML Employees EMP_POSTHTML

DEPT_POSTHTML: Some more well-formed HTML.

EMP_PREHTML: Some more well-formed HTML.

EMP_POSTHTML: Some more well-formed HTML.

""" saxon_expected = """
Departments

DEPT_POSTHTML: Some more well-formed HTML.

EMP_PREHTML: Some more well-formed HTML.

Employees

EMP_POSTHTML: Some more well-formed HTML.

""" #Note that XML processors are not required to pass on comments expected_1 = """
Departments

DEPT_POSTHTML: Some more well-formed HTML.

EMP_PREHTML: Some more well-formed HTML.

Employees

EMP_POSTHTML: Some more well-formed HTML.

""" #Note that XML processors are not required to pass on comments 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) return