【发布时间】:2013-05-20 16:16:36
【问题描述】:
Saxon CE 是流行 XSLT 的 javascript 实现,其文档表明 Saxon-CE 已删除 XQuery 支持。
但是,Saxon-CE 中的 example documentation 在我看来是几个“选择”中的 XQuery。
具体...
<!-- Set up the empty board -->
<xsl:variable name="empty-board" as="xs:integer*" select="for $i in (1 to 64) return 0"/>
还有……
<!-- integer in range 0..63 -->
<xsl:sequence select="for $i in 1 to 64 return if ($i = $square + 1) then $move else $board[$i]"/>
作为 XSLT/Xpath/XQuery 的初学者,尤其是最近的 Saxon-CE,我很困惑。以上在我看来像 XQuery,但文档表明 Saxon-CE 不支持 XQuery。
以上真的是 XQuery 吗? Saxon-CE 是否真的支持 XQuery? 以上完全是另外一回事吗?
【问题讨论】: