[xml/sgml-pkgs] Bug#519826: xmlroff: compat stylesheet does not handle RDF gracefully

brian m. carlson sandals at crustytoothpaste.ath.cx
Sun Mar 15 15:01:55 UTC 2009

Package: xmlroff
Version: 0.6.2-1
Severity: normal
Tags: patch

When I try to transform an XSL-FO file containing RDF metadata, xmlroff

   lakeview ok % xmlroff cn.fo                                          
   runtime error: file cn.fo line 197 element attribute
   xsl:attribute: The QName 'rdf:about' has no namespace binding in scope in the stylesheet; this is an error, since the namespace was not specified by the instruction itself.
   (xmlroff:23701): libfo-CRITICAL **: fo_xml_doc_set_base: assertion `fo_xml_doc != NULL' failed
   (xmlroff:23701): libfo-WARNING **: FoXsltTransformer error:: XSLT transform failed

The RDF metadata is embedded with a fo:declarations block so that fop
can pick it up and generate proper metadata (XMP and /Info) for the PDF.
The XSL-FO input file is the cn.fo.bz2 file from #519825.

It appears that this is due to using xsl:attribute and xsl:value-of to
copy an attribute instead of using xsl:copy-of.  I've attached a patch
to fix two of those places.  One of them is unlikely to cause any
problems because it only works on attributes with known-names;
nevertheless, using xsl:copy-of is more idiomatic, so I've fixed it.

-- System Information:
Debian Release: squeeze/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-rc7-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xmlroff depends on:
ii  libc6                       2.9-5        GNU C Library: Shared libraries
ii  libcairo2                   1.8.6-2+b1   The Cairo 2D vector graphics libra
ii  libglib2.0-0                2.20.0-1     The GLib library of C routines
ii  libgnomeprint2.2-0          2.18.6-1     The GNOME 2.2 print architecture -
ii  libgtk2.0-0                 2.14.7-4+b1  The GTK+ graphical user interface 
ii  libpango1.0-0               1.22.4-2     Layout and rendering of internatio
ii  libxml2                     2.7.3.dfsg-1 GNOME XML library
ii  libxslt1.1                  1.1.24-2     XSLT processing library - runtime 
ii  xml-core                    0.12         XML infrastructure and XML catalog

xmlroff recommends no packages.

xmlroff suggests no packages.

-- no debconf information

brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
troff on top of XML: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compat.patch
Type: text/x-diff
Size: 678 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20090315/9c26726f/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20090315/9c26726f/attachment.pgp 

More information about the debian-xml-sgml-pkgs mailing list