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.
Laurent Balland committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3ee73a4d1ee2b11564df2c001514bcfd8b5c632c tdf#163102 Replace DocBookTemplate.stw by build-in... It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.