[XML-SIG] XSLT parameters

Michael Hall ninti@ninti.com
Mon, 2 Dec 2002 14:00:12 +1100


Hi:

I'm using xml.xslt.Processor in a CGI script to transform XML to HTML using 
XSL. Simple enough, and works great.

But what is the syntax/method to pass parameters to the XSL stylesheet?

I tried something like this but it doesn't work:

html = xsltproc.runUri(xmlfile, topLevelParams={'p': 27})

This topic seems to be almost completely undocumented in PyXML, 4Suite and 
Python documentation.

Any pointers greatly appreciated. TIA.

Mick

-- 
----------------------------------------------------
MICHAEL HALL                 Web Development Officer
Batchelor Institute of Indigenous Tertiary Education
W: mick.hall@nt.gov.au                (08) 8951 8352
H: ninti@ninti.com                    (08) 8953 1442
----------------------------------------------------