如何创建 XSLT 过滤器以将 ODT(包含 XForm)的所有内容提取为 XHTML
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确定哪个 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.