有人可以给出一个使用xquery的html页面的例子吗,你需要别的东西才能运行xquery.
我试图从w3schools运行一些xquery代码,但它没有在html页面中进行评估.
<html>
<ul>
{
for $x in doc("books.xml")/bookstore/book/title
order by $x
return <li>{$x}</li>
}
</ul>
</html>
Run Code Online (Sandbox Code Playgroud)