Package: docbook-xsl Version: 1.70.1.dfsg.1-0.2 Severity: minor Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
When transforming a manual page from its docbook source, the content of a
refentry/refentryinfo/editor/contrib element gets indented weird, because the
normalize-space() function is missing in the template.
To reproduce the problem, transform and view the attached example with:
xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
foo.xml
man -l foo.1
The problem can be resolved by the attached patch.
Regards, Andreas Hoenen
________________________________________________________________________
Andreas Hoenen <[EMAIL PROTECTED]>
GPG: 1024D/B888D2CE
A4A6 E8B5 593A E89B 496B
82F0 728D 8B7E B888 D2CE
- -- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages docbook-xsl depends on:
ii xml-core 0.09-0.1 XML infrastructure and XML catalog
Versions of packages docbook-xsl recommends:
ii docbook-xml 4.4-5 standard XML documentation system,
ii docbook-xsl-doc 1.70.1.dfsg.1-0.2 stylesheets for processing DocBook
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFE6EVcco2LfriI0s4RAik1AJ4iTZ77dp9LJ/yP81uFRJSNQF1BZwCgh1HN
lhaxoZHplcwaVRdhHeGO29s=
=Klft
-----END PGP SIGNATURE-----
foo.xml
Description: application/xml
--- /usr/share/xml/docbook/stylesheet/nwalsh/manpages/info.xsl 2006-08-13
23:51:54.000000000 +0200
+++ ./info.xsl 2006-08-20 11:37:34.000000000 +0200
@@ -451,7 +451,10 @@
<xsl:value-of select="$blurb-indent"/>
</xsl:if>
<xsl:text> </xsl:text>
- <xsl:apply-templates/>
+ <xsl:variable name="content">
+ <xsl:apply-templates/>
+ </xsl:variable>
+ <xsl:value-of select="normalize-space($content)"/>
</xsl:template>
<!-- * ============================================================== -->

