My reason for asking the questions was maybe not as deep as this. My goal was to do exactly what you explain: create a template that produces output as I want it. However, one of the problems I found is that I never had a template where all of the “standard” Writer styles were displayed. So I would, at some point, use a different style and then realize I did not like how it looked. Then I would go back and mess around with the template, etc.
This has happened to me more than once. So I wanted a template document that showed me explicitly what each style looked like so that when I modified it, I could see if there were some that hadn’t been addressed.
If, in the future, a new style is added as an “expected” style in a new, vanilla installation of LibreOffice, the I could, theoretically, just add that style to the Python script and generate a new document.
The script is far form complete, but it does what I need it to do at the moment. If others find it useful, good! If not… well, at least I addressed what I wanted.
I still think that an official reference document for a vanilla installation of LibreOffice would be nice, especially for Writer. And maybe Impress. Those are the two where styling and inheritance are important.