如何解析 c++ 中的 xsl:include 指令(无法使用.NET框架)

发布于 2024-10-07 12:59:45 字数 172 浏览 0 评论 0原文

我需要从数据库加载 xslt 并将其保存在内存中,以便它可以被另一个 xslt 包含。

我知道您可以使用 .NET 框架和 xmlPreLoadedResolver 类来完成此操作,但不幸的是,我们不允许将其编写为 .NET dll。

有谁知道是否可以使用 msxml6 C++ 接口来做到这一点?

I need to load an xslt from a database and hold it in memory so that it can be included by another xslt.

I know you can do this using the .NET framework and the xmlPreLoadedResolver class, but unfortunately, we're not allowed to write this as a .NET dll.

Does anyone know if its possible to do this using the msxml6 C++ interfaces?

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

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

发布评论

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

评论(2

柒夜笙歌凉 2024-10-14 12:59:45

MSXML 支持 XSLT 1.0。有关详细信息,请参阅此处:创建 XSLT 解决方案
http://msdn.microsoft.com/en-us/library/

基本上一切都基于 transformNodetransformNodeToObject 方法:transformNode方法

MSXML does support XSLT 1.0. See here for more on this: Creating XSLT Solutions

Basically everything is based on the transformNode and transformNodeToObject methods: transformNode Method

年华零落成诗 2024-10-14 12:59:45

最后,我们找到解决这个问题的唯一方法是编写一些加载顶级 xslt 的代码,这些代码可以加载所有依赖项并将它们“分解”到主 xslt 中。然后根据需要将这些分解的 xlst 保存在内存中。

In the end, the only way we could find to get around this was to write some code on loading the top-level xslts which could load up all the dependencies and 'explode' them into the main xslt. These exploded xlsts are then held in memory as required..

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