Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL core xml tag and XSLT sheet ?  RSS feed

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


On handling xml data with jstl, we could use pure jstl xml tag, like x:forEach..., OR we could write a separate XSLT sheet and then use x:transform to generate html.

These two methods, which one is better on what scenario ?

Any link or book is welcome.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is better, a hammer or a screwdriver?

Impossible to say without knowing what job it will be applied to.

Same with your question. The answer is the one best suited to whatever project it is to be applied.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:whatever project it is to be applied.

I agree with you. Then what is the best practice ?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward Chen wrote:Then what is the best practice ?
As I said, the best practice is to use the tool that seems to be the most appropriate for the job. As you haven't really told us anything about your project, no one can realistically venture an opinion regarding which approach might be better.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!