only support reading xinclude if we are using lxml

This commit is contained in:
Dane Springmeyer 2010-08-26 20:45:08 +00:00
parent 594b019879
commit b4e989a85a

View file

@ -87,7 +87,8 @@ if __name__ == "__main__":
xml = sys.argv[1]
tree = etree.parse(xml)
tree.xinclude()
if hasattr(tree,'xinclude')
tree.xinclude()
root = tree.getroot()
# rename 'bgcolor' to 'background-color'