如何在Java上的撒克逊语中“按...排序”

时间:2019-02-20 18:44:39

标签: saxon

更新:我在%n /'中缺少/,现在可以正常使用。

这是this question的后续内容。

我打电话:

XQueryCompiler compiler = processor.newXQueryCompiler();
// 21 of the following
xPath.declareNamespace(prefix, uri);
// also tried without the ampersands around the /def:System...
xPath.compile("for $n in '/def:System/def:Securities[def:AssetType != 50]' order by $n'def:RiskLevel' return $n");

我得到: net.sf.saxon.s9api.SaxonApiException:预期“返回”,找到“”

如果我删除“按$ n'def:RiskLevel排序”,则效果很好。

我怎么称呼这个?

0 个答案:

没有答案
相关问题