Sync from SUSE:SLFO:Main docbook-xsl revision e690602dab98433b97ff1f0f60b0c741

This commit is contained in:
Adrian Schröter 2024-05-03 12:08:07 +02:00
commit 58d7b1858a
12 changed files with 2115 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

403
dbxslt-install.sh Normal file
View File

@ -0,0 +1,403 @@
#!/bin/bash
#
# Installs the DocBook XSL Stylesheets on openSUSE systems
#
# Author: Thomas Schraitle
# Copyright 2016-2018 toms@opensuse.org
#
# set -x
ME=${0##*/}
#
PACKAGE=docbook-xsl-stylesheets
PACKAGE_VERSION=
SOURCEDIR=
#----------------------------------------------------------------------
# System variables
BUILDROOT=
PREFIX=/usr
BINDIR=$PREFIX/bin
DATADIR=share
DOCDIR=$DATADIR/doc/packages
SYSCONFDIR=/etc
XMLCONFDIR=$SYSCONFDIR/xml
XMLDIR=$DATADIR/xml
XMLCATALOGDIR=$XMLCONFDIR/catalog.d
DBSTYLE_CATALOG=$XMLCATALOGDIR/$PACKAGE.xml
DB_XSL_ROOTDIR=$XMLDIR/docbook/stylesheet
DB_XSL_SUFFIX=nwalsh
DBSTYLE_DIR=$DB_XSL_ROOTDIR/$DB_XSL_SUFFIX
SYS_DBSTYLE_DIR=$PREFIX/$DBSTYLE_DIR
INSTALL_SCRIPTS=0
function exit_on_error() {
local result
result=${2:-1}
echo "ERROR: ${1}" >&2
exit $result;
}
function my_debug() {
# Syntax: my_debug "MESSAGE" [MORE ARGUMENTS...]
# Prints debug messages, if DEBUG_SCRIPT is non-empty
if [[ "$DEBUG_SCRIPT" ]]; then
echo -n -e "[debug] ${ME}: $@\n" >&2;
fi
}
function usage() {
cat << EOF
Installs the DocBook XSL Stylesheets
Usage:
$ME [OPTIONS]
Fine tuning of the installation directories:
--buildroot=DIR build root directory []
--prefix=DIR [${PREFIX}]
--bindir=DIR user executables [${BINDIR}]
--sysconfdir=DIR read-only single-machine data [${SYSCONFDIR}]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/DATADIR]
--datadir=DIR read-only architecture-independent data [${DATADIR}]
--docdir=DIR documentation root [PREFIX/${DOCDIR}]
--catalog-dir=DIR XML catalog directory to store all catalog files [${XMLCATALOGDIR}]
--db-xsl-suffix=SUFFIX the suffix that is appended to the DocBook stylesheet dir [${DB_XSL_SUFFIX}]
--db-xslt-dir=DIR root directory for DocBook stylesheets (without version)
[DATADIR/xml/docbook/stylesheet/DB_XSL_SUFFIX]
Behaviour
--skip-install-scripts Do not install any scripts [False]
Source package options:
--sourcedir=NAME directory of source directory
--package-name=NAME name of the package [$PACKAGE]
--package-version=VERSION version of the package [$PACKAGE_VERSION]
EOF
}
function printvariables() {
my_debug "Currently set variables:"
cat << EOF
package=$PACKAGE
package-version=$PACKAGE_VERSION
sourcedir=$SOURCEDIR
buildroot=$BUILDROOT
prefix=$PREFIX
bindir=$BINDIR
datadir=$DATADIR
docdir=$DOCDIR
xmldir=$XMLDIR
xsltrootdir=$XSLTROOTDIR
dbstyle_dir=$DBSTYLE_DIR
db_xsl_suffix=$DB_XSL_SUFFIX
#
sysconfdir=$SYSCONFDIR
xmlconfdir=$XMLCONFDIR
xmlcatalogdir=$XMLCATALOGDIR
dbstyle_catalog=$DBSTYLE_CATALOG
EOF
}
#----------------------------------------------------------------------
#
DEBUG_SCRIPT=
# Source Installation directories:
DBXSLT_DIRS="assembly common eclipse epub epub3 extensions fo \
images highlighting html htmlhelp lib javahelp manpages params \
profiling roundtrip slides template webhelp website xhtml xhtml-1_1 xhtml5"
# Without catalog.xml
DBXSLT_FILES="VERSION VERSION.xsl"
# Without INSTALL
DBXSLT_DOCFILES="AUTHORS BUGS COPYING NEWS.html NEWS.xml README TODO \
RELEASE-NOTES.html RELEASE-NOTES.pdf RELEASE-NOTES.txt RELEASE-NOTES.xml"
#----------------------------------------------------------------------
# printing help / catching errors
#
if [[ -z "$1" ]]; then
usage
printvariables
exit
fi
# datarootdir:,
longopt="help,debug,buildroot:,sourcedir:,\
package-name:,package-version:,\
bindir:,prefix:,datadir:,docdir:,sysconfdir:,\
skip-install-scripts,\
db-xslt-dir:,db-xsl-suffix:,catalog-dir:"
export POSIXLY_CORRECT=1
ARGS=$(getopt -o h,d -l $longopt -n $ME -- "$@")
eval set -- "$ARGS"
while true ; do
case "$1" in
-h|--help)
usage
# printvariables
exit
;;
-d|--debug)
DEBUG_SCRIPT=1
shift
;;
#
--sourcedir)
SOURCEDIR=$2
shift 2
;;
#
--package-name)
PACKAGE=$2
shift 2
;;
#
--package-version)
PACKAGE_VERSION="$2"
shift 2
;;
#
--buildroot)
BUILDROOT=$2
shift 2
;;
--bindir)
BINDIR=$2
shift 2
;;
--prefix)
PREFIX=$2
shift 2
;;
#--datarootdir)
# DATAROOTDIR=$2
# shift 2
# ;;
--datadir)
DATADIR=$2
shift 2
;;
--docdir)
DOCDIR=$2
shift 2
;;
--sysconfdir)
SYSCONFDIR=$2
shift 2
;;
#
--catalog-dir)
XMLCATALOGDIR=$2
shift 2
;;
#
--db-xslt-dir)
DBSTYLE_DIR=$2
shift 2
;;
#
--db-xsl-suffix)
DB_XSL_SUFFIX=$2
echo ">>>> $2"
shift 2
;;
--printvariables)
printvariables
exit 1
;;
#
--skip-install-scripts)
INSTALL_SCRIPTS=1
shift
;;
--)
break
;;
esac
done
unset POSIXLY_CORRECT
PREFIX=$BUILDROOT$PREFIX
BINDIR=$BUILDROOT$BINDIR
DATADIR=$PREFIX/$DATADIR
DOCDIR=$PREFIX/$DOCDIR
XMLDIR=$PREFIX/$XMLDIR
XSLTROOTDIR=$PREFIX$XSLTROOTDIR
DBSTYLE_DIR=$PREFIX/$DB_XSL_ROOTDIR/$DB_XSL_SUFFIX
#
SYSCONFDIR=$BUILDROOT$SYSCONFDIR
XMLCONFDIR=$BUILDROOT$XMLCONFDIR
XMLCATALOGDIR=$BUILDROOT$XMLCATALOGDIR
# DBSTYLE_CATALOG=$BUILDROOT$DBSTYLE_CATALOG
DBSTYLE_CATALOG=$XMLCATALOGDIR/$PACKAGE.xml
printvariables
# exit 1
# Consistency check
[[ -z $SOURCEDIR ]] && exit_on_error "Source directory not set. Use --sourcedir DIRECTORY"
# exit 100
#----------------------------------------------------------------------
#
#
function create_directory_structure() {
local i
my_debug "\n\n=== Create directory structure ==="
for i in $PREFIX $BINDIR $DATADIR $XMLCATALOGDIR \
$DOCDIR/$PACKAGE/html $DBSTYLE_DIR/$PACKAGE_VERSION; do
mkdir ${DEBUG_SCRIPT:+-v} -p $i
[[ $? -ne 0 ]] && exit_on_error "Could not create $i directory"
done
}
#----------------------------------------------------------------------
#
#
function install_dbxsltdirs() {
my_debug "\n\n=== Install all DocBook XSL stylesheet directories ==="
for dir in $DBXSLT_DIRS; do
my_debug "Copy directory $dir..."
cp -a $SOURCEDIR/$dir $DBSTYLE_DIR/$PACKAGE_VERSION
done
}
function install_scripts() {
my_debug "\n\n=== Install scripts ==="
install ${DEBUG_SCRIPT:+-v} -m755 $SOURCEDIR/fo/pdf2index $BINDIR
install ${DEBUG_SCRIPT:+-v} -m755 $SOURCEDIR/epub/bin/dbtoepub $BINDIR
# install ${DEBUG_SCRIPT:+-v} -m755 $SOURCEDIR/slides/images/callouts/gen.sh $BINDIR/callout-gen
# rm fo/pdf2index epub/bin/dbtoepub slides/images/callouts/gen.sh
}
function install_dbxsltfiles() {
my_debug "\n\n=== Install other files ==="
for file in $DBXSLT_FILES; do
my_debug "Copy $file..."
cp -a $SOURCEDIR/$file $DBSTYLE_DIR/$PACKAGE_VERSION
done
}
function install_dbxsltdocfiles() {
my_debug "\n\n=== Install documentation ==="
my_debug " Current dir: $PWD"
for file in $DBXSLT_DOCFILES; do
cp ${DEBUG_SCRIPT:+-v} $SOURCEDIR/$file $DOCDIR/$PACKAGE
# $DBSTYLE_DIR/$PACKAGE_VERSION
done
}
function create_link() {
my_debug "\n\n=== Create link ==="
pushd $DBSTYLE_DIR
ln ${DEBUG_SCRIPT:+-v} -s ${PACKAGE_VERSION} current
popd
}
function create_dbxslt_catalog() {
my_debug "\n\n=== Create catalog file ==="
# /etc/xml/catalog.d/docbook-xsl-stylesheets.xml
xmlcatalog --noout --create $DBSTYLE_CATALOG
}
function create_dbxslt_addentries() {
my_debug "\n\n=== Create entries in the catalog file ==="
DBSTYLE_DIR=$DB_XSL_ROOTDIR/$DB_XSL_SUFFIX
# Don't be confused, see docbook-apps mailinglist
local CDN4_XSL_URL="http://cdn.docbook.org/release/xsl-nons"
local CDN5_XSL_URL="http://cdn.docbook.org/release/xsl"
local DB4_XSL_URL="http://docbook.sourceforge.net/release/xsl/"
local DB5_XSL_URL="http://docbook.sourceforge.net/release/xsl-ns/"
local CDN_XSL_URL DB_XSL_URL
CDN_XSL_URL=$CDN4_XSL_URL
DB_XSL_URL=$DB4_XSL_URL
# This is flaky and not ideal. :-(
if [[ $DB_XSL_SUFFIX = "nwalsh5" ]]; then
CDN_XSL_URL=$CDN5_XSL_URL
DB_XSL_URL=$DB5_XSL_URL
fi
my_debug "Using URL=${DB_XSL_URL}"
my_debug "Using URL=${CDN_XSL_URL}"
my_debug "Using system path=${DBSTYLE_DIR}"
# Create first the old DocBook SF identifiers:
xmlcatalog --noout --add "rewriteSystem" \
"${DB_XSL_URL}${PACKAGE_VERSION}" \
"file://$SYS_DBSTYLE_DIR/${PACKAGE_VERSION}" $DBSTYLE_CATALOG
xmlcatalog --noout --add "rewriteURI" \
"${DB_XSL_URL}${PACKAGE_VERSION}" \
"file://$SYS_DBSTYLE_DIR/$PACKAGE_VERSION" $DBSTYLE_CATALOG
xmlcatalog --noout --add "rewriteSystem" \
"${DB_XSL_URL}current" \
"file://$SYS_DBSTYLE_DIR/current" $DBSTYLE_CATALOG
xmlcatalog --noout --add "rewriteURI" \
"${DB_XSL_URL}current" \
"file://$SYS_DBSTYLE_DIR/current" $DBSTYLE_CATALOG
# Create the new DocBook XSL identifier:
xmlcatalog --noout --add "rewriteURI" \
"${CDN_XSL_URL}/${PACKAGE_VERSION}" \
"file://$SYS_DBSTYLE_DIR/${PACKAGE_VERSION}" $DBSTYLE_CATALOG
xmlcatalog --noout --add "rewriteSystem" \
"${CDN_XSL_URL}/${PACKAGE_VERSION}" \
"file://$SYS_DBSTYLE_DIR/${PACKAGE_VERSION}" $DBSTYLE_CATALOG
xmlcatalog --noout --add "rewriteURI" \
"${CDN_XSL_URL}/current" \
"file://$SYS_DBSTYLE_DIR/current" $DBSTYLE_CATALOG
xmlcatalog --noout --add "rewriteSystem" \
"${CDN_XSL_URL}/current" \
"file://$SYS_DBSTYLE_DIR/current" $DBSTYLE_CATALOG
}
function cleanup_buildroot() {
rm $DBSTYLE_DIR/$PACKAGE_VERSION/fo/pdf2index \
$DBSTYLE_DIR/$PACKAGE_VERSION/epub/bin/dbtoepub \
$DBSTYLE_DIR/$PACKAGE_VERSION/slides/images/callouts/gen.sh
}
#----------------------------------------------------------------------
# MAIN
#
[[ -e "$SOURCEDIR" ]] || exit_on_error "Could not find directory $SOURCEDIR"
#
#
create_directory_structure
install_dbxsltdirs
install_dbxsltfiles
[[ 0 -eq $INSTALL_SCRIPTS ]] && install_scripts
# install_dbxsltdocfiles
create_link
#
# create_dbxslt_catalog
# create_dbxslt_addentries
# cleanup_buildroot
my_debug "\n\n=== Finished script."
# EOF

