Re: [xsl] XSLT use cases; data-centric todocument-centrictransformations

Subject: Re: [xsl] XSLT use cases; data-centric todocument-centrictransformations
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 8 Feb 2005 14:10:12 GMT
  IMHO, 'simplified stylesheets' are anything but simple and force the use
  of for-each over apply-templates - a bad thing when you are learning the
  language for the first time.  Whatever the good intentions of the
  language designers were, simplified stylesheets provide no real
  benefits: they don't scale, they aren't any easier to learn and they
  ingrain bad habits.  For people to really grasp XSLT the push style of
  processing really needs promoting first - maybe the identity transform
  should be the only stylesheet that is allowed to called a 'simplified
  stylesheet'?

Actually I don't think simplified stylesheets were intended to be simple
for beginners. As you point out they are pretty much useless when
writing stylesheets by hand. I believe that they are there for exactly
the reason mentioned at the start of this thread: graphical front ends
to templating languages at the time expected that the "template"
looked more or less like the final result document into which a few
(asp/jsp/whatever) instructions are inserted to dynamically fill in some
data. l-r-e-a-s provides a model of XSLT usage that more closely fits
that model and was (I think, I wasn't there) designed to encourage takup
of XSLT in that area.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread