[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#519826: marked as done (xmlroff: compat stylesheet does not handle RDF gracefully)



Your message dated Mon, 08 May 2023 13:30:58 +0000
with message-id <[🔎] E1pw0x8-00A8gx-Mn@fasolo.debian.org>
and subject line Bug#1035722: Removed package(s) from unstable
has caused the Debian Bug report #519826,
regarding xmlroff: compat stylesheet does not handle RDF gracefully
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
519826: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519826
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 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
--- 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-container[@reference-orientation]">

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 0.6.2-3+rm

Dear submitter,

as the package xmlroff has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1035722

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: