[xml/sgml-pkgs] Bug#271754: marked as done (libxslt1.1: date:add-duration() bugginess)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 16 Feb 2005 12:18:21 -0800

Your message dated Wed, 16 Feb 2005 21:00:53 +0100
with message-id <20050216200052.GJ11592@glandium.org>
and subject line Closing some bugs
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 15 Sep 2004 00:44:11 +0000
>From m2kyj0402@sneakemail.com Tue Sep 14 17:44:11 2004
Return-path: <m2kyj0402@sneakemail.com>
Received: from sneakemail.com (monkey.sneakemail.com) [] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1C7Nu7-0006Dk-00; Tue, 14 Sep 2004 17:44:11 -0700
Received: (qmail 30324 invoked by uid 501); 15 Sep 2004 00:43:40 -0000
Date: 15 Sep 2004 00:43:40 -0000
To: submit@bugs.debian.org
Subject: libxslt1.1: date:add-duration() bugginess
Encoding: 8bit
From: "Sal Paradise" <m2kyj0402@sneakemail.com>
Message-ID: <28966-88016@sneakemail.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,

Subject: libxslt1.1: date:add-duration() bugginess

Package: libxslt1.1

Version: 1.1.8-4

Severity: normal

The EXSLT function date:add-duration() produces bad values on some

inputs described here.  Apply the following stylesheet to any XML

document (the XML input is ignored) using xsltproc to reproduce.

<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  xmlns:date="http://exslt.org/dates-and-times" version="1.0">

  <xsl:output method="text"/>

<xsl:variable name="nl">




  <xsl:template match="/">

    <xsl:variable name="myduration1" select="'-P28DT23H55M8S'"/>

    <xsl:variable name="myduration2" select="'-P1DT12H54M59S'"/>

    <xsl:value-of select="date:add-duration($myduration1, $myduration2)"/>

    <xsl:value-of select="$nl"/>



The buggy output from libxslt1.1 is:


The correct output should be:


-- System Information:

Debian Release: 3.1

  APT prefers unstable

  APT policy: (500, 'unstable')

Architecture: i386 (i686)

Kernel: Linux 2.6.7


Versions of packages libxslt1.1 depends on:

ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an

ii  libgcrypt11                 1.2.0-6      LGPL Crypto library - runtime libr

ii  libgpg-error0               1.0-1        library for common error values an

ii  libxml2                     2.6.11-3     GNOME XML library

ii  zlib1g                      1:  compression library - runtime

-- no debconf information

Received: (at 271754-done) by bugs.debian.org; 16 Feb 2005 20:01:26 +0000
>From mh@glandium.org Wed Feb 16 12:01:25 2005
Return-path: <mh@glandium.org>
Received: from aputeaux-152-1-36-88.w82-120.abo.wanadoo.fr (localhost.localdomain) [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D1VMT-0002Yo-00; Wed, 16 Feb 2005 12:01:25 -0800
Received: from mh by localhost.localdomain with local (Exim 4.44)
	id 1D1VLx-0000uE-AI; Wed, 16 Feb 2005 21:00:53 +0100
Date: Wed, 16 Feb 2005 21:00:53 +0100
From: Mike Hommey <mh@glandium.org>
To: 285155-done@bugs.debian.org, 271757-done@bugs.debian.org,
	271754-done@bugs.debian.org, 279924-done@bugs.debian.org,
Subject: Closing some bugs
Message-ID: <20050216200052.GJ11592@glandium.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-GPG-Fingerprint: A479 A824 265C B2A5 FC54  8D1E DE4B DA2C 54FD 2A58
Organization: glandium.org
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 271754-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.5 required=4.0 tests=BAYES_00,SUSPICIOUS_RECIPS 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Since version 1.1.12-5 did migrate to sarge, these bugs which were only
in previous 1.1.8 version in sarge, but not in 1.1.12-5 in sid are thus