是否可以使用 '/>' 使 BEA Portal 9.2 关闭链接和元标记? 那么它们是 XHTML 有效的吗?

发布于 2024-07-09 08:28:24 字数 423 浏览 5 评论 0原文

我正在尝试使 BEA Portal 网站兼容 XHTML,因为这已写在与客户的合同中,并且我陷入了这个问题:BEA 呈现 > 标签不带结束斜杠,即 ,因为 XHTML 需要它。

当我查看 BEA 的文档时,似乎应该可以使用结束斜杠来呈现标签: skin.properties 文件 (edocs.bea.com)

是否可以使用配置指令更改渲染? 或者也许,挂钩底层的重新渲染方法以便我可以修复它?

I'm trying to make a BEA Portal website XHTML compliant, because this has been written in the contract with the client, and I'm stuck on this problem: BEA renders <meta> and <link> tags without the closing slash, i.e. <link/> and <meta/> as it is required by XHTML.

When I look at the documentation from BEA it seems that it should be possible to make it render the tags with a closing slash: The skin.properties file (edocs.bea.com).

Is it possible to change the redering with a configuration directive? Or perhaps, to hook into the underlying redering method so that I can fix it?

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

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

发布评论

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

评论(2

落叶缤纷 2024-07-16 08:28:24

尝试将标记重写过滤器实现为反向代理中的重写规则或过滤器 Servlet。 不建议在门户本身中寻找答案......

Try a tag-rewriting filter implemented either as a rewrite rule in a reverse proxy or as a filter servlet. Wouldn't suggest looking for the answer in the portal itself...

苏大泽ㄣ 2024-07-16 08:28:24

对于不使用 XML 序列化程序的软件,XHTML 毫无意义(请参阅 SO 上有关 XHTML 的许多其他问题)。

如果您想让页面更符合标准,我建议瞄准 HTML4.01 Strict 或 HTML5(当然使用 CSS 进行布局 – 这不是 XHTML 特定的东西)。

For software that doesn't use XML serializer, XHTML is pointless (see numerous other questions on SO about XHTML).

If you want to make page more standards-compliant, I suggest aiming for HTML4.01 Strict or HTML5 (with CSS for layout of course – it's not XHTML-specific thing).

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