Как мне "за ... упорядочить" на саксонском на Java - PullRequest
0 голосов
/ 20 февраля 2019

Обновление: Мне не хватало / в% n / '- все работает сейчас.

Это продолжение к этому вопросу .

Я звоню:

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 '"работает нормально.

Что не так с тем, как я это называю?

...