Apache Tomcat の Exist DB を XML データベースとして使用し、FLWOR の「let」句で定義された次の xpath を渡してシーケンスを構築しようとしています。
$xpath := $root/second/third
次のように、ローカルで定義された関数宣言に変換します。
declare function local:someFunction($uuid as xs:string?, $xpath as xs:anyAtomicType?)
{
let $varOne := $xpath/fourth[@uuid = $uuid]/fifthRight
let $varTwo := $xpath/fourth[@uuid = $uuid]/fifthLeft
let $combined := ($varOne,$varTwo)
return $combined
};
もちろん、exist xquery サンドボックスにこれを入力すると、Type: xs:anyAtomicType is not defined が表示されます。代わりに何を使用する必要がありますか、またはこれを別の方法で行う必要がありますか?
ご提案いただきありがとうございます。