[XML-SIG] XSLT parameters

Mike Olson Mike.Olson@fourthought.com
03 Dec 2002 21:44:02 -0700


On Sun, 2002-12-01 at 20:00, Michael Hall wrote:
> 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 should work.  Do you declare the top level params in the
stylesheet?

Mike

> 
> 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
> ----------------------------------------------------
> 
> _______________________________________________
> XML-SIG maillist  -  XML-SIG@python.org
> http://mail.python.org/mailman/listinfo/xml-sig
-- 
Mike Olson                                Principal Consultant
mike.olson@fourthought.com                +1 303 583 9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
PO Box 270590,                            http://4Suite.org
Louisville, CO 80027-5009, USA
XML strategy, XML tools, knowledge management