[mod_python] 4XSLT/XML (4Suite) is not functioning correctly

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Jan 10 11:05:25 EST 2003


On 10 Jan 2003, Kia Vang wrote:

> Okay, I'm really frustrated.  My code seems very simple, yet I can't get
> mod_python to output it correctly.
>
> Here's the mod_python code:
>
> from Ft.Xml import InputSource
> from Ft.Xml.Xsl import Processor
>
> from mod_python import apache
>
> def handler(req):
> 	p = Processor.Processor()
> 	trans = InputSource.DefaultFactory.fromUri("request.xsl")
> 	src = InputSource.DefaultFactory.fromUri("request.xml")
> 	p.appendStylesheet(trans)
> 	res = p.run(src, topLevelParams={'error':0} )
>
> 	req.content_type="text/html"
> 	req.write(res)
>
> 	return apache.OK

So what specifically is wrong with the above code's behaviour? What it is
supposed to do and what does it really do?

Grisha




More information about the Mod_python mailing list