【发布时间】:2016-01-20 16:30:15
【问题描述】:
我有以下代码:
let $fName := "C:\Users\user\Documents\Sitemaps\Updated Pages\Books.xml"
file:write($fName,
element titles{
for $x in doc("http://www.w3schools.com/xsl/books.xml")/bookstore/book
where $x/price>0
order by $x/title
return $x/title
})
BaseX 给我一个错误 - “不完整的 FLWOR 表达式:期待‘返回’。”
它特别突出了file:write 行,用红色下划线file。
我不确定为什么会这样。我如何构造它以避免语法错误?
【问题讨论】: