[xslt] New dumb user request/questions
- From: Bill Eldridge <bill rfa org>
- To: xslt gnome org
- Subject: [xslt] New dumb user request/questions
- Date: Tue, 06 Aug 2002 15:34:01 +0200
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]