[xslt] New dumb user request/questions



After messing around with the Python bindings
for libxslt/libxml2, it was hard to figure out
how to get the results of a transform to a string,
and nothing in the mailing list archives was
any help. I finally figured it out from the
extension example that
I can do:

result=style.applyStylesheet(doc, None)
root=result.children
print root.getContent()

(or

    print result.children.getContent()

if I want to be more obscure).

Anyway, it seems that this should be
more obvious in the documentation for new users?

Also, would a saveResultToStringIO
make sense (allowing either StringIO or cStringIO
objects)?

Lastly, is there some relation between
Dave Kuhlman's libxsltmod and the one
included with libxslt? (Doesn't seem to
be).
-- 
Bill Eldridge
Radio Free Asia
bill@rfa.org





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