#Thomas Guettler wants to use XInclude in his stylesheets from Xml.Xslt import test_harness import os from Ft.Lib import Uri BASE_URI = Uri.OsPathToUri(os.path.abspath(__file__), attemptAbsolute=True) INCLUDE_URI = Uri.Absolutize('tg_20010628-include.xml', BASE_URI) sheet_1 = """\ """ % {'uri' : INCLUDE_URI} source_1 = """\ MyTitle """ % {'uri' : INCLUDE_URI} expected_1 = """\ MyTitle

some text

some text

""" % {'base' : INCLUDE_URI} #" 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