Re: [xml] XSLT stylesheet parameters
- From: Nic James Ferrier <nferrier tapsellferrier co uk>
- To: libxml <xml gnome org>
- Subject: Re: [xml] XSLT stylesheet parameters
- Date: Mon, 14 May 2007 15:20:44 +0100
Nic James Ferrier <nferrier tapsellferrier co uk> writes:
I've got some python like this:
xslt_params = { "editable": "yes" }
doc = libxml2.parseDoc(html)
result = None
try:
result = ss.applyStylesheet(doc, xslt_params)
http_output = ss.saveResultToString(result)
# Send the document to Django's http object
print >>http, http_output
return http
finally:
if result:
Ooops!
I found it.
I am a dumbass.
It should have been:
xslt_params = { "editable": "'yes'" }
--
Nic Ferrier
http://www.tapsellferrier.co.uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]