如何创建 XSLT 过滤器以将 ODT(包含 XForm)的所有内容提取为 XHTML

发布于 2024-12-21 11:02:05 字数 496 浏览 3 评论 0原文

我正在尝试使用 OpenOffice Writer 的导出功能从包含 XForm 的 ODT 创建 XHtml 文件。

我注意到 XForm 模型没有被导出。我复制了使用的默认 XSL 文件,并将“xsl:stylesheet”节点的“exclude-result-prefixes”更改为空字符串。

输出是一样的。我在互联网上搜索更多帮助并发现

https://issues.apache.org /ooo/show_bug.cgi?id=87731

此处提供的“xsl:template”标记有助于导出大部分内容。 1. XForm 实例、模型、绑定等。

然而,实际的控件仍然缺失...

我相信技巧在于“xsl:template”标签,但没有文档来了解导出功能如何使用它们。

对此有什么想法吗????

I'm trying to use the Export feature of OpenOffice Writer to create an XHtml File from an ODT containing an XForm.

What I noticed was that the XForm Model was not getting exported. I copied the default XSL file used and I changed the "xsl:stylesheet" node's "exclude-result-prefixes" to an empty string.

The output was the same. I searched the internet for more help and came across

https://issues.apache.org/ooo/show_bug.cgi?id=87731

The "xsl:template" tags provided here helped in exporting the most of the content.
1. The XForm instance, model, binding etc.

However the actual controls were still missing...

I believe the trick lies in "xsl:template" tags, but have no documentation to understand how the export feature uses them.

Any ideas on this?????

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

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

发布评论

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

评论(1

似梦非梦 2024-12-28 11:02:05

确定哪个 XHTML 元素映射到每个缺少的 XForms 控件,然后创建一个与每个控件匹配的 xsl:template,其中包含所需的 XHTML 输出。以下是一些类似转换样式表的示例:

XSLTForms 也是一个很好的参考。

Decide which XHTML element maps to each missing XForms control, then create a xsl:template matching each control which includes the desired XHTML output. Here are a few examples of similar conversion stylesheets:

XSLTForms is an excellent reference as well.

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