View File

@ -0,0 +1,28 @@
From 6127d2e45b635dd073973b5aec81acf4d8df30b3 Mon Sep 17 00:00:00 2001
From: Tom Schraitle <tom_schr@web.de>
Date: Wed, 19 Apr 2023 15:01:58 +0200
Subject: [PATCH 1/1] Assembly: Copy xml:lang on <structure>
This is a first patch to copy the missing xml:lang attribute to the
result file.
It's still not yet clear, if this will be fixed upstream and how. Other
attributes like role, os etc. might be also affected.
For details, see the docbook mailinglist:
https://lists.oasis-open.org/archives/docbook/202304/msg00012.html
---
assembly/assemble.xsl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -ur docbook-xsl-1.79.2.bak/assembly/assemble.xsl docbook-xsl-1.79.2/assembly/assemble.xsl
--- docbook-xsl-1.79.2.bak/assembly/assemble.xsl 2016-12-09 23:39:10.000000000 +0100
+++ docbook-xsl-1.79.2/assembly/assemble.xsl 2023-04-19 14:54:16.562030329 +0200
@@ -123,7 +123,7 @@
<xsl:attribute name="version">
<xsl:value-of select="$docbook.version"/>
</xsl:attribute>
- <xsl:copy-of select="@xml:id"/>
+ <xsl:copy-of select="@xml:id|@xml:lang"/>
<!-- use the merge element if present -->
<xsl:call-template name="merge.info">

BIN
docbook-xsl-1.79.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,13 @@
diff -ur docbook-xsl-1.76.1.orig/epub/bin/dbtoepub docbook-xsl-1.76.1/epub/bin/dbtoepub
--- docbook-xsl-1.76.1.orig/epub/bin/dbtoepub 2010-09-13 23:59:41.000000000 +0200
+++ docbook-xsl-1.76.1/epub/bin/dbtoepub 2011-04-12 09:43:49.000000000 +0200
@@ -17,7 +17,7 @@
# layer (imports epub/docbook.xsl).
# -v, --verbose Make output verbose.
-lib = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
+lib= '/usr/share/xml/docbook/stylesheet/nwalsh/current/epub/bin/lib'
$LOAD_PATH.unshift(lib) if File.exist?(lib)
require 'fileutils'
Nur in docbook-xsl-1.76.1/epub/bin: dbtoepub~.

BIN
docbook-xsl-doc-1.79.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,33 @@
Description: use EXSLT "replace" function when available
A recursive implementation of string.subst is problematic,
long strings with many matches will cause stack overflows.
Author: Peter De Wachter <pdewacht@gmail.com>
Bug-Debian: https://bugs.debian.org/750593
Index: docbook-xsl-1.79.2/lib/lib.xsl
===================================================================
--- docbook-xsl-1.79.2.orig/lib/lib.xsl
+++ docbook-xsl-1.79.2/lib/lib.xsl
@@ -6,7 +6,11 @@
This module implements DTD-independent functions
- ******************************************************************** --><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ ******************************************************************** -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str"
+ version="1.0">
<xsl:template name="dot.count">
<!-- Returns the number of "." characters in a string -->
@@ -52,6 +56,9 @@
<xsl:param name="replacement"/>
<xsl:choose>
+ <xsl:when test="function-available('str:replace')">
+ <xsl:value-of select="str:replace($string, string($target), string($replacement))"/>
+ </xsl:when>
<xsl:when test="contains($string, $target)">
<xsl:variable name="rest">
<xsl:call-template name="string.subst">

