xquery 实际上可以从 CLI 中 运行 吗?
can xquery be run practically from the CLI?
this sample xquery
executed CLI 怎么样?
xquery version "1.0";
let $message := 'Hello World!'
return
<results>
<message>{$message}</message>
</results>
灵感来自 zx485 的回答:
Check the separate libxslt page
XSL Transformations, is a language for transforming XML documents into
other XML documents (or HTML/textual output).
A separate library called libxslt is available implementing XSLT-1.0
for libxml2. This module "libxslt" too can be found in the Gnome SVN
base.
You can check the progresses on the libxslt Changelog.
Daniel Veillard
你可以像 this extensive tutorial 那样用 Saxon 来做。
总结一下,将 XQuery 代码复制到一个文件(此处命名为 test.xq
),然后使用(当前版本的)Saxon 执行它:
java -cp saxon9he.jar net.sf.saxon.Query test.xq
示例案例中的输出将是
<results>
<message>Hello World!</message>
</results>
随心所欲。
this sample xquery
executed
xquery version "1.0";
let $message := 'Hello World!'
return
<results>
<message>{$message}</message>
</results>
灵感来自 zx485 的回答:
Check the separate libxslt page
XSL Transformations, is a language for transforming XML documents into other XML documents (or HTML/textual output).
A separate library called libxslt is available implementing XSLT-1.0 for libxml2. This module "libxslt" too can be found in the Gnome SVN base.
You can check the progresses on the libxslt Changelog.
Daniel Veillard
你可以像 this extensive tutorial 那样用 Saxon 来做。
总结一下,将 XQuery 代码复制到一个文件(此处命名为 test.xq
),然后使用(当前版本的)Saxon 执行它:
java -cp saxon9he.jar net.sf.saxon.Query test.xq
示例案例中的输出将是
<results>
<message>Hello World!</message>
</results>
随心所欲。