From: SourceForge.net <no...@so...> - 2009-12-13 02:20:17
|
Bugs item #2896909, was opened at 2009-11-12 23:19 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2896909&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: None >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Robert Stayton (bobstayton) Assigned to: Robert Stayton (bobstayton) Summary: indexterm with duplicate sortas is missing from index Initial Comment: When two indexterms have the save value for their @sortas attribute, one of the indexterms will not appear in the index. The problem is that @sortas, if present, is treated as the primary for that element. If two terms have the same primary, they are merged into a single index entry with multiple page numbers. But they need to be separate indexterms if their actual primary elements differ. The solution is to use both @sortas and primary as the key in the indexterm xsl:index. Then the entry will sort on the first part, but will be different from other indexterms with the same primary value. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-12-13 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2009-11-28 02:20 Message: I replaced the old indexterm entity declarations used for sorting and grouping: <!ENTITY primary 'normalize-space(concat(primary/@sortas, primary[not(@sortas) or @sortas = ""]))'> with: <!ENTITY primary 'normalize-space(concat(primary/@sortas, " ", primary))'> Now if an indexterm has @sortas, then it is sorted and grouped by a combination of @sortas, space, and the entry, the latter to keep indexterms with duplicate @sortas values separate. If an indexterm does not have @sortas, then the first item in the concat is empty, and the space is removed when normalize-space is applied, leaving just the entry. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2009-11-28 02:20 Message: A fix for this issue has been added to the current codebase. Please test the fix with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2896909&group_id=21935 |