On Fri, 2002-06-07 at 03:15, Rob Nagler wrote: > Agreed. Perl is good at text manipulation. It is imiho superior to > XSLT in all spaces which XSLT claims to solve. Once you have an XML > parse tree in Perl, it's trivial to write a translator to any format > more correctly than XSLT. My favorite example is XML to CSV. Every > example I've seen in XSLT is cumbersome and wrong. You'd think it > wouldn't be hard, but try it. ;-)
XSLT is an XML to XML transformation tool. Seems fairly obvious to me it's not going to do XML to CSV very well. For that you use SAX. I disagree with you in all uses of transforming an XML tree into another XML tree. Right tool for the job, as always. Matt.