#Uche Ogbuji tries out some wickedness with namespace
from Xml.Xslt import test_harness
source_1 = """\
"""
# essentially just tests xsl:attribute with a namespace URI
# that comes from a top-level param, derived from hard-coded
# top-level variables
sheet_1 = """\
"""
expected_1 = """
"""
# exact same test as #1, but param values are derived from namespace
# nodes in the stylesheet.
sheet_2 = """\
heroic
couplets
"""
source_2 = source_1
expected_2 = expected_1
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="xsl:attribute with namespace from top-level param 1")
source = test_harness.FileInfo(string=source_2)
sheet = test_harness.FileInfo(string=sheet_2)
test_harness.XsltTest(tester, source, [sheet], expected_2,
title="xsl:attribute with namespace from top-level param 2")
return