[xml] Infinite loop when printing xsl doctype attribute twice from python

The following seems to print one ok line followed by a
line starting with a bit of garbage before chewing up
all the CPU on my machine for an undetermined amount
of time...

import libxml2
import libxslt

xmltxt = """<doc></doc>"""
xsltxt = """<?xml version="1.0"?>
doctype-public="-//W3C//DTD HTML 4.01//EN"

xsldoc = libxml2.parseDoc(xsltxt)
xslt = libxslt.parseStylesheetDoc(xsldoc)

print xslt.doctypeSystem()
print xslt.doctypeSystem()

Also, doing xslt.freeStylesheet() before the print
statements results in a segfault rather than an exception...

Sitsofe | http://sucs.org/~sits/

___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new 
ways to express yourself http://uk.messenger.yahoo.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]