View File

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="docbook-xsl-stylesheets">
<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/@VERSION@"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/@VERSION@"/>
<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/current"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/current"/>
<rewriteURI uriStartString="http://cdn.docbook.org/release/xsl-nons/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/@VERSION@"/>
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl-nons/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/@VERSION@"/>
<rewriteURI uriStartString="http://cdn.docbook.org/release/xsl-nons/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/current"/>
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl-nons/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh/current"/>
</group>
</catalog>

828
docbook-xsl.changes Normal file
View File

@ -0,0 +1,828 @@
-------------------------------------------------------------------
Wed Apr 19 15:29:00 UTC 2023 - Thomas Schraitle <thomas.schraitle@suse.com> - 1.79.2.1
* Raise version to 1.79.2.1
* Patch assembly/assemble.xsl
Copy the missing xml:lang attribute to the result file.
docbook-xsl-1.79.2-assembly-assemble.xsl.patch
For details, see the docbook mailinglist:
https://lists.oasis-open.org/archives/docbook/202304/msg00012.html
-------------------------------------------------------------------
Wed Mar 28 14:52:19 UTC 2018 - thomas.schraitle@suse.com
- Spec file:
Missing 'g' in sed replacements of @VERSION@ of catalog files.
This is needed to avoid the string "@VERSION@" in our installed
catalog files. This leads to catalog resolution errors.
- Applied spec-cleaner
-------------------------------------------------------------------
Wed Nov 22 08:34:21 UTC 2017 - thomas.schraitle@suse.com
- Abandom the docbook-xsl-stylesheets-script package.
The dbtoepub script is available from the rubygem-dbtoepub
package.
The script pdf2index is available in docbook-xsl-pdf2index
-------------------------------------------------------------------
Sun Nov 19 17:03:25 UTC 2017 - thomas.schraitle@suse.com
- First attempt to build the two DocBook stylesheet packages
from a single source:
- Added xslnons-build script from upstream.
- Improved dbxslt-install.sh script a lot
-------------------------------------------------------------------
Tue Nov 14 12:44:15 UTC 2017 - thomas.schraitle@suse.com
- Fix bsc#1063066:
From 1.79.1 and later, upstream decided to release namespace
aware stylesheets only. The non-NS stylesheets have to be built
with the "xslnons-build" script (taken from upstream).
This is integrated now.
The switch from NS-aware to non-NS stylesheets help to fix this
problem.
-------------------------------------------------------------------
Fri Oct 27 07:35:44 UTC 2017 - mpluskal@suse.com
- Restore working patch (bsc#1063066):
* Rebase docbook-xsl-stylesheets-non-recursive_string_subst.patch
-------------------------------------------------------------------
Sun Oct 1 14:45:19 UTC 2017 - aavindraa@gmail.com
- Update to version 1.79.2
- Rebase docbook-xsl-stylesheets-non-recursive_string_subst.patch
- callout-gen is removed
-------------------------------------------------------------------
Sat Aug 26 12:07:41 UTC 2017 - thomas.schraitle@suse.com
- Add docbook-xsl-stylesheets-non-recursive_string_subst.patch
Use str:replace from exslt.org to implement string.subst
string.subst implementation causes recursion issues when building
systemd documentation. This issue has been reported in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765567 and
https://bugs.archlinux.org/task/54694 .
Taken from https://github.com/fishilico/xslt10-stylesheets/commit/a7df4fbbef3ab0f97d50aa47f2ccfa0630a2686e
-------------------------------------------------------------------
Tue Feb 7 16:40:58 UTC 2017 - dimstar@opensuse.org
- Explicitly package %{_docdir}/%{name} to fix build with RPM 4.13.
-------------------------------------------------------------------
Tue Jul 19 11:44:56 UTC 2016 - fvogt@suse.com
- Use update-xml-catalog
-------------------------------------------------------------------
Mon Dec 21 09:44:33 UTC 2015 - mpluskal@suse.com
- Update download urls
-------------------------------------------------------------------
Sat Dec 12 18:35:36 UTC 2015 - p.drouand@gmail.com
- Update to version 1.79.0, see
http://snapshots.docbook.org/xsl/RELEASE-NOTES.html#V1.79.0
for details (Mostly bugfix release)
- Remove obsolete patches
* docbook-xsl-stylesheets-epub3-base.dir.patch
* docbook-xsl-stylesheets-manpages-other-r9847.patch
- Perform a spec-cleaner on the spec file
-------------------------------------------------------------------
Wed Apr 29 09:38:13 UTC 2015 - toms@opensuse.org
- Fixed bsc#928753 (added missing template directory)
- Slightly corrected file list
-------------------------------------------------------------------
Thu Feb 19 12:25:28 UTC 2015 - toms@opensuse.org
- Slightly adapted %post and %postun section to fix bsc#918565
-------------------------------------------------------------------
Mon Jan 12 09:53:49 UTC 2015 - fsundermeyer@opensuse.org
- Added missing images directory to install-script dbxslt-install.sh
-------------------------------------------------------------------
Thu Feb 6 13:30:10 UTC 2014 - toms@opensuse.org
- Fixed bnc#842844 and added upstream patch from r9847 of docbook#1313
(File docbook-xsl-stylesheets-manpages-other-r9847.patch)
-------------------------------------------------------------------
Thu Feb 6 12:03:53 UTC 2014 - ke@suse.com
- .spec: syntax fix.
-------------------------------------------------------------------
Mon Dec 9 13:49:49 UTC 2013 - toms@opensuse.org
- Added missing patch description to follow Patch Guidlines
(see http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines)
- Added upstream patch (r9732-r9743 for base.dir parameter in EPUB3)
-------------------------------------------------------------------
Mon Sep 23 13:51:41 UTC 2013 - toms@opensuse.org
- Moved installation procedure into dbxslt-install.sh Shell script
-------------------------------------------------------------------
Fri Jun 28 09:12:59 UTC 2013 - toms@opensuse.org
- Corrected conflict with docbook5-xsl-stylesheets:
Created subpackage with pdf2index (which raised this conflict)
and moved other scripts too (db2epub, callout-gen).
This makes it easier to install both variantes of the
stylesheets
-------------------------------------------------------------------
Fri May 31 16:03:17 UTC 2013 - varkoly@suse.com
- Fix spec to avoid conflict with docbook5-xsl-stylesheets
-------------------------------------------------------------------
Mon Mar 18 09:42:59 UTC 2013 - toms@opensuse.org
- Update to 1.78.1, see http://snapshots.docbook.org/xsl/RELEASE-NOTES.html#V1.78.1
for details
- Added %exclude in SPEC file for .htaccess files
-------------------------------------------------------------------
Thu Jan 17 19:41:11 UTC 2013 - p.drouand@gmail.com
- Updated to 1.78.0, see http://snapshots.docbook.org/xsl/RELEASE-NOTES.html#V1.78.0
for details (Mostly bugfix release)
-------------------------------------------------------------------
Mon Jun 11 13:13:30 UTC 2012 - toms@opensuse.org
- Fixed SPEC file:
* added missing db2epub in /epub/bin/
* create symbolic links (-s) with fdupes
-------------------------------------------------------------------
Tue Jun 5 09:57:35 UTC 2012 - toms@opensuse.org
- Updated to 1.77.1, see http://snapshots.docbook.org/xsl/RELEASE-NOTES.html#V1.77.1
for details (Mostly bugfix release)
- Fixed spec file to copy VERSION.xsl instead of VERSION
-------------------------------------------------------------------
Fri May 25 08:53:52 UTC 2012 - toms@opensuse.org
- Updated to 1.77.0, see http://snapshots.docbook.org/xsl/RELEASE-NOTES.html#V1.77.0
for details
(Merged from Factory)
-------------------------------------------------------------------
Thu Jan 12 11:30:33 UTC 2012 - coolo@suse.com
- change license to be in spdx.org format
-------------------------------------------------------------------
Wed Sep 21 10:32:26 UTC 2011 - coolo@suse.com
- remove ruby requires, there is nothing in here using ruby and
ruby needs this package indirectly - creating a build cycle
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
(cf. packaging guidelines)
-------------------------------------------------------------------
Tue Apr 12 06:30:39 UTC 2011 - toms@suse.de
- Update to 1.76.1; for news, see
http://lists.oasis-open.org/archives/docbook-apps/201011/msg00007.html
- Moved pdf2index and dbtoepub to /usr/bin
- Cleaned up Spec file to avoid rpmlint warnings
- Removed now obsolete chunktoc-fix.patch
-------------------------------------------------------------------
Wed Apr 14 12:28:37 CEST 2010 - mmarek@suse.cz
- chunktoc.xsl: Added missing namespace declarations. Closes
bug #2890069.
-------------------------------------------------------------------
Wed Dec 23 11:02:09 UTC 2009 - aj@suse.de
- Fix last patch to remove another release number.
-------------------------------------------------------------------
Mon Aug 17 09:51:51 CEST 2009 - aj@suse.de
- Only remove file from catalog if it disappeared.
- Do not use release numbers, they're not needed anymore.
-------------------------------------------------------------------
Tue Jul 28 10:57:43 CEST 2009 - ke@suse.de
- Update to 1.75.2; for news, see
http://lists.oasis-open.org/archives/docbook-apps/200907/msg00046.html
-------------------------------------------------------------------
Tue Jun 16 06:45:46 CEST 2009 - ke@suse.de
- Update to 1.75.1; for news, see
http://lists.oasis-open.org/archives/docbook-apps/200905/msg00165.html
http://lists.oasis-open.org/archives/docbook-apps/200905/msg00018.html
-------------------------------------------------------------------
Fri May 8 11:10:21 CEST 2009 - ke@suse.de
- Update to version 1.75.0; for news, see
http://sourceforge.net/forum/forum.php?forum_id=951185.
-------------------------------------------------------------------
Wed Mar 11 15:04:44 CET 2009 - ke@suse.de
- Update to version 1.74.3; for news, see
http://sourceforge.net/forum/forum.php?forum_id=920190.
-------------------------------------------------------------------
Wed Jul 23 15:21:20 CEST 2008 - ke@suse.de
- 1.74.0: Important bug fixes and the following significant feature
changes. For more information, see
http://sourceforge.net/forum/forum.php?forum_id=831189; excerpt:
* .epub target. Read more about this target in epub/README.
* XHTML 1.1 target.
* A number of locales have been updated.
* Table, figure, template syncronization, and character style
improvements have been made for WordML & Pages. Support added for
OpenOffice.org.
-------------------------------------------------------------------
Mon Jan 14 15:51:12 CET 2008 - ke@suse.de
- 1.73.2: minor bug-fix release:
* Fix footnote handling in FO output.
- Remove obsolete Provides/Obsoletes (docbkxsl).
-------------------------------------------------------------------
Mon Aug 20 08:26:04 CEST 2007 - toms@suse.de
- Update to version 1.73.1, bugfix release:
Gentext:
* Mauritz Jeanson: locale/de.xml
Applied patch #1766009.
* Michael(tm) Smith: locale/lv.xml
Added localization for ProductionSet.
FO:
* Mauritz Jeanson: table.xsl
Modified the tgroup template so that, for tables with multiple tgroups,
a width attribute is output on all corresponding fo:tables. Previously,
there was a test prohibiting this (and a comment saying that outputting more
than one width attribute will cause an error). But this seems to be no longer
relevant; it is not a problem with FOP 0.93 or XEP 4.10. Closes bug #1760559.
* Mauritz Jeanson: graphics.xsl
Replaced useless <a> elements with warning messages (textinsert extension).
* Mauritz Jeanson: admon.xsl
Enabled generation of ids (on fo:wrapper) for indexterms in admonition titles,
so that page references in the index can be created. Closes bug #1775086.
HTML:
* Mauritz Jeanson: titlepage.xsl
Added <xsl:call-template name="process.footnotes"/> to abstract template
so that footnotes in info/abstract are processed. Closes bug #1760907.
* Michael(tm) Smith: pi.xsl; synop.xsl
Changed handling of HTML output for the cmdsynopsis and
funcsynopsis elements, such that a@id instances are generated for
them if they are descendants of any element containing a dbcmdlist
or dbfunclist PI. Also, update the embedded reference docs for the
dbcmdlist and dbfunclist PIs to make it clear that they can be
used within any element for which cmdsynopsis or funcsynopsis are
valid children.
* Michael(tm) Smith: formal.xsl
Reverted the part of revision 6952 that caused a@id anchors to be
generated for output of informal objects. Thanks to Sam Steingold
for reporting.
* Robert Stayton: glossary.xsl
Account for a glossary with no glossdiv or glossentry children.
* Mauritz Jeanson: titlepage.xsl
Modified legalnotice template so that the base.name parameter is calculated
in the same way as for revhistory chunks. Using <xsl:apply-templates
mode="chunk-filename" select="."/> did not work for single-page output since
the template with that mode is in chunk-code.xsl.
* Mauritz Jeanson: graphics.xsl
Updated support for SVG (must be a child of imagedata in DB 5).
Added support for MathML in imagedata.
* Mauritz Jeanson: pi.xsl
Added documentation for the dbhh PI (used for context-sensitive HTML Help).
(The two templates matching 'dbhh' are still in htmlhelp-common.xsl).
Manpages:
* Michael(tm) Smith: endnotes.xsl
In manpages output, generate warnings about notesources with
non-para children only if the notesource is a footnote or
annotation. Thanks to Sam Steingold for reporting problems with
the existing handling.
HTMLHelp:
* Michael(tm) Smith: htmlhelp-common.xsl
Added single-pass namespace-stripping support to the htmlhelp,
eclipse, and javahelp stylesheets.
Eclipse:
* Michael(tm) Smith: eclipse.xsl
Added single-pass namespace-stripping support to the htmlhelp,
eclipse, and javahelp stylesheets.
JavaHelp:
* Michael(tm) Smith: javahelp.xsl
Added single-pass namespace-stripping support to the htmlhelp,
eclipse, and javahelp stylesheets.
Roundtrip:
* Steve Ball: blocks2dbk.xsl; blocks2dbk.dtd; pages2normalise.xsl
Modularised blocks2dbk to allow customisation,
Added support for tables to pages2normalise
Params:
* Robert Stayton: procedure.properties.xml
procedure was inheriting keep-together from formal.object.properties, but
a procedure does not need to be kept together by default.
* Dave Pawson: title.font.family.xml;
component.label.includes.part.label.xml; table.frame.b
Regular formatting re-org.
-------------------------------------------------------------------
Fri Aug 3 10:31:03 CEST 2007 - toms@suse.de
- Added missing common/charmap.xsl in manpages/docbook.xsl
- Fixed build problems.
-------------------------------------------------------------------
Fri Jul 27 11:14:18 CEST 2007 - ke@suse.de
- Revert to previous package state (2007-05-11).
-------------------------------------------------------------------
Wed Jul 25 08:21:07 CEST 2007 - toms@suse.de
- New release 1.73.0
* Added Latvian and Esperanto translation, fixes in other locales
* Description of all available PIs
* Fix bug 1668629 valign on tbody not inherited.
* Added template for xref to area/areaset.
Part of fix for bug #1675513 (xref to area broken).
* Fixed bug #1711508 (lists.xsl)
* Added support for spacing="compact" in variablelist,
per bug report #1722540.
* Fixed bug #1669601 (footnote.xsl)
* Fixed #1680755 (keycombo joinchar default incorrect).
* Fixed bug 1652360 empty link with xlink:href.
* Add support for default.table.frame parameter.
Fix bug 1575446 rowsep last check for @morerows.
=> More in NEWS
-------------------------------------------------------------------
Fri May 11 07:10:44 CEST 2007 - aj@suse.de
- Add unzip to BuildRequires.
-------------------------------------------------------------------
Tue Feb 27 14:19:51 CET 2007 - ke@suse.de
- Remove obsolete pre script; reported by Andreas Hanke [# 248672].
-------------------------------------------------------------------
Mon Jan 29 10:13:44 CET 2007 - ke@suse.de
- Update to 1.72.0: Many bugfixes and some extensions. For details,
see the NEWS file.
- Do no apply manpages-block-sp-2.patch; [# 176111] seems to be fixed
upstream now.
- Remove obsolete README file.
- PreReq sgml-skel and remove exit statements from pre/post scripts; see
[#216944].
-------------------------------------------------------------------
Thu Jan 11 14:44:23 CET 2007 - ke@suse.de
- Remove /usr/share/xml from the files list.
-------------------------------------------------------------------
Tue Nov 14 12:49:34 CET 2006 - ke@suse.de
- Update to 1.71.1: Bugfixes and some extensions:
Fix problem with variable initialization [#220729]. From the NEWS
file:
Common:
* For backward compatability autoidx-ng.xsl is invoking "kosek"
indexing method again.
* Add support for Xalan generating a root xml:base like saxon.
* Fixed olink database access for Saxon and DB5.
FO (some fixes also apply for HTML):
* Complete the support for the info element.
Add empty templates for titleabbrev in the default mode.
* Fixed bug 1566358 to add space between orgname and orgdiv.
* Made xref template target variables into params to fix bug #1559689.
* Empty rows aren't allowed.
* Added params to ulink and link templates so call-template by name works.
* Fix bug in xlink.href (should be xlink:href).
* Added support for profiling based on xml:lang and status attributes.
* Create axf attribute before adding fotex element.
* Add two-stage recursion for hyphenate.verbatim
to fix recursion depth bug for long programlistings.
HTML:
* Made changes in namespace declarations to prevent xmllint's
canonicalizer from treating them as relative namespace URIs.
* Added the html.append and chunk.append parameters. By default, the
value of both is empty; but the internal DocBook XSL stylesheets
build sets their value to "<xsl:text>&#x0a;</xsl:text>", in order
to ensure that all files in the docbook-xsl-doc package end in a
newline character.
Changes to Highlighting, Manpages, Template, Tools, and WordML.
Params:
* Added initial support in manpages output for footnote, annotation,
and alt instances.
* Added the html.append and chunk.append parameters. By default, the
value of both is empty; but the internal DocBook XSL stylesheets
build sets their value to "<xsl:text>&#x0a;</xsl:text>", in order
to ensure that all files in the docbook-xsl-doc package end in a
newline character.
Profiling:
* Added support for profiling based on xml:lang and status attributes.
-------------------------------------------------------------------
Mon Sep 11 13:25:43 CEST 2006 - ke@suse.de
- Update to 1.71.0: many (small) bugfixes and extensions.
-------------------------------------------------------------------
Thu Aug 17 13:47:46 CEST 2006 - ke@suse.de
- Update to snapshot 2006-08-16 on account of #188559; reported by
Thorsten Kukuk.
- Update the manpages patch.
-------------------------------------------------------------------
Tue May 30 11:04:17 CEST 2006 - ke@suse.de
- Update to version 1.70.1; this is a major update. Changes since
1.69.1 include:
* Numerous bug fixes.
* Support more DocBook features like qandaset; improve refentry
processing; add more parameters for configuration.
* Support for DocBook version 5.
* Enhance all output formats, especially FO, HTML, and Manpages.
-------------------------------------------------------------------
Wed May 17 10:42:55 CEST 2006 - ke@suse.de
- man/troff output: print a newline before each .sp command; reported by
Andreas Schwab [# 176111].
-------------------------------------------------------------------
Wed Jan 25 21:46:11 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Jan 20 23:02:02 CET 2006 - kukuk@suse.de
- Update to version 1.69.1 (fix generation of manual pages from
xml sources).
-------------------------------------------------------------------
Mon Jul 18 13:06:54 CEST 2005 - ke@suse.de
- Update to version 1.69.0.
-------------------------------------------------------------------
Fri May 20 15:32:58 CEST 2005 - ke@suse.de
- Update to 2005-05-17 snapshot for testing.
-------------------------------------------------------------------
Mon Feb 14 13:46:29 CET 2005 - ke@suse.de
- Update to version 1.68.1.
-------------------------------------------------------------------
Wed Feb 9 15:37:23 CET 2005 - ke@suse.de
- Update to version 1.68.0.
* Various enhancements, moste FO related.
* New SVG admonition graphics and navigation images.
-------------------------------------------------------------------
Thu Dec 2 09:06:52 CET 2004 - ke@suse.de
- Update to 1.67.2; this is a bug-fix release.
* Revert some user-visible changes from 1.67.0.
-------------------------------------------------------------------
Wed Nov 10 11:11:44 CET 2004 - ke@suse.de
- Update to 1.67.0; this is a bug-fix release that contains a few new
features.
* User-visible changes affect HTML and FO output; details are
listed at
http://lists.oasis-open.org/archives/docbook-apps/200411/msg00123.html .
* Saxon and Xalan enhancements.
* Add Saxon8 extensions.
-------------------------------------------------------------------
Tue Oct 19 09:39:53 CEST 2004 - ke@suse.de
- Update to 1.66.1; some highlights:
* Important bug fixes and enhancements (tables, index sorting, olink
templates, etc.).
* Better support for DocBook 4.3.
* In chunked output generic link header element (cf. HTML 4.01).
-------------------------------------------------------------------
Mon Jul 26 10:46:19 CEST 2004 - ke@suse.de
- Update to 1.65.1:
* Various bug fixes.
* Offer alternate indexing mechanism; for details
cf. /usr/share/doc/packages/docbook-xsl-stylesheets/RELEASE-NOTES.html.
-------------------------------------------------------------------
Thu Feb 5 17:04:12 CET 2004 - ke@suse.de
- Correct compat links.
-------------------------------------------------------------------
Fri Jan 30 17:43:34 CET 2004 - ke@suse.de
- Adjust directories according to FHS 2.3:
* Move stylesheets to /usr/share/xml/docbook.
* Provide compatibility links for SL =< 9.0 (log this info in
/var/adm/SuSEconfig/run-sgmldir-links for later processing).
-------------------------------------------------------------------
Wed Jan 14 14:07:01 CET 2004 - ke@suse.de
- Update to 1.64.1.
-------------------------------------------------------------------
Wed Oct 22 11:38:21 CEST 2003 - ke@suse.de
- Update to 1.62.4.
-------------------------------------------------------------------
Mon Jun 23 11:09:07 CEST 2003 - ke@suse.de
- Update to 1.60.3 (various bug fixes; thus far no release notes).
-------------------------------------------------------------------
Fri May 23 16:32:32 CEST 2003 - ke@suse.de
- Update to 1.61.2: many improvements and fixes; for more info cf.
http://lists.oasis-open.org/archives/docbook-apps/200305/msg00111.html
http://lists.oasis-open.org/archives/docbook-apps/200305/msg00228.html
http://lists.oasis-open.org/archives/docbook-apps/200305/msg00273.html
-------------------------------------------------------------------
Tue Jan 28 11:52:32 CET 2003 - ke@suse.de
- Update to 1.60.1: some issues from release notes:
* Lots of bug fixes.
* Titlepage handling has changed; for details
cf. RELEASE-NOTES.html.
* Format cross references consistently.
* Improve table handling.
* Fix bugs in graphic width/height calculations.
- Install XML catalog; thus fixing major part of [# 21717].
-------------------------------------------------------------------
Tue Jan 21 12:31:17 CET 2003 - ke@suse.de
- Require docbook_4; reported by Gernot Hillier and Thomas Schraitle.
-------------------------------------------------------------------
Mon Jan 20 10:59:53 CET 2003 - ke@suse.de
- Update to 1.59.2: from release notes:
* Bug fix: FO bug in the page masters that causes FOP to fail.
* Various bug fixes.
* Fix aligment problems in equations.
* Output the type attribute on unordered lists (UL) in HTML only if
the css.decoration parameter is true.
* Calculate the font size in formal.title.properties so that it's 1.2
times the base font size, not a fixed "12pt".
-------------------------------------------------------------------
Wed Jan 15 11:21:01 CET 2003 - ke@suse.de
- Update to 1.59.1: from release notes (since 1.57.0):
* Bug fixes.
* initial support for extensions in xsltproc.
* Add Bulgarian localization.
* Indexing improvements; localize book indexes to books but allow
setindex to index an entire set.
* The default value for rowsep and colsep is now "1" as per CALS.
* Fix bugs in calculation of adjusted column widths to correct for
rounding errors.
* Add support for titleabbrev (use them for cross references).
* Improvements to mediaobject for selecting print vs. online images.
* Add seperate property sets for figures, examples, equations,
tabless, and procedures.
* Make lineannotations italic.
* Support xrefstyle attribute.
* Make endterm on xref higher priority than xreflabel target.
* Support nested refsection elements correctly.
* Glossary formatting improvements.
* Reworked gentext.template to take context into consideration. The
name of elements in localization files is now an xpath-like context
list, not just a simple name.
* Some improvements to bibliography formatting.
* Improve graphical formatting of admonitions.
* Add support for entrytbl.
* Support spanning index terms.
* Support bibliosource.
-------------------------------------------------------------------
Mon Nov 11 16:00:07 CET 2002 - ke@suse.de
- Update to 1.57.0.
- Provide version independent link; missing feature reported by eicker,
Mads Martin Joergensen and Thomas Schraitle [# 19238].
-------------------------------------------------------------------
Thu Oct 10 16:17:06 CEST 2002 - ke@suse.de
- Update to version 1.56.1
-------------------------------------------------------------------
Thu Aug 15 13:22:55 CEST 2002 - ke@suse.de
- Add XSL 1.53.0 customization layer for PassiveTeX by Bob Stayton; for
more info
cf. http://sourceforge.net/tracker/index.php?func=detail&aid=593600&group_id=21935&atid=373747
: Use
xsltproc
/usr/share/sgml/docbook/docbook-xsl-stylesheets-1.53.0/fo/custom.passivetex.xsl \
mydoc.xml >mydoc.fo
to load the customization layer.
-------------------------------------------------------------------
Mon Jul 29 11:58:14 CEST 2002 - ke@suse.de
- Update to version 1.53.0:
* Fix some bugs.
* Refactor FO page masters.
* And add some new parameters.
-------------------------------------------------------------------
Fri Jul 12 16:39:32 MEST 2002 - mls@suse.de
- fixed postinstall script
-------------------------------------------------------------------
Wed Jul 10 13:36:40 CEST 2002 - ke@suse.de
- Update to version 1.52.2:
* Fix formatting, reference and index handling issues.
-------------------------------------------------------------------
Mon Jul 8 13:02:40 CEST 2002 - ke@suse.de
- Update to version 1.52.1:
* Fix reference handling (xref.xsl).
-------------------------------------------------------------------
Mon Jul 8 11:00:54 CEST 2002 - ke@suse.de
- Update to version 1.52.0; from the announcement: Changes include:
* A complete and consistent set of chunking parameters;
* many new HTML Help parameters;
* support for new-style OLinks;
* experimental support for xref styles;
* completely reworked page master/sequence config;
* support for cross-references to paragraphs;
* new header/footer, column, and glossary parameters;
* other new parameters: draft.mode, suppress.footer.navigation and
suppress.header.navigation, make.graphic.viewport,
nominal.image.depth, nominal.image.width, use.embed.for.svg,
refentry.title.properties, section.title.properties,
use.embed.for.svg, generate.meta.abstract.xml.
- spec file: Remove obsolete variables.
-------------------------------------------------------------------
Tue Jun 18 15:09:23 CEST 2002 - ke@suse.de
- Update to version 1.51.1.
- Drop the subpackage db2latex (once it's maintained again, I'll
provide a proper standalone package.
- Provide version related convenience links; proposed by Rolf
Niepraschk.
-------------------------------------------------------------------
Wed May 8 14:38:48 CEST 2002 - ke@suse.de
- Update to version 1.50.0 [# 15162].
-------------------------------------------------------------------
Mon Feb 11 22:41:35 CET 2002 - ro@suse.de
- tar option for bz2 is "j"
-------------------------------------------------------------------
Mon Aug 20 09:57:26 CEST 2001 - ke@suse.de
- Add db2latex (version 0.5.1) as a subpackage.
- Re-compress the archives using bzip2.
-------------------------------------------------------------------
Tue Aug 7 17:48:34 CEST 2001 - ke@suse.de
- Update to version 1.42.
-------------------------------------------------------------------
Mon Jul 16 15:53:25 CEST 2001 - ke@suse.de
- Update to version 1.41.
-------------------------------------------------------------------
Mon Apr 23 16:36:13 CEST 2001 - ke@suse.de
- Fix create of compatibility link via %post; reported by kukuk
[#7130].
-------------------------------------------------------------------
Mon Mar 26 12:06:03 CEST 2001 - ke@suse.de
- Provide compatibility link /usr/share/sgml/docbkxsl for SuSE Linux <
8.0 (cf. README.SuSE).
-------------------------------------------------------------------
Fri Mar 23 13:57:52 CET 2001 - ke@suse.de
- Update to version 1.34 (experimental).
- Rename package: docbkxsl -> docbook-xsl-stylesheets.
- Adjust README.SuSE.
-------------------------------------------------------------------
Fri Feb 2 17:06:08 CET 2001 - ke@suse.de
- Update to version 1.29.
-------------------------------------------------------------------
Fri Sep 22 15:45:33 MEST 2000 - ke@suse.de
- Update to version 1.18.
-------------------------------------------------------------------
Wed Aug 16 11:11:40 CEST 2000 - ke@suse.de
- Update to version 1.17.
-------------------------------------------------------------------
Fri May 26 22:36:59 CEST 2000 - ke@suse.de
- Update to version 1.13.
- Use %{_defaultdocdir}.
-------------------------------------------------------------------
Fri Dec 17 16:31:51 CET 1999 - ke@suse.de
- Fix %files list.
-------------------------------------------------------------------
Fri Dec 17 13:30:18 CET 1999 - ke@suse.de
- Update: version 1.01.
-------------------------------------------------------------------
Tue Nov 23 08:54:39 CET 1999 - ke@suse.de
- Start with version 1.00.
- Add README.SuSE.

238
docbook-xsl.spec Normal file
View File

@ -0,0 +1,238 @@
#
# spec file for package docbook-xsl
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define realversion 1.79.2
#
%define db4rootdir %{_datadir}/xml/docbook/stylesheet/nwalsh
%define db4package docbook-xsl-stylesheets
%define db4style_catalog %{db4package}.xml
#
%define db5rootdir %{_datadir}/xml/docbook/stylesheet/nwalsh5
%define db5package docbook5-xsl-stylesheets
%define db5style_catalog %{db5package}.xml
#
%define etcxmlcatalogd %{_sysconfdir}/xml/catalog.d
#
Name: docbook-xsl
Version: 1.79.2.1
Release: 0
Summary: XSL Stylesheets for DocBook
License: MIT AND MPL-1.1
Group: Productivity/Publishing/DocBook
URL: https://github.com/docbook/xslt10-stylesheets
Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release/%{realversion}/docbook-xsl-%{realversion}.tar.bz2
Source1: https://github.com/docbook/xslt10-stylesheets/releases/download/release/%{realversion}/docbook-xsl-doc-%{realversion}.tar.bz2
Source2: %{db4style_catalog}
Source3: %{db5style_catalog}
# Build scripts
Source10: dbxslt-install.sh
Source11: xslnons-build
## PATCH-FIX-OPENSUSE docbook-xsl-stylesheets-dbtoepub.patch Fixed dirname
Patch0: %{name}-dbtoepub.patch
## PATCH-FIX-OPENSUSE docbook-xsl-stylesheets-non-recursive_string_subst.patch Use EXSLT replace function to avoid recursive implementation of string.subst
Patch1: %{name}-non-recursive_string_subst.patch
## PATCH-FIX-OPENSUSE docbook-xsl-1.79.2-assembly-assemble.xsl.patch Copy xml:lang of to result (assemble.xsl)
Patch2: %{name}-%{realversion}-assembly-assemble.xsl.patch
BuildRequires: fdupes
BuildRequires: sgml-skel >= 0.7
BuildRequires: unzip
Requires: docbook_4
Requires: sgml-skel >= 0.7
Requires: xmlcharent
Requires(post): sgml-skel >= 0.7
Requires(postun):sgml-skel >= 0.7
Requires(pre): %{_bindir}/xmlcatalog
BuildArch: noarch
#--------------------------------------------------------------------------
%description
%{summary}.
Wrapper package for DocBook 4 and 5 stylesheets.
%package -n %{db4package}
Summary: XSL Stylesheets for DocBook 4
Group: Productivity/Publishing/XML
Requires: docbook_4
Requires: sgml-skel >= 0.7
Requires: xmlcharent
Requires(post): sgml-skel >= 0.7
Requires(postun):sgml-skel >= 0.7
Suggests: rubygem(dbtoepub)
%description -n %{db4package}
These are the XSL stylesheets for DocBook XML and "Simplified" DocBook
DTDs. Use these stylesheets for documents based on DocBook 4 and
earlier; they are not aware of the namespace feature.
The stylesheets transform DocBook 4 documents into HTML, XHTML, Manpages,
XSL-FO (for PDF), and a few other formats.
XSL is a standard W3C stylesheet language for both print and online
rendering. For more information about XSL, see the XSL page at the W3C:
http://www.w3.org/Style/XSL/
%package -n docbook5-xsl-stylesheets
Summary: XSL Stylesheets for DocBook 5
Group: Productivity/Publishing/XML
Requires: docbook_5
Requires: sgml-skel >= 0.7
Requires: xmlcharent
Requires(post): sgml-skel >= 0.7
Requires(postun):sgml-skel >= 0.7
Suggests: rubygem(dbtoepub)
%description -n docbook5-xsl-stylesheets
These are the XSL stylesheets for DocBook 5 XML and "Simplified" DocBook 5.
Use these stylesheets for documents based on DocBook 5; they are aware
of the namespace feature.
The stylesheets transform DocBook 5 documents into HTML, XHTML, Manpages,
XSL-FO (for PDF), and a few other formats.
XSL is a standard W3C stylesheet language for both print and online
rendering. For more information about XSL, see the XSL page at the W3C:
http://www.w3.org/Style/XSL/
%package pdf2index
# License: MPL-1.1 and MIT
Summary: Script to create Indices for FOP
Group: Productivity/Publishing/XML
Requires: ImageMagick
Requires: perl
%description pdf2index
Contains the script pdf2index which creates indices for FOP.
%prep
# %%setup -q -n docbook-xsl-%%{realversion} -b1
%setup -q -c -T -n docbook-xsl
# Prepare directories:
mkdir docbook-xsl-%{realversion}-ns docbook-xsl-%{realversion}-nons
# Copy all source files and make scripts executable:
cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} .
chmod +x $(basename %{SOURCE10}) $(basename %{SOURCE11})
# Replace version in XML catalog files
db4=$(basename %{SOURCE2})
db5=$(basename %{SOURCE3})
sed --in-place 's/@VERSION@/%{realversion}/g' $db4
sed --in-place 's/@VERSION@/%{realversion}/g' $db5
# Unpack stylesheet and doc sources into the correct directory:
tar xf %{SOURCE0} -C docbook-xsl-%{realversion}-ns --strip-components 1
tar xf %{SOURCE1} -C docbook-xsl-%{realversion}-ns --strip-components 1
# Patch the orginal source and remove unnecessary files:
(cd docbook-xsl-%{realversion}-ns
%patch0 -p1
%patch1 -p1
%patch2 -p1
# Remove some Python and Java extensions
# Remove dbtoepub Ruby script. This has been moved to devel:languages:ruby:extensions
# see rubygem-dbtoepub
rm -rf extensions/*.py extensions/saxon65.jar extensions/xalan27.jar \
extensions/build.xml epub/bin
)
%build
pushd docbook-xsl-%{realversion}-ns
find slides -regex ".*\.\(xml\|htc\|\|hu\|js\|svg\|css\|html\.*\|txt\|rnc\|xhtml\)" \
-exec sed -i 's/\r//' {} \;
# Fix wrong end-of-line encoding:
sed -i 's/\r//' params/*
# Correct file and directory properties:
find -type f -exec chmod 644 {} \;
find -type d -exec chmod 755 {} \;
# Remove any .htaccess files:
find -type f -name "\.htaccess" -exec rm {} \;
popd
# Create the non-NS variant from the NS original source:
./xslnons-build docbook-xsl-%{realversion}-ns docbook-xsl-%{realversion}-nons
%install
mkdir -p %{buildroot}%{_sysconfdir}/xml/catalog.d \
%{buildroot}%{rb_libdir}/
./dbxslt-install.sh --debug --buildroot=%{buildroot} \
--package-version=%{realversion} \
--package-name=%{db4package} \
--sourcedir=docbook-xsl-%{realversion}-nons
./dbxslt-install.sh --debug --buildroot=%{buildroot} \
--package-version=%{realversion} \
--package-name=%{db5package} \
--db-xsl-suffix=nwalsh5 \
--sourcedir=docbook-xsl-%{realversion}-ns
# The directory is already available at this point:
install -m644 %{db4style_catalog} %{db5style_catalog} %{buildroot}%{etcxmlcatalogd}
%fdupes -s %{buildroot}
%post -n %{db4package}
update-xml-catalog
%postun -n %{db4package}
update-xml-catalog
%post -n %{db5package}
update-xml-catalog
%postun -n %{db5package}
update-xml-catalog
%files -n %{db4package}
%config %{_sysconfdir}/xml/catalog.d/%{db4style_catalog}
%doc docbook-xsl-%{realversion}-nons/BUGS docbook-xsl-%{realversion}-nons/NEWS
%doc docbook-xsl-%{realversion}-nons/README docbook-xsl-%{realversion}-nons/RELEASE-NOTES.*
%doc docbook-xsl-%{realversion}-nons/TODO
%dir %{_datadir}/xml/docbook/stylesheet
%dir %{db4rootdir}
%dir %{db4rootdir}/%{realversion}
%exclude %{db4rootdir}/%{realversion}/fo/pdf2index
%{db4rootdir}/current
%{db4rootdir}/%{realversion}/*
%files -n %{db5package}
%config %{_sysconfdir}/xml/catalog.d/%{db5style_catalog}
%doc docbook-xsl-%{realversion}-ns/BUGS docbook-xsl-%{realversion}-ns/NEWS
%doc docbook-xsl-%{realversion}-ns/README docbook-xsl-%{realversion}-ns/RELEASE-NOTES.*
%doc docbook-xsl-%{realversion}-ns/TODO
%dir %{_datadir}/xml/docbook/stylesheet
%dir %{db5rootdir}
%dir %{db5rootdir}/%{realversion}
%exclude %{db5rootdir}/%{realversion}/fo/pdf2index
%{db5rootdir}/current
%{db5rootdir}/%{realversion}/*
%files pdf2index
%attr(0755,root,root) %{_bindir}/pdf2index
%changelog

View File

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="docbook5-xsl-stylesheets">
<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl-ns/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/@VERSION@"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl-ns/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/@VERSION@"/>
<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl-ns/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/current"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl-ns/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/current"/>
<rewriteURI uriStartString="http://cdn.docbook.org/release/xsl/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/@VERSION@"/>
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl/@VERSION@" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/@VERSION@"/>
<rewriteURI uriStartString="http://cdn.docbook.org/release/xsl/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/current"/>
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl/current" rewritePrefix="file:///usr/share/xml/docbook/stylesheet/nwalsh5/current"/>
</group>
</catalog>

515
xslnons-build Normal file
View File

@ -0,0 +1,515 @@
#!/usr/bin/perl -w -- # -*- Perl -*-
#
# xslns-build - generate a parallel set of DocBook5 namespaced
# stylesheet directories from a directory of
# non-namespaced stylesheets.
#
my $Usage = "
USAGE:
$0 input-dir output-dir
where:
input-dir is the directory containing namespaced stylesheets
output-dir is the destination for the non-namespaced stylesheets
Note: an existing output-dir will be completely removed
before creating new output.
";
#######################################################
# Modules to use
#
use strict;
use IO::File;
use File::Basename;
use File::Path;
use File::Find;
use File::Copy;
#######################################################
# Global variables
#
my $srcdir;
my $destdir;
my @dirlist;
my @passthru;
my @xslfiles;
# Regular expressions
# namespace name regexp
my $ns = "[A-Za-z]+";
# other names
my $n = "[A-Za-z][A-Za-z0-9]+";
# xml names
my $w = "[A-Za-z][-A-Za-z0-9._#]+";
# docbook element names (lowercase and numbers)
my $dbname = "[a-z][a-z0-9]+";
# Don't delete namespace to any xsl files in these directories
my @PassthruDirs = (
'extensions',
'profiling',
'images',
'tools',
'build',
'website',
'wordml',
);
# Don't remove namespace to these particular files
my @PassthruFiles = (
'html-rtf.xsl',
'html2xhtml.xsl',
'xsl2profile.xsl',
'olink.xsl',
'addns.xsl',
'stripns.xsl',
);
umask 002;
#######################################################
# main
#
# Get the source and output directories
$srcdir = $ARGV[0];
$destdir = $ARGV[1];
unless ( $srcdir ) {
print "ERROR: must specify input directory of non-namespaced "
. " stylesheets. Exiting.\n";
die "$Usage\n";
}
unless ( -d $srcdir ) {
print "ERROR: specified input directory does not exist. Exiting.\n";
die "$Usage\n";
}
unless ( $destdir ) {
print "ERROR: must specify output directory. Exiting.\n";
die "$Usage\n";
}
# Remove any previous output completely
if ( -d $destdir) {
print "Removing old output directory $destdir.\n";
unless ( rmtree($destdir) ) {
die "ERROR: cannot remove previous output directory. Exiting.\n";
}
}
# Create new output directory.
print "Creating the output directory $destdir.\n";
unless ( mkpath($destdir) ) {
die "ERROR: cannot create output directory $destdir.\n";
}
copyDirectories($srcdir);
copyPassthru();
copyXsl();
addFiles();
#######################################################
# copyDirectories - create the output directories
#
sub copyDirectories {
my ($src) = @_;
# populate @dirlist
find(\&dirlist, $src );
foreach my $d (@dirlist) {
$d =~ s/$srcdir/$destdir/;
print "$d\n";
mkdir $d;
}
}
#######################################################
# dirlist - list directories (used by find)
#
sub dirlist {
if ( -d $_ ) {
push(@dirlist, $File::Find::name);
}
}
#######################################################
# copyPassthru - copy non-XSL files to output
#
sub copyPassthru {
# populate @passthru
find(\&passthruFiles, $srcdir );
foreach my $f (@passthru) {
my $dest = $f;
$dest =~ s/$srcdir/$destdir/;
print STDOUT "$f\n";
copy ($f, $dest);
}
}
#######################################################
# passthruFiles - list non-xsl files to copy
#
sub passthruFiles {
if ( -f $_ ) {
unless ( /\.xsl$/ or /\.ent$/ ) {
push(@passthru, $File::Find::name);
}
}
}
#######################################################
# copyXsl - copy XSL files to output, possibly filtering
#
sub copyXsl {
# populate @xslfiles
find(\&xslFiles, $srcdir );
foreach my $f (@xslfiles) {
my $dest = $f;
$dest =~ s/$srcdir/$destdir/;
print STDOUT "$f\n";
my $basename = basename $f;
my $dirname = dirname $f;
$dest =~ m|^$destdir/(.*?)/|;
my $dir = $1;
if ( grep /^$basename$/,@PassthruFiles ) {
copy($f, $dest);
}
elsif ( grep /^$dir$/, @PassthruDirs ) {
copy($f, $dest);
}
else {
nsfilter($f, $dest);
}
}
}
#######################################################
# xslFiles - list xsl files to process
#
sub xslFiles {
if ( -f $_ ) {
if ( /\.xsl$/ or /\.ent$/ ) {
push(@xslfiles, $File::Find::name);
}
}
}
#######################################################
# nsfilter - delete namespace prefix to element names
#
sub nsfilter {
my ($infile, $outfile) = @_;
# Open and read the whole file into $_ variable for parsing
my $Filehandle = IO::File->new($infile)
or die "Can't open file $infile $!\n";
read ($Filehandle, $_, -s $infile);
$Filehandle->close;
my $Output = IO::File->new("> $outfile")
or die "Cannot write to output file $outfile.\n";
# Set to autoflush
select($Output); $| = 1;
# delete the docbook5 namespace declaration in root element
s|xmlns:d="http://docbook.org/ns/docbook"\n?||s;
# remove namespace d from exclude-result-prefixes
# This version if only "d"
s|\s*exclude-result-prefixes\s*=\s*"d"\s*| |s;
# This version if d added to others at end
s|(exclude-result-prefixes\s*=\s*".*?)\s+d"|$1"|s;
# This version if d added at beginning
s|(exclude-result-prefixes\s*=\s*")d\s+(.*?")|$1$2|s;
# This version if d added in middle
s|(exclude-result-prefixes\s*=\s*".*?)\s+d\s+(.*?")|$1 $2|s;
# Convert addNS to stripNS
s|href="../common/addns.xsl"|href="../common/stripns.xsl"|sg;
s|addns\.xsl|stripns.xsl|sg;
s|with\.namespace|no.namespace|sg;
s|addNS|stripNS|sg;
s|(namesp\.\s+)add|$1cut|sg;
s|added namespace before|stripped namespace before|sg;
s|(Unable to )add( the namespace from )DB4( document)|$1strip$2DB5$3|sg;
# change namespace test from != to =
s|(namespace-uri\(/\*\)\s*)!=(\s*['"]http://docbook.org/ns/docbook['"])|$1=$2|sg;
# Set the db.prefix for template/titlepage.xsl
s|(<xsl:variable name="db.prefix">)d:(</xsl:variable>)|$1$2|sg;
# remove d: prefix to literal tocentry in maketoc.xsl
if ($infile =~ /maketoc/) {
s|d:(tocentry)|$1|sg;
}
# Process certain XSL attributes to remove d: namespace if needed
# and output everything using this while loop.
while ( /^(.*?)((match|select|test|count|from|use|elements)(\s*=\s*("|'))(.*?)(\5)|(select)(\s*=\s*("|'))(.*?)(\5))/sg ) {
my $notname = $1;
my $attname = $3;
my $prefix = $4;
my $attvalue = $6;
my $post = $7;
my $rest = $';
&filter($notname, $Output);
print $Output $attname . $prefix;
# parse the attribute value
while ( $attvalue =~ /^(.*?)($ns:)($n)(.*$)/sg ) {
# process the leading content which is not pass through
&fixnamespace($1, $Output);
if ( $2 eq 'd:' ) {
print $Output $3;
}
else {
print $Output $2;
print $Output $3;
}
$attvalue = $4; # and recurse
}
&fixnamespace($attvalue, $Output);
print $Output $post;
$_ = $rest;
}
# print the leftovers
&filter($_, $Output);
close $Output;
}
# fix any special case params like certain manpage params
# that put element names inside param string
sub filter {
my ($string, $Output) = @_;
# Fix up index ENTITY declarations
$string = &indexentitydecl($string);
while ( $string =~ m|^(.*?)(<xsl:param([^>]+[^/])>)(.*?)(</xsl:param>)|sg ) {
my $before = $1;
my $starttag = $2;
my $startstuff = $3;
my $value = $4;
my $endtag = $5;
my $rest = $';
$startstuff =~ /name="(.*?)"/;
my $pname = $1;
print $Output $before;
print $Output $starttag;
# add namespace to elements inside these params
if ( $pname =~ /(^refentry.manual.fallback.profile$|^refentry.source.fallback.profile$|^refentry.version.profile$|^refentry.date.profile$)/ ) {
# while ( $value =~ /^(.*?)(\$$w|$w\(|$ns:$n|$w:|db:$n|\@$n:$n|'.*?'|&$w;|\@$w|not \(|stringlength \(|normalize-space \()(.*$)/sg ) {
while ( $value =~ /^(.*?)($ns:)($n)(.*$)/sg ) {
# process the leading content which is not pass through
&fixnamespace($1, $Output);
if ( $2 eq 'd:' ) {
print $Output $3;
}
else {
print $Output $2;
print $Output $3;
}
$value = $4; # and recurse
}
&fixnamespace($value, $Output);
}
else {
print $Output $value;
}
print $Output $endtag;
$string = $rest;
}
print $Output $string;
}
sub indexentitydecl {
my ($string) = @_;
my $newstring = '';
while ( $string =~ m@^(.*?)(<!ENTITY\s+([\w.]+)\s+('|"))(.*?)(\4\s*>)@sg ) {
my $before = $1;
my $entitystart = $2;
my $entityname = $3;
my $value = $5;
my $entityend = $6;
my $rest = $';
$newstring .= $before;
$newstring .= $entitystart;
while ( $value =~ /^(.*?)($ns:)($n)(.*$)/sg ) {
# process the leading content which is not pass through
$newstring .= &namespacefilter($1);
if ( $2 eq 'd:' ) {
$newstring .= $3;
}
else {
$newstring .= $2;
$newstring .= $3;
}
$value = $4; # and recurse
}
$newstring .= &namespacefilter($value);
$newstring .= $entityend;
$string = $rest;
}
$newstring .= $string;
return $newstring;
}
# prints a filtered string to the designated output
sub fixnamespace {
my ($string, $Output) = @_;
my $newstring = &namespacefilter($string);
print $Output $newstring;
}
# Returns a new string with namespace prefixes added
sub namespacefilter {
my ($string) = @_;
my $newstring = '';
while ( $string =~ /^(.*?)d:($dbname)(.*$)/s ) {
my $pre = $1;
my $name = $2;
my $rest = $3;
$newstring .= $pre;
# pass through XSL key words and mixed case names and olink elements
if ( $name =~ /(^mod$|^div$|^and$|^or$|^ttl$|^xreftext$|^dir$|^id$|^sitemap$|^obj$|^document$|^exsl$|^.*[A-Z].*$)/ ) {
# pass this name through
$newstring .= $name;
}
# pass through man template temporary elements
elsif ( $name =~ /(^cell$|^notesource$|^bold$|^italic$|^div$|^p$|^substitution$)/ ) {
# pass this name through
$newstring .= $name;
}
# pass through references to man temporary elements
elsif ( $name =~ /(^date$|^title$|^manual$|^source$)/ and $pre =~ /refentry\.metadata/ ) {
# pass this name through
$newstring .= $name;
}
# Pass through if preceded or followed by uppercase letters
elsif ($pre =~ /[-._A-Z]$/ || $rest =~ /^[-._A-Z]/) {
$newstring .= "d:" . $name;
}
else {
# remove the namespace prefix
$newstring .= $name;
}
$string = $rest;
}
# print any leftovers
$newstring .= $string;
return $newstring;
}
#######################################################
# addFiles - add some new files to db5xsl
#
sub addFiles {
my $miscdir = dirname $0;
$miscdir .= '/xslnsfiles';
print STDOUT "miscdir is $miscdir" . "\n";
# copy("$miscdir/manpages.table.xsl", "$destdir/manpages/table.xsl");
# copy("$miscdir/titlepage.xsl", "$destdir/template/titlepage.xsl");
# Copy the ns VERSION file, not the copy from non-ns
copy("$destdir/VERSION", "$destdir/VERSION.xsl");
# delete these obsolete files.
# Replace stripns.xsl with addns.xsl in profiling module
&nsfilter("$srcdir/profiling/profile.xsl", "$destdir/profiling/profile.xsl");
}