r/xquery • • 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 Upvotes

4 comments sorted by

1

u/Kit_Saels Dec 26 '21

Show us your source code and maybe we can advise you.

1

u/YewTree1906 Dec 26 '21

unfortunately I don't really have any code I can show you, as I do not understand anything about xquery... the task is that I have multiple xml files (letters), and I have to create multiple html pages, but I can only use one 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