[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates v2 04/62] gnu: docbook-xsl: Add compatib
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates v2 04/62] gnu: docbook-xsl: Add compatibility entry. |
Date: |
Sat, 23 Sep 2023 15:19:39 +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 4a0104c253..55f99aae62 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 v2 00/62] Docbook & XML/SGML improvements., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 01/62] gnu: docbook-xml: Fix installation paths., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 22/62] gnu: xmlto: Add libxslt native-search-paths to its own., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 03/62] gnu: docbook-xml-5.1: Fix URIs in catalog.xml., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 10/62] gnu: docbook2x: Split documentation., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 19/62] gnu: lilypond: Use dblatex/stable., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 04/62] gnu: docbook-xsl: Add compatibility entry.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates v2 20/62] gnu: docbook2x: Set search-paths for XML and SGML catalogs., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 13/62] gnu: libxml2: Add SGML_CATALOG_FILES to native-search-path., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 28/62] gnu: udisks: Rewrite using G-Expressions., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 23/62] gnu: gtk-doc: Add libxslt native-search-paths to its own., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 08/62] gnu: docbook2x: Import patches from debian., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 05/62] gnu: docbook-xsl: Add rewrite entries for http., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 31/62] gnu: criu: Drop xmlto workaround., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 06/62] gnu: docbook: Remove leftovers., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 18/62] gnu: dblatex: Fix missing texlive binaries., Bruno Victal, 2023/09/23
- [bug#65479] [PATCH core-updates v2 12/62] search-paths: Add $XML_CATALOG_FILES and $SGML_CATALOG_FILES., Bruno Victal, 2023/09/23