My previous posts did not seem to arive...
After some additional studying, it seems to be working now: assigning a
template to a document.
I've published it here:
https://nedcad.nl/en/libreoffice-writer-for-technical-documentation/
The link to the script is on that page too, hope it may help someone,
some day.