* add docbook5-xml

This commit is contained in:
Alexander Baldeck 2024-09-22 16:06:16 +02:00
parent 715f05a44d
commit 2cc67b5bac
5 changed files with 476 additions and 0 deletions

24
docbook5-xml/.SRCINFO Normal file
View File

@ -0,0 +1,24 @@
pkgbase = docbook5-xml
pkgdesc = a complete rewrite of the well-known DocBook 4 XML schema (DTD, Relax NG, W3C schema) for Docbook 5.X
pkgver = 5.1
pkgrel = 4
url = https://docbook.org/schemas/5x
install = docbook5-xml.install
arch = any
license = LicenseRef-docbook5-xml
makedepends = unzip
depends = libxml2
optdepends = perl: for docbook v4 upgrade tools
provides = docbook5-schemas
provides = docbook-xml-5.0
provides = docbook-xml-5.1
conflicts = docbook5-schemas
replaces = docbook5-schemas
source = https://docbook.org/xml/5.0/docbook-5.0.zip
source = https://docbook.org/xml/5.1/docbook-v5.1-os.zip
source = LICENSE
sha512sums = a245796881762cf001f0d32b7c87315cba0454750d6b4178e4546357e320e2ab602d84c08a7e44329f406a8d32340605671c351e87c0b9097582ebf6d10fede4
sha512sums = b55f8eda4dcff9d4ebd31876bc33c244ef3884afc167da1425531266963ba64000fbe619ec7c049ae65c0aab864a5a7228caef08b53f546e2686296d97190873
sha512sums = 141bed43f29da62cd012d1c684dd11adc6213f7c6331f98c8491f187d8d9b9aef2fc45e61e7b0574a80d590e963ff4ba6380213948def46900bde059ef946144
pkgname = docbook5-xml

View File

@ -0,0 +1,9 @@
[docbook5-xml]
#source = "github"
#github = "docbook/dsssl"
#use_max_tag = true
#ignore = "SVNSNAPSHOT"
source = "regex"
regex = "DocBook Version (\\d.+)[,]"
url = "https://docbook.org/specs/"

64
docbook5-xml/LICENSE Normal file
View File

@ -0,0 +1,64 @@
Notices
Copyright © OASIS Open 2015. All Rights Reserved.
All capitalized terms in the following text have the meanings assigned to them
in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The
full Policy may be found at the OASIS website.
This document and translations of it may be copied and furnished to others, and
derivative works that comment on or otherwise explain it or assist in its
implementation may be prepared, copied, published, and distributed, in whole or
in part, without restriction of any kind, provided that the above copyright
notice and this section are included on all such copies and derivative works.
However, this document itself may not be modified in any way, including by
removing the copyright notice or references to OASIS, except as needed for the
purpose of developing any document or deliverable produced by an OASIS Technical
Committee (in which case the rules applicable to copyrights, as set forth in the
OASIS IPR Policy, must be followed) or as required to translate it into
languages other than English.
The limited permissions granted above are perpetual and will not be revoked by
OASIS or its successors or assigns.
This document and the information contained herein is provided on an "AS IS"
basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE
ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE.
OASIS requests that any OASIS Party or any other party that believes it has
patent claims that would necessarily be infringed by implementations of this
OASIS Committee Specification or OASIS Standard, to notify OASIS TC
Administrator and provide an indication of its willingness to grant patent
licenses to such patent claims in a manner consistent with the IPR Mode of the
OASIS Technical Committee that produced this specification.
OASIS invites any party to contact the OASIS TC Administrator if it is aware of
a claim of ownership of any patent claims that would necessarily be infringed by
implementations of this specification by a patent holder that is not willing to
provide a license to such patent claims in a manner consistent with the IPR Mode
of the OASIS Technical Committee that produced this specification. OASIS may
include such claims on its website, but disclaims any obligation to do so.
OASIS takes no position regarding the validity or scope of any intellectual
property or other rights that might be claimed to pertain to the implementation
or use of the technology described in this document or the extent to which any
license under such rights might or might not be available; neither does it
represent that it has made any effort to identify any such rights. Information
on OASIS' procedures with respect to rights in any document or deliverable
produced by an OASIS Technical Committee can be found on the OASIS website.
Copies of claims of rights made available for publication and any assurances of
licenses to be made available, or the result of an attempt made to obtain a
general license or permission for the use of such proprietary rights by
implementers or users of this OASIS Committee Specification or OASIS Standard,
can be obtained from the OASIS TC Administrator. OASIS makes no representation
that any information or list of intellectual property rights will at any time be
complete, or that any claims in such list are, in fact, Essential Claims.
The name "OASIS" is a trademark of OASIS, the owner and developer of this
specification, and should be used only to refer to the organization and its
official outputs. OASIS welcomes reference to, and implementation and use of,
specifications, while reserving the right to enforce its marks against
misleading uses. Please see
https://www.oasis-open.org/policies-guidelines/trademark for above guidance.

