XQuery ファイルに HTML ボタンを作成しました。ファイルをクリックしたときに、ファイルの XQuery 関数を呼び出す方法を知りたいだけですか?
xquery version "1.0";
declare option exist:serialize "method=xhtml media-type=text/html";
declare function local:fn($str as xs:string) as xs:string
{
...
};
<html>
...
<input type="submit" onclick=" ? "/>
</html>
私は試した :
<input type="submit" value="Search" onclick="{local:fn()}"/>
しかし、うまくいきませんでした。