[basex-talk] trying to rename all node elements from to

2020-06-18 Thread Nicholas
Hi, How do I rename all the "record" nodes in a database?  I'm trying: for $x in db:open("bccdc_covid19") return return rename node $x//record as "baz" but this gives back Stopped at ., 1/13: [XPDY0002] bc.rename.xq: no context value bound. or [XPST0003] Unexpected end of query:

Re: [basex-talk] trying to rename all node elements from to

2020-06-18 Thread Nicholas
Pardon, this indeed works: for $x in db:open("bccdc_covid19") return rename node $x//baz as "foo" but only for the first node baz -- how can I rename all of the nodes?  Or match an Xpath? It's CSV data, so the general layout (?) is csv/record/entry and instead of "record" I'd want that