Bug 452115

Summary: docbook-xsl version 1.78.1 installs broken catalog file
Product: [Unmaintained] Craft Reporter: Ralf Habacker <ralf.habacker>
Component: BlueprintsAssignee: Hannah von Reth <vonreth>
Status: REPORTED ---    
Severity: normal CC: windows-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Bug Depends on: 452114    
Bug Blocks:    

Description Ralf Habacker 2022-03-31 14:43:43 UTC
SUMMARY
The craft package docbook-xsl for the current version 1.78.1 installs an xml catalog file called 'docbook-xsl-stylesheets.xml' with entries for resolving stylesheet URIs to real paths pointing to invalid directories.

STEPS TO REPRODUCE
1.  install craft following the howto at https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows#Installing_Craft
2. open craft shell
3.  run  'craft --no-cache docbook-xsl'
4. inspect related files and directories

OBSERVED RESULT
The stylesheets are installed at <craft-root>\bin\data\xml\docbook\xsl-stylesheets, but the entries in the catalog file installed at <craft-root>\etc\xml\docbook-xsl-stylesheets.xml refer to "xsl-stylesheets-1.78.1" as shown below.

    <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current"
                rewritePrefix="../../bin/data/xml/docbook/xsl-stylesheets-1.78.1"/>

EXPECTED RESULT
The entries must point to the correct directories.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
This error prevents the use of the global catalog files for docbook stylesheet processing with

$ set XML_CATALOG_FILES=<craft-root>\etc\xml\catalog
$ xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ...

to generate html files from docbook files, which was requested e.g. at https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/284.