Package: xmlroff Version: 0.6.2-1 Severity: normal Tags: patch
When I try to transform an XSL-FO file containing RDF metadata, xmlroff complains: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 libraryii 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
--- compat.xsl.old 2009-03-15 14:51:22.000000000 +0000 +++ compat.xsl 2009-03-15 14:59:32.000000000 +0000 @@ -186,17 +186,13 @@ <xsl:attribute name="{name()}">auto</xsl:attribute> </xsl:when> <xsl:otherwise> - <xsl:attribute name="{name()}"> - <xsl:value-of select="."/> - </xsl:attribute> + <xsl:copy-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="@*"> - <xsl:attribute name="{name()}"> - <xsl:value-of select="."/> - </xsl:attribute> + <xsl:copy-of select="."/> </xsl:template> <xsl:template match="fo:block-contain...@reference-orientation]">
signature.asc
Description: Digital signature