Your message dated Sun, 01 May 2011 18:40:23 +0000
with message-id <[email protected]>
and subject line Bug#624672: Removed package(s) from unstable
has caused the Debian Bug report #352458,
regarding sablotron: does not collapse namespace specifications when
appropriate (xalan and xsltproc both do)
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 [email protected]
immediately.)
--
352458: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=352458
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sablotron
Version: 1.0.2-4
Severity: normal
Using sabcmd, sablotron emits namespace specifications even
when it's the same as the parent element, instead of collapsing
things optimally. I may be using the wrong nomenclature, but this is
easier demonstrated than explained:
With this template:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="tag:example.com,1999"
>
<xsl:template match="*">
<xsl:element name="{local-name()}" namespace="tag:example.com,1999">
<xsl:apply-templates select="node()"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
And this data:
<?xml version="1.0" encoding="UTF-8"?>
<a>
<b x="y">
<c z="w"/>
</b>
</a>
We get this "correct" but super redundant output:
<?xml version="1.0" encoding="UTF-8"?>
<ns_1:a xmlns="tag:example.com,1999" xmlns:ns_1="tag:example.com,1999">
<ns_2:b xmlns:ns_2="tag:example.com,1999">
<ns_3:c xmlns:ns_3="tag:example.com,1999"/>
</ns_2:b>
</ns_1:a>
Both xalan and xsltproc give this output, which is much better:
<?xml version="1.0" encoding="UTF-8"?>
<a xmlns="tag:example.com,1999">
<b>
<c/>
</b>
</a>
The fix for this should be very simple--just don't specify the namespace
for an element (prefix and xmlns="...") if it's namespace is the same as
it's parent. I haven't looked at the sablotron code, but this seems like
it should be an easy fix.
Attached is a tarball that has the template, the data, a run script that
runs it with sabcmd, xalan, and xsltproc, and a log of what the output
looks like. This should make this really easy to reproduce. =)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages sablotron depends on:
ii libsablot0 1.0.2-4 an XSL processor fully implemented
sablotron recommends no packages.
-- debconf-show failed
sabcmd_bug.tar.gz
Description: Binary data
--- End Message ---
--- Begin Message ---
Version: 1.0.3-1.1+rm
Dear submitter,
as the package sablotron 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 http://bugs.debian.org/624672
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Alexander Reichle-Schmehl (the ftpmaster behind the curtain)
--- End Message ---