We have an obsolete format .STW file in our distribution: share/xslt/docbook/DocBookTemplate.stw. It would be nice to change it to a normal supported file format.
Any idea how to test if the new file works correctly?
Created attachment 196902 [details] A DocBook to try I see some DocBook sample XMLs in https://github.com/developerworks/docbook_samples ; I attach one of them here. Likely, if you modify the template, the modifications will be visible in documents that you get when opening the DocBook XML in LibreOffice.
(In reply to Mike Kaganski from comment #2) > Created attachment 196902 [details] > A DocBook to try > > I see some DocBook sample XMLs in > https://github.com/developerworks/docbook_samples ; I attach one of them > here. Likely, if you modify the template, the modifications will be visible > in documents that you get when opening the DocBook XML in LibreOffice. Thanks Mike for your example. However, I failed correctly opening your XML file with the current DocBookTemplate.stw: another template seems to be used. For instance, according to DocBookTemplate.stw, headings should use Thorndale font whereas Albany font is used. My procedure: 1. File > Open 2. Select filter DocBook 3. Select ch00.xml 4. Open Is there a better procedure? Ongoing work is available: https://gerrit.libreoffice.org/c/core/+/174847 but needs some polish. And has no effect :-(
(In reply to Laurent Balland from comment #3) Indeed, I also was confused by the result. Yet, monitoring filesystem activity, I see that DocBookTemplate.stw is opened during import. So I guessed that it takes the parameters that we looked at from the XML document itself, as it should (it only needs the template for what is not defined in the document itself) - and made a test creating a custom style in the template (I named it ACustomStyleNotExistingInXML). After opening the XML, I found this style in the document -> success.