在 eXistDB 中使用 XForms select 和 运行 Xquery

Using XForms to select and run an Xquery in eXistDB

我正在研究 Xforms 和 eXistDB,我一直坚持是否可以说选择下拉菜单并将选择用作变量,运行eXist 中的 xquery returns 结果。 我知道这可以通过 html 形式轻松完成,例如 <form method="GET" action="xquery-to-call.xq">,但我想使用 XForms 的高级功能。

看看 XSLTForms Files and XSLTForms Demo apps in the eXist-db public repository. You can find and install these into your local eXist instance via Dashboard > Package Manager. (I recommend XSLTForms over betterForms, since the latter is no longer maintained.) Once both the Files and Demo apps are installed, open http://localhost:8080/exist/apps/XSLTForms-Demo/index.html,您将能够浏览示例并探索源代码。

有关更多数据库驱动的示例,请参阅位于 https://en.wikibooks.org/wiki/XRX 的 XRX Wikibook。