• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compare xslt and JSP?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two solutions to generate html:
xslt+xml generate html while jsp generate html.
Which solution is better? I guess jsp is running as servlet status once after tranlation, and xslt and xml will be translated in running period which take overload. So that the second solution has better performance than the first one.
Am I missing something? Very appreciate on correct me.
Thanks
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Good question. Here is already a great discussion on this topic. Go to check it.
One more question, your name doesnt agree with the name policy. To be a serious rancher here, read it carefully and reregister your name.
[ March 03, 2002: Message edited by: Doug Wang ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One solution is Cocoon (xml.apache.org) which combines xslt + xml + a jsp-like xsp language.
Although xslt does a lot of extra work compared to compiled jsp, there is a project called XSLTC to turn XSL into compiled java code. Supposedly a great speedup is possible.
Bill (currently working on a book about Cocoon)
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bill,

That's really interesting news about XSLTC.

I wonder how it will compare with XMLC from Enhydra?

http://xmlc.enhydra.org/
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found an article on XML performance at
http://developer.java.sun.com/developer/technicalArticles/xml/JavaTechandXML_part2/
That shows processing times for various approaches to XML - DOM vrs SAX vrs XSLT and appears to include something on XSLTC. Incidently, Sun started the development of XSLTC and then gave the project to the Apache organization so it is open source!!
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic