[xml/sgml-pkgs] Bug#285155: marked as done (can't collect.targets and make index at the same time)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 16 Feb 2005 12:18:30 -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; 11 Dec 2004 02:02:21 +0000
>From caiqian@gnome.org Fri Dec 10 18:02:21 2004
Return-path: <caiqian@gnome.org>
Received: from (debpkg.3322.org) [211.158.72.187] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CcwaR-0006mE-00; Fri, 10 Dec 2004 18:02:19 -0800
Received: from localhost (127.0.0.1:33013)
	by debpkg.3322.org with [XMail 1.20 ESMTP Server]
	id <S111> for <submit@bugs.debian.org> from <caiqian@gnome.org>;
	Sat, 11 Dec 2004 10:02:48 +0800
Subject: can't collect.targets and make index at the same time
From: Cai Qian <caiqian@gnome.org>
To: submit@bugs.debian.org
Content-Type: text/plain
Date: Sat, 11 Dec 2004 10:02:48 +0800
Message-Id: <1102730568.935.22.camel@debian>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.2 
Content-Transfer-Encoding: 7bit
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=-4.9 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	HTML_50_60,RCVD_IN_SBLXBL autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: xsltproc
Version: 1.1.8-5
Severity: important

1.1.11 and 1.1.12 just behave right, so it is better to upgrade. 

Here is example.
Sample XML file(1.xml)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.3/docbookx.dtd">
<book>
  <chapter>
    <title>INTRO</title>
    <sect1>
      <title>welcome</title>
      <indexterm>
        <primary>#</primary>
        <secondary>GOOD</secondary>
      </indexterm>
    </sect1>
  </chapter>
  <index/>
</book>

Sample stylesheet(1.xsl)
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
  <xsl:import
href="/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/profile-chunk.xsl" />
  <xsl:param name="generate.index">1</xsl:param> 
  <xsl:param name="collect.xref.targets" select="'yes'" />
  <xsl:param name="targets.filename" select="'target.xml'" />
  <xsl:param name="make.valid.html" select="1" />
  <xsl:param name="chunker.output.indent" select="'yes'" />
<xsl:stylesheet/>

Then I use `xsltproc 1.xsl 1.xml` to transform it to HTML, but the back
cover index is empty. However, if I commented out these two lines
  <xsl:param name="targets.filename" select="'target.xml'" />
  <xsl:param name="make.valid.html" select="1" />
. Everything is fine.

I just debuged it and found in file html/autoidx.xsl (Maybe
xhtml/autoidx.xsl, but it seems it was generated from above.)
<xsl:template match="indexterm" mode="index-symbol-div">
   ...
  <xsl:apply-templates select="key('letter', $key)
      ...
       [&scope;][count(.|key('primary',&primary;)[1]) = 1]"
                       mode="index-primary">
      ...
  ...

The statement "count(.|key('primary',&primary;)[1])" is going to "2", so
the "select" is ''. I don't how collect.xref.targets make it wrong. 




-- 
Cai Qian


---------------------------------------
Received: (at 285155-done) by bugs.debian.org; 16 Feb 2005 20:01:26 +0000
>From mh@glandium.org Wed Feb 16 12:01:26 2005
Return-path: <mh@glandium.org>
Received: from aputeaux-152-1-36-88.w82-120.abo.wanadoo.fr (localhost.localdomain) [82.120.210.88] 
	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,
	279926-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: 285155-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
X-Spam-Level: 
X-CrossAssassin-Score: 5

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
closed.

Mike