Re: [xml] XSLT stylesheet parameters



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]