"""
Mike Brown reported a problem with minidom and children nodes
"""
from Xml.Xslt import test_harness
source_1="""
To be or not to be"""
sheet_1 = """
Element:
Attribute:
Text node:
Comment:
P.I. node:
# of descendants:
-----------------------------
"""
expected = """Element: docu
# of descendants: 4
-----------------------------
Comment: quotation
# of descendants: 0
-----------------------------
Element: t
# of descendants: 1
-----------------------------
Attribute: xml:lang
# of descendants: 0
-----------------------------
Text node: To be or not to be
# of descendants: 0
-----------------------------
P.I. node: that-is-the
# of descendants: 0
-----------------------------
"""
def Test(tester):
source = test_harness.FileInfo(string=source_1)
sheet = test_harness.FileInfo(string=sheet_1)
test_harness.XsltTest(tester, source, [sheet], expected,
title="Test Descendants of different node types")
return