[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates v3 08/63] gnu: docbook-xsl: Add compatib
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates v3 08/63] gnu: docbook-xsl: Add compatibility entry. |
Date: |
Mon, 9 Oct 2023 21:05:56 +0100 |
Remap "http://docbook.sourceforge.net/release/xsl-ns/" to
"http://docbook.sourceforge.net/release/xsl/".
* gnu/packages/docbook.scm (docbook-xsl)[arguments]<#:phases>: Add
compatibility entry.
---
gnu/packages/docbook.scm | 41 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 40 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index d23844306c..b3b7a37249 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -388,7 +388,46 @@ (define-public docbook-xsl
"http://docbook.sourceforge.net/release/xsl/current/"
store-uri
catalog))
- (list "rewriteSystem" "rewriteURI")))
+ (list "rewriteSystem" "rewriteURI"))
+
+ ;; Originally the
+ ;; "http://docbook.sourceforge.net/release/xsl/"
+ ;; URI referred to the non-namespaced docbook-xsl,
+ ;; with its namespaced version using a URI differing in
+ ;; the path component as '…/xsl-ns/'.
+ ;; At some point the namespaced version was made the
+ ;; canonical docbook-xsl package whilst preserving the
+ ;; original URI.
+ ;;
+ ;; For compatibility with XML files that still specify
+ ;; the legacy namespaced docbook-xsl URIs we re-add them
+ ;; here.
+ (for-each
+ (lambda (type)
+ ;; Remap /xsl-ns/ to /xsl/.
+ ;; Note: URI resolutions are not recursive.
+ ;; A rewrite rule from:
+ ;; 'http://docbook.sourceforge.net/release/xsl-ns/'
+ ;; to
+ ;; 'http://docbook.sourceforge.net/release/xsl/'
+ ;; will not trigger the rewrite rule that ultimately
+ ;; remaps to a /gnu/store URI, as can be seen by
+ ;; invoking:
+ ;; $ xmlcatalog "" \
+ ;;
'http://docbook.sourceforge.net/release/xsl-ns/current/'
+ ;;
http://docbook.sourceforge.net/release/xsl/current/
+ ;; $ xmlcatalog "" \
+ ;;
'http://docbook.sourceforge.net/release/xsl/current/'
+ ;; file://gnu/store/…/xml/xsl/…
+ ;;
+ ;; See XML Catalog specification, item 7.2.2. for
+ ;; details.
+ (invoke xmlcatalog "--noout"
+ "--add" type
+
"http://docbook.sourceforge.net/release/xsl-ns/current/"
+ store-uri
+ catalog))
+ (list "rewriteSystem" "rewriteURI")))
catalog-files))))
(replace 'install
(lambda _
--
2.41.0
- [bug#65479] [PATCH core-updates v3 24/63] gnu: xmlto: Add libxslt native-search-paths to its own., (continued)
- [bug#65479] [PATCH core-updates v3 24/63] gnu: xmlto: Add libxslt native-search-paths to its own., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 26/63] gnu: secilc: Drop xmlto workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 25/63] gnu: gtk-doc: Add libxslt native-search-paths to its own., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 38/63] gnu: libxkbcommon: Add doc output., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 28/63] gnu: xdg-user-dirs: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 40/63] gnu: gnome-session: Remove libxml2., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 31/63] gnu: colord-gtk: Build documentation., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 27/63] gnu: xdg-utils: Drop docbook workarounds., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 08/63] gnu: docbook-xsl: Add compatibility entry.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates v3 46/63] gnu: iputils: Restyle description and native-inputs., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 51/63] gnu: tunctl: Update comment., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 49/63] gnu: alsa-utils: Build manpages., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 53/63] gnu: git: Drop docbook workarounds., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 48/63] gnu: libnotify: Split documentation., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 57/63] gnu: libstdc++-doc: Rewrite with G-Expressions., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 59/63] gnu: perf: Remove libxml2., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 56/63] gnu: gtk-doc: Remove leftovers., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 47/63] gnu: libnotify: Drop docbook workarounds., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 52/63] gnu: gdcm: Build manpages., Bruno Victal, 2023/10/09