When I read about XSLT for the first time I thought it was a cool toy,
but then I asked myself why use XSLT over ASP?
Can someone give a real world example where XSLT would be the best
choice and why?
a) XSLT is specifically designed to transform XML. It's the right tool
for the job (assuming transforming XML is what you want to do). ASP,
PHP, and JSP know nothing about XML (they have hooks into it, but that
isn't the same thing at all).
b) ASP is Microsoft-specific. There *is* a version for Linux, but it
requires you to use a vendor-supplied custom precompiled binary
of Apache, which no server operator in their right mind would do.
Seeing that most web servers run Linux nowadays, ASP looks like a
rather poor recommendation.
c) ASP is a scripting language for web serving. XSLT has nothing to do
with web serving, so comparing them is probably misleading anyway.
d) I have used ASP, PHP, and JSP to serve pages where the transformation
was done using XSLT, so they are actually complementary.
///Peter