What is the best java web application framework th

2019-02-20 02:01发布

I recently learned a bit about xml/xslt and would like to try it in my web project. What framework would you recommend for that? Basically, I want to generate a dynamic xml that will be applied to xslt stylesheet on the client side.

Wicket was my first candidate, but it is primarily html-centric. Didn't manage to get my idea work yet.

3条回答
再贱就再见
2楼-- · 2019-02-20 02:44

If you want XSLT stylesheets to be applied on the client-side to XMLs received from server (not opposite as you've written :)) you just have to return pure XML to the client with

<?xml-stylesheet ... ?>

construct embedded.

If you want to apply XSLTs to XMLs at server-side and return HTML to client - please dont' bother. We've been through this in very early years of XXI century - it's not very maintainable solution and very hard to debug. But if you want that (server-side solution), I also recommend SpringMVC's XLST view. There's also classic and hard-core solution called Cocoon which implements XML pipieline - it's nice from architectural point of view, but it's really hard to use in real projects, were classic MVC is more suitable.

查看更多
疯言疯语
3楼-- · 2019-02-20 02:58

Try ReXSL, which is XML+XSL web development framework, with a classic MVC pattern.

查看更多
成全新的幸福
4楼-- · 2019-02-20 02:59

Spring MVC has support for XSLT views (reference docs).

查看更多
登录 后发表回答