BaseX error: No namespace declared for 'doc:csv'

两盒软妹~` 提交于 2021-01-07 01:35:31

问题


Referencing the csv module, how is the following data downloaded?

nicholas@mordor:~/flwor/covid$ 
nicholas@mordor:~/flwor/covid$ basex uri.xq 
Stopped at /home/nicholas/flwor/covid/uri.xq, 3/13:
[XPST0081] No namespace declared for 'doc:csv'.
nicholas@mordor:~/flwor/covid$ 
nicholas@mordor:~/flwor/covid$ cat uri.xq 
xquery version "3.1";

let $csv := doc:csv('http://www.bccdc.ca/Health-Info-Site/Documents/BCCDC_COVID19_Dashboard_Lab_Information.csv') as $data
return $data
nicholas@mordor:~/flwor/covid$ 

which of the following:

csv:parse csv:serialize csv:doc

is best used to grab this data?

and is there a missing import statement for the namespace?


with powershell:

how to get the column headers for CSV data with Powershell?

来源:https://stackoverflow.com/questions/65325993/basex-error-no-namespace-declared-for-doccsv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!