如何向 xml 数据库提供通过 html 表单获得的标签?
我不是程序员。我从 Mac 上的 XML、HTML 表单和 XSLT 开始。
我计划使用一个表单在 XHTML 页面中发布短文本,并邀请最终用户向所述文本添加一些注释。用户将选择发布文本的特定部分,每个注释将代表一个特定的字符链。
我的目标是将从各种用户注释中获得的标签整合到一个包含原始文本和所有修订指示符的 XML“知识库”中。然后我计划使用 XSLT 表根据获得的标签生成各种报告。
我的两个问题是:
我在做梦吗? 真的有可能在不使用 Java、PHP、Ajax 或其他经验丰富的程序员工具的情况下使用 XML、XFORMS、XSLT 来做到这一点吗?
朝着这个方向进一步探索应该重点关注什么? 我应该研究哪些图式、事件、序列?
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:
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?What should be my focus for further explorations aiming in that direction?
Which schema, events, sequences should I study?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
您将需要一些编程组件来将注释合并到 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.