Sitemesh 或 XSLT 用于布局

发布于 2024-12-05 20:07:22 字数 211 浏览 8 评论 0原文

我现在正在为我的 crm 项目设计布局。

现在我有两个选项,一个是 sitemesh 来定义布局,或者是 XSLT 来定义布局。

Sitemesh将在运行时从服务器运行,如果请求数量很高,不会造成任何问题?

我猜 XSLT 将在基于 Xpath 的浏览器上运行,这是正确的吗?

使用哪一个更好?

请帮助我

谢谢

I am designing a layout for my crm project now.

Now i am ended with 2 options one is sitemesh to define the layout or XSLT to define a layout.

Sitemesh will run at runtime from the server , it wont cause any issue if the number of request is high?

I guess XSLT will run at the browser based on the Xpath , is this correct?

Which one is better to use?

Please help me

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七颜 2024-12-12 20:07:22

您可以在浏览器或服务器上运行 XSLT。在服务器上运行它的优点是,无论用户使用什么浏览器,生成的 HTML 都是相同的。如果在 Web 浏览器中运行它,使用不同浏览器的用户可能会得到略有不同的结果,因为不同的 XSLT 转换引擎有不同的特性,有点像不同的 Web 浏览器在呈现相同的 HTML 和 CSS 时所做的那样。

我设计并教授了企业为期 1 天的 XSLT 入门课程。我喜欢 XSLT 的工作方式。尽管如此,它仍因运行缓慢且难以学习而受到批评。

我刚刚开始使用 SiteMesh 2.0,我真的很喜欢它。如果您不熟悉 XSLT 编码,您可能更喜欢使用 SiteMesh,因为它只是用您创建的页眉/页脚包装您的内容。您不必编写和调试 XSLT 代码。

You can run XSLT either in the browser or at the server. The advantage to running it at the server is that the HTML you generate will be the same regardless of what browser the user has. If you run it in the web browser, users with different browsers might get slightly different results, because different XSLT transformation engines have different quirks, kind of like different web browsers do when rendering the same HTML and CSS.

I've designed and taught a corporate 1-day intro to XSLT class. I love the way XSLT works. That said, it has been criticized for running slowly and being hard to learn.

I've just started using SiteMesh 2.0, and I really like it. If you are not familiar with XSLT coding, you may be more comfortable with SiteMesh, because it simply wraps your content with a header/footer you create. You don't have to write and debug XSLT code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文