tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/19031-xslt-or-velocityCascade CMS: Discussion 2018-10-18T20:37:21Ztag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-29T15:26:23Z2014-10-29T15:26:23ZXSLT or Velocity<div><p>I'd definitely suggest putting some time into learning Velocity.
HH has been more actively developing it, adding great features like
the Locator Tools and Query API, so there's a lot more you can do
with that. For me, it's still much easier to whip up a quick XSLT
for simpler tasks but I use Velocity more and more for the more
complex transformations.</p></div>Eric L. Eppstag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-29T16:27:48Z2014-10-29T16:27:48ZXSLT or Velocity<div><p>I don't have any bad feeling toward Velocity. In fact, I am
currently exploring its Java side (by writing Java classes to be
used by Velocity). But there is one thing that I can do with XSLT
but not with Velocity: template formats. I use them for rendering
every page, and they cannot be written in Velocity--not until HH
decides to make it possible.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-29T20:49:31Z2014-10-29T20:49:32ZXSLT or Velocity<div><p>Thanks for the suggestions, makes sense. Looking over Velocity
files it seems to be a lot easier to read and understand than XSLT
specially since javascript and php to it. What are the best place
to start learning velocity? Do I go through Java training course
and then move towards velocity? or do you guys know of a place a
website that i can learn velocity from?</p>
<p>Thanks again!</p></div>Fernandotag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-29T20:52:53Z2014-10-29T20:52:54ZXSLT or Velocity<div><p>I understand and agree with you guys. Initially I started
working with XSLT because I was able to find plenty of information
in it but couldn't really find any reference for velocity outside
there website which it seems to be mostly general information but
no tutorials. Do you guys suggest me going through basic Java
tutorials and then move towards velocity or a different place?</p>
<p>Thanks!</p></div>Fernandotag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-29T21:25:09Z2014-10-29T21:25:09ZXSLT or Velocity<div><p>Velocity does not look like Java, so that you don't have to know
Java to use it efficiently. You may want to start with the book
written by <a href=
"http://www.linkedin.com/pub/jamie-johnson/13/2b0/418">Jamie
Johnson</a>. You may also want to check <a href=
"http://velocity.apache.org/">Apache Velocity Project</a> for more
details.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-30T17:22:02Z2014-10-30T17:22:02ZXSLT or Velocity<div><p>Hi Fernando,</p>
<p>I wanted to add that you may find the <a href=
"http://conference.hannonhill.com/2013/sessions/velocity-vs.-xslt-showdown-extravaganza.php">
Velocity and XSLT Showdown</a> session by Alvin Chao and Jason at
the 2013 User's Conference helpful for a quick comparison of the
two languages.</p>
<p>You can find the <a href=
"http://www3.hannonhill.com/csuc13-video-xslt-versus-velocity-faceoff-by-alvin-chao-and-jason-aller-hannon-hill-cascade-page">
video here</a> and the <a href=
"http://www.slideshare.net/hannonhill/velocity-vs">slides
here</a>.</p>
<p>From personal experience, I wouldn't count out one over the
other, because they both have their advantages and disadvantages.
If you can learn some of both, you definitely can't go wrong.</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/351138242014-10-30T17:33:09Z2014-10-30T17:33:09ZXSLT or Velocity<div><p>I absolutely agree. I don't plan to rewrite all my XSLT formats
using Velocity.</p>
<p>There is one more thing that is possible with XSLT but not with
Velocity. I can read an XSLT format, using web services, from
Cascade, and transform some XML definition, also read from Cascade
(for example, data definition, or workflow definition), and
transform the definition into something like SVG XML to be embedded
in a page. This can be done on the server, though all the data
comes from Cascade. I don't have the slightest idea how to do this
with Velocity.</p>
<p>Wing</p></div>Wing Ming Chan