This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Groovy and the fly likes Groovy v XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy v XSLT" Watch "Groovy v XSLT" New topic
Author

Groovy v XSLT

Paul Wallace
Ranch Hand

Joined: Oct 09, 2006
Posts: 41
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

Joined: Nov 01, 2006
Posts: 43
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Groovy v XSLT
 
It's not a secret anymore!