I'm struggling a bit with XQuery especially in terms of collections. How would one take q query like for $x in doc('src/main/resources/xml/input.xml')//li return data($x) and apply it to a database with a collection of documents? What I'm after is something like: for $x in doc(*)//li return data($x) Also how are namespaces referenced/specified in queries?
Finally if anyone as any good XQuery resources would appreciate if if you could pass them along...
Hi Mike,
see here: http://docs.basex.org/wiki/Databases#XML_Documents
For an overwiew what's available: http://docs.basex.org/wiki/Modules
I mostly refer to the BaseX documentation (which is really good).
You might also have a look at: https://en.wikibooks.org/wiki/XQuery
e.g. https://en.wikibooks.org/wiki/XQuery/Updates_and_Namespaces
Regards, Max
2016-11-29 6:23 GMT+01:00 Mike Maul mike.maul@gmail.com:
I'm struggling a bit with XQuery especially in terms of collections. How would one take q query like for $x in doc('src/main/resources/xml/input.xml')//li return data($x) and apply it to a database with a collection of documents? What I'm after is something like: for $x in doc(*)//li return data($x) Also how are namespaces referenced/specified in queries?
Finally if anyone as any good XQuery resources would appreciate if if you could pass them along...
basex-talk@mailman.uni-konstanz.de