<bdo id='TJNSX'></bdo><ul id='TJNSX'></ul>

<i id='TJNSX'><tr id='TJNSX'><dt id='TJNSX'><q id='TJNSX'><span id='TJNSX'><b id='TJNSX'><form id='TJNSX'><ins id='TJNSX'></ins><ul id='TJNSX'></ul><sub id='TJNSX'></sub></form><legend id='TJNSX'></legend><bdo id='TJNSX'><pre id='TJNSX'><center id='TJNSX'></center></pre></bdo></b><th id='TJNSX'></th></span></q></dt></tr></i><div id='TJNSX'><tfoot id='TJNSX'></tfoot><dl id='TJNSX'><fieldset id='TJNSX'></fieldset></dl></div>

    1. <tfoot id='TJNSX'></tfoot>
    2. <legend id='TJNSX'><style id='TJNSX'><dir id='TJNSX'><q id='TJNSX'></q></dir></style></legend>
    3. <small id='TJNSX'></small><noframes id='TJNSX'>

      与 xml+xslt 完美搭配的最佳 Java Web 应用程序框架是什么?

      时间:2023-09-24
        <bdo id='4SIrA'></bdo><ul id='4SIrA'></ul>

          <tbody id='4SIrA'></tbody>
          <i id='4SIrA'><tr id='4SIrA'><dt id='4SIrA'><q id='4SIrA'><span id='4SIrA'><b id='4SIrA'><form id='4SIrA'><ins id='4SIrA'></ins><ul id='4SIrA'></ul><sub id='4SIrA'></sub></form><legend id='4SIrA'></legend><bdo id='4SIrA'><pre id='4SIrA'><center id='4SIrA'></center></pre></bdo></b><th id='4SIrA'></th></span></q></dt></tr></i><div id='4SIrA'><tfoot id='4SIrA'></tfoot><dl id='4SIrA'><fieldset id='4SIrA'></fieldset></dl></div>

            <small id='4SIrA'></small><noframes id='4SIrA'>

              <legend id='4SIrA'><style id='4SIrA'><dir id='4SIrA'><q id='4SIrA'></q></dir></style></legend>
              • <tfoot id='4SIrA'></tfoot>
              • 本文介绍了与 xml+xslt 完美搭配的最佳 Java Web 应用程序框架是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我最近了解了一些关于 xml/xslt 的知识,并想在我的 Web 项目中尝试一下.你会为此推荐什么框架?基本上,我想生成一个动态 xml,它将应用于客户端的 xslt 样式表.

                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 是我的第一个候选人,但它主要以 html 为中心.我的想法还没有实现.

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

                推荐答案

                如果您希望在客户端将 XSLT 样式表应用于从服务器接收的 XML(与您所写的相反 :)),您只需要使用

                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 ... ?>
                

                构造嵌入.

                如果您想在服务器端将 XSLT 应用于 XML 并将 HTML 返回给客户端 - 请不要打扰.我们在 21 世纪的早期就经历过这种情况——它不是非常可维护的解决方案,而且很难调试.但如果你想要(服务器端解决方案),我也推荐 SpringMVC 的 XLST 视图.还有 classic 和名为 Cocoon 的核心解决方案,它实现了 XML 管道 - 这很好从架构的角度来看,但在实际项目中确实很难使用,经典的 MVC 更适合.

                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.

                这篇关于与 xml+xslt 完美搭配的最佳 Java Web 应用程序框架是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Java中的验证框架 下一篇:Java 日志框架的最新选项是什么?

                相关文章

                <tfoot id='k359t'></tfoot>
                <legend id='k359t'><style id='k359t'><dir id='k359t'><q id='k359t'></q></dir></style></legend>

                <small id='k359t'></small><noframes id='k359t'>

                  1. <i id='k359t'><tr id='k359t'><dt id='k359t'><q id='k359t'><span id='k359t'><b id='k359t'><form id='k359t'><ins id='k359t'></ins><ul id='k359t'></ul><sub id='k359t'></sub></form><legend id='k359t'></legend><bdo id='k359t'><pre id='k359t'><center id='k359t'></center></pre></bdo></b><th id='k359t'></th></span></q></dt></tr></i><div id='k359t'><tfoot id='k359t'></tfoot><dl id='k359t'><fieldset id='k359t'></fieldset></dl></div>
                    • <bdo id='k359t'></bdo><ul id='k359t'></ul>