• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Groovy v XSLT

 
Paul Wallace
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could Groovy be used as a replacement for XSLT? Aside from the fact that Groovy is a compiled language, does it have all the XML handling capabilities to replace XSLT as a way to transform XML? If so what features of Groovy are comparable to the functional aspects of XSLT such as Templates?

Regards

Paul
 
Dierk K├Ânig
author
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Processing XML is one of the strengths of Groovy.

I have done a serious amount of XSLT but I came to find a purely functional approach to tree conversions rather cumbersome to work with. Some tasks become deceptively easy while others like a simple 'if' condition or a mere loop become stumbling stones.

Groovy in Actions contains a lot of examples how to process XML, be it for transformation in to other XML, HTML, or any other format or purpose.

cheers
Dierk
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic