如何向 xml 数据库提供通过 html 表单获得的标签?

发布于 2024-08-25 00:10:25 字数 395 浏览 2 评论 0原文

我不是程序员。我从 Mac 上的 XML、HTML 表单和 XSLT 开始。

我计划使用一个表单在 XHTML 页面中发布短文本,并邀请最终用户向所述文本添加一些注释。用户将选择发布文本的特定部分,每个注释将代表一个特定的字符链。

我的目标是将从各种用户注释中获得的标签整合到一个包含原始文本和所有修订指示符的 XML“知识库”中。然后我计划使用 XSLT 表根据获得的标签生成各种报告。

我的两个问题是:

  1. 我在做梦吗? 真的有可能在不使用 Java、PHP、Ajax 或其他经验丰富的程序员工具的情况下使用 XML、XFORMS、XSLT 来做到这一点吗?

  2. 朝着这个方向进一步探索应该重点关注什么? 我应该研究哪些图式、事件、序列?

I'm not a programmer. I begin with XML, HTML forms and XSLT on Mac.

I plan to use a form to post short texts in a XHTML page and invite end users to add some annotations to the said text. The users would select a specific part of the text posted and each annotation would stand for one specific chain of characters.

My goal is to consolidate the tags obtained from various user's annotations to one XML "knowledge base" containing the original text with all the revision indicators. Then I plan to use XSLT sheets to product various reports based on the tags obtained.

My two questions are:

  1. Am I dreaming?
    Is it really possible to do that with XML, XFORMS , XSLT without using Java, PHP, Ajax or other seasoned programmer's tools?

  2. What should be my focus for further explorations aiming in that direction?
    Which schema, events, sequences should I study?

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

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

发布评论

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

评论(2

裸钻 2024-09-01 00:10:25

XML 是一种结构化数据的存储格式。它根本没有动态属性。

XForms 只是如何在 XML 中表示结构化表单的规范,它也没有动态属性。

虽然 XSLT 是一种编程语言,但它并不真正具有充当 Web 应用程序堆栈的功能。它通常与某种执行 HTTP 处理、文件 IO 和应用程序逻辑的“外部”编程语言结合使用。

你不会为了你的这个想法而回避编程。服务器上至少需要一种“经验丰富的程序员工具”,并且客户端上可能需要大量 JavaScript。

XML is a storage format for structured data. It has no dynamic properties at all.

XForms is merely a specification of how to represent structured forms in XML, it has no dynamic properties either.

While XSLT is a programming language, it does not really have the capabilities to function as a web application stack. It usually works in conjunction with some kind of "outer" programming language that does HTTP handling, file IO and application logic.

You will not get around programming for this idea of yours. At least one of the "seasoned programmer's tools" on the server and probably a lot of JavaScript on the client will be necessary.

错々过的事 2024-09-01 00:10:25

您将需要一些编程组件来将注释合并到 XML 知识库中。我不明白你如何才能避免这种情况。

You're going to need some programmatic component to consolidate the annotations into the XML knowledge base. I don't see how you can avoid that.

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