Preferred tool for folding XML into HTML

Peter Hansen peter at engcorp.com
Tue Jan 8 05:12:17 EST 2002


Laurent Szyster wrote:
> 
> Martin von Loewis wrote:
> >
> > russell_turpin at hotmail.com (Russell Turpin) writes:
> >
> > >   XML (dynamic) + HTML template (static) -> final HTML
> > >
> > > What are now the preferred tools for doing this?
> >
> > I'd recommend to use XSLT. The HTML template would become an XSLT
> > stylesheet, but appart from that, this is precisely what XSLT was
> > invented for.
> 
> XSLT also gets my vote.
> 
> By the way, I advise you to pick wathever XSLT engine available
> on your platform and pipe the XML into it from Python. An XSLT
> engine written in Python is a non-sense. Providing Python binding
> to an XSLT library is *The Right Thing* to do.

Why ever would you say this?  Surely, except _possibly_ for reasons 
of performance, there is no logic in the above statement.  

And if performance is thought to be the issue, wouldn't one need to
have actual minimum performance requirements in mind, and to measure
the performance of a Python solution and determine that it is 
inadequate, before one could say using Python is nonsense?

-Peter Hansen, P.Eng.



More information about the Python-list mailing list