r/xquery • u/YewTree1906 • Dec 26 '21
Help
Hello,
I need quick help with a xQuery-task - is anyone available? I'm a student, and I don't really understand how it works...
I am supposed to create multiple html files from an xml document. The pages should contain hyperlinks to each other. I know that I can include the html tags directly in my query, but then I have trouble creating multiple pages and links because the output html document doesn't even have a name?
If anyone has any ideas, I would really appreciate it - I can't seem to wrap my head around xquery.
1
u/kn0wjack Dec 27 '21
Get a processor, easiest would be the basex installer (basex.org), create a text file that ends with (.xq) and feed it to the basex executable.
Writing Files: https://docs.basex.org/wiki/File_Module#file:write
1
u/Kit_Saels Dec 26 '21
Show us your source code and maybe we can advise you.