327
docbook5-xml/PKGBUILD Normal file
View File

@ -0,0 +1,327 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Holger Rauch < holger dot rauch at posteo dot de >
# based on CentOS 7 rpm
# http://pkgs.org/centos-7/centos-x86_64/docbook5-schemas-5.0-10.el7.noarch.rpm.html
pkgname=docbook5-xml
pkgver=5.1
pkgrel=4
pkgdesc="a complete rewrite of the well-known DocBook 4 XML schema (DTD, Relax NG, W3C schema) for Docbook 5.X"
arch=('any')
depends=('libxml2')
makedepends=('unzip')
optdepends=('perl: for docbook v4 upgrade tools')
url="https://docbook.org/schemas/5x"
# unclear - Fedora: "Freely redistributable without restriction"
# the "DocBook: The Definitive Guide" book is released under GFDL-1.3-or-later -
# https://docbook.org/schemas/
# https://docs.oasis-open.org/docbook/docbook/v5.1/cs01/docbook-v5.1-cs01.html
# see chatpter: "Notices"
license=(LicenseRef-$pkgname)
source=(https://docbook.org/xml/5.0/docbook-5.0.zip
https://docbook.org/xml/5.1/docbook-v5.1-os.zip
LICENSE)
sha512sums=('a245796881762cf001f0d32b7c87315cba0454750d6b4178e4546357e320e2ab602d84c08a7e44329f406a8d32340605671c351e87c0b9097582ebf6d10fede4'
'b55f8eda4dcff9d4ebd31876bc33c244ef3884afc167da1425531266963ba64000fbe619ec7c049ae65c0aab864a5a7228caef08b53f546e2686296d97190873'
'141bed43f29da62cd012d1c684dd11adc6213f7c6331f98c8491f187d8d9b9aef2fc45e61e7b0574a80d590e963ff4ba6380213948def46900bde059ef946144')
install=$pkgname.install
provides=('docbook5-schemas' 'docbook-xml-5.0' 'docbook-xml-5.1')
replaces=('docbook5-schemas')
conflicts=('docbook5-schemas')
_datadir=/usr/share
_catalog50=docbook-5.0.xml
_catalog51=docbook-5.1.xml
build() {
# docbook-5.0
pushd "$srcdir/docbook-5.0"
xmlcatalog --create --noout ${_catalog50}
for v in 5.0; do
# DTD
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML ${v}//EN" \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/docbook.dtd" ${_catalog50}
xmlcatalog --noout --add "system" \
"http://www.oasis-open.org/docbook/xml/${v}/dtd/docbook.dtd" \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/docbook.dtd" ${_catalog50}
xmlcatalog --noout --add "system" \
"http://docbook.org/xml/${v}/dtd/docbook.dtd" \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/docbook.dtd" ${_catalog50}
# RNG
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rng/docbook.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rng" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbook.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rng" ${_catalog50}
# RNG+XInclude
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rng/docbookxi.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rng" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbookxi.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rng" ${_catalog50}
# RNC
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rnc/docbook.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rnc" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbook.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rnc" ${_catalog50}
# RNC+XInclude
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rnc/docbookxi.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rnc" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbookxi.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rnc" ${_catalog50}
# XSD
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/xsd/docbook.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/docbook.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/xsd/docbook.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/docbook.xsd" ${_catalog50}
# XSD + XInclude
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/xsd/docbookxi.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/docbookxi.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/xsd/docbookxi.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/docbookxi.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/xsd/xi.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/xi.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/xsd/xi.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/xi.xsd" ${_catalog50}
# XLink + XML
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/xsd/xlink.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/xlink.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/xsd/xlink.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/xlink.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/xsd/xml.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/xml.xsd" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/xsd/xml.xsd" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/xml.xsd" ${_catalog50}
# Schematron
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/sch/docbook.sch" \
"file://${_datadir}/xml/docbook/schema/sch/${v}/docbook.sch" ${_catalog50}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/sch/docbook.sch" \
"file://${_datadir}/xml/docbook/schema/sch/${v}/docbook.sch" ${_catalog50}
# ---------------------
# Build XML catalog files for each Schema
for s in dtd rng sch xsd; do
_schema_catalog=${s}/catalog.xml
xmlcatalog --noout --create ${_schema_catalog}
case $s in
dtd)
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML ${v}//EN" \
"docbook.dtd" ${_schema_catalog}
xmlcatalog --noout --add "system" \
"http://www.oasis-open.org/docbook/xml/${v}/dtd/docbook.dtd" \
"docbook.dtd" ${_schema_catalog}
;;
sch)
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
;;
rng)
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbookxi.${s}" \
"docbookxi.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.${s}" \
"docbookxi.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.rnc" \
"docbook.rnc" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.rnc" \
"docbook.rnc" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbookxi.rnc" \
"docbookxi.rnc" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.rnc" \
"docbookxi.rnc" ${_schema_catalog}
;;
xsd)
# https://docbook.org/xml/5.0/xsd/docbook.xsd
# https://docbook.org/xml/5.0/xsd/xml.xsd
# https://docbook.org/xml/5.0/xsd/xlink.xsd
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbookxi.${s}" \
"docbookxi.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.${s}" \
"docbookxi.${s}" ${_schema_catalog}
# XLink + XML:
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/xlink.xsd" \
"xlink.xsd" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/xlink.xsd" \
"xlink.xsd" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/xml.xsd" \
"xml.xsd" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/xml.xsd" \
"xml.xsd" ${_schema_catalog}
;;
esac
done
done
popd
# docbook-5.1
xmlcatalog --create --noout ${_catalog51}
for v in 5.1; do
# RNG
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rng/docbook.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rng" ${_catalog51}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbook.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rng" ${_catalog51}
# RNG+XInclude
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rng/docbookxi.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rng" ${_catalog51}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbookxi.rng" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rng" ${_catalog51}
# RNC
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rnc/docbook.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rnc" ${_catalog51}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbook.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbook.rnc" ${_catalog51}
# RNC+XInclude
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rnc/docbookxi.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rnc" ${_catalog51}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/rng/docbookxi.rnc" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/docbookxi.rnc" ${_catalog51}
# Schematron
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/sch/docbook.sch" \
"file://${_datadir}/xml/docbook/schema/sch/${v}/docbook.sch" ${_catalog51}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/sch/docbook.sch" \
"file://${_datadir}/xml/docbook/schema/sch/${v}/docbook.sch" ${_catalog51}
# ---------------------
# Build XML catalog files for each Schema
for s in schemas/rng schemas/sch; do
_schema_catalog=${s}/catalog.xml
xmlcatalog --noout --create ${_schema_catalog}
case $s in
sch)
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
;;
rng)
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
"docbook.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbookxi.${s}" \
"docbookxi.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.${s}" \
"docbookxi.${s}" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.rnc" \
"docbook.rnc" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.rnc" \
"docbook.rnc" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbookxi.rnc" \
"docbookxi.rnc" ${_schema_catalog}
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.rnc" \
"docbookxi.rnc" ${_schema_catalog}
;;
esac
done
done
}
package() {
_docbook5dir="${pkgdir}${_datadir}/xml/docbook"
# docbook-5.0
pushd "$srcdir/docbook-5.0"
for v in 5.0; do
for type in dtd rng sch xsd; do
mkdir -p ${_docbook5dir}/schema/${type}/${v}
install -m644 ${type}/* ${_docbook5dir}/schema/${type}/${v}
done
done
popd
# docbook-5.1
pushd "$srcdir/schemas"
for v in 5.1; do
for type in rng sch; do
mkdir -p ${_docbook5dir}/schema/${type}/${v}
install -m644 ${type}/* ${_docbook5dir}/schema/${type}/${v}
done
done
popd
mkdir -p "$pkgdir/usr/bin"
install -m755 tools/db4-entities.pl "$pkgdir/usr/bin"
mkdir -p "${_docbook5dir}/stylesheet/docbook5"
install -m644 tools/db4-upgrade.xsl "${_docbook5dir}/stylesheet/docbook5/"
# catalog configuration
mkdir -p "$pkgdir/etc/xml"
install -m644 docbook-5.0/${_catalog50} "$pkgdir/etc/xml/${_catalog50}"
install -m644 ${_catalog51} "$pkgdir/etc/xml/${_catalog51}"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

View File

@ -0,0 +1,52 @@
_datadir=/usr/share
_rootcatalog=/etc/xml/catalog
post_install() {
if [[ -w $_rootcatalog ]]; then
for v in 5.{0,1}; do
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML ${v}//EN" \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/${v}/dtd/" \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/dtd/" \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/rng/" \
"file://${_datadir}/xml/docbook/schema/rng/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/sch/" \
"file://${_datadir}/xml/docbook/schema/sch/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/xsd/" \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/catalog.xml" \
${_rootcatalog}
done
fi
}
post_remove() {
if [[ -w $_rootcatalog ]]; then
for v in 5.{0,1}; do
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook/schema/rng/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook/schema/sch/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook/schema/xsd/${v}/catalog.xml" \
${_rootcatalog}
done
fi
}