xsl-list
[Top] [All Lists]

RE: XSLT vs Perl

2004-02-03 10:03:05
I like Kays approach here...  :-)
Especially if it starts to get real hairy with requirements like working
with offline data... Performing sorts on the client... User preferences
influencing how data looks... (etc. etc.)

As a person involved in the nitty gritty work of writing programs that
use both these technologies, I readily reach for XSLT over Perl for
transformation tasks. At the theory level, it may just look like a
preference thing. If you work quite a bit with both you'll find yourself
happily using XSLT for most transformation tasks. It just makes my job
easier on  many levels. 

In addition, I would never discard Perl from my tool belt. They may be
capable in similar ways but, they definitely fit a purpose for which
many of us worker bees use it for more than just the novelty or as a
resume bulker.  ;-)


-----Original Message-----
From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk] 
Sent: Tuesday, February 03, 2004 10:44 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] XSLT vs Perl


XSLT 2.0 is awk with pointy brackets. What's the advantage of
having pointy brackets in awk?

I was not aware that awk had a data model or type system that was in any
way aligned with XML.

Let's be concrete. What is the equivalent of

<a href="{../@code}.html"/><xsl:value-of select="title"/></a>

in awk? Or in Perl?

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>