From: SourceForge.net <no...@so...> - 2005-11-24 22:52:32
|
Feature Requests item #1075160, was opened at 2004-11-29 03:01 Message generated for change (Comment added) made by bobstayton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1075160&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: output: HTML Status: Open Resolution: Fixed Priority: 5 Submitted By: Richard Gabriel (dj_dick) Assigned to: Robert Stayton (bobstayton) Summary: Index formatting customization Initial Comment: I'd suggest to enable customization of index entries format. The current format is: entry, _link1_, _link2_ I dislike this and would use the form: entry _link1_, _link2_ or entry: _link1_, _link2_ AFAIK, different languages use different rules for index formatting. My suggestion is to add some index template(s) to particular language customization files (common/xx.xml). ---------------------------------------------------------------------- >Comment By: Robert Stayton (bobstayton) Date: 2005-11-24 14:52 Message: Logged In: YES user_id=193218 Thanks for testing this. It pointed out a couple of errors I had made, which I have now fixed in CVS. I also added your changes on the html side. So now it should work the same for fo and html. The idea behind the gentext usage is to permit setting different values for different languages. Setting a parameter value would apply to all languages, which is fine for someone who only processes one language or who wants to override the default on the command line for one document. So now the parameters are defined as empty. If the stylesheet detects it is not empty, then it uses it only to override the gentext value. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-11-24 14:52 Message: Logged In: YES user_id=193218 A change for this issue has been added to the current codebase. Please test the change with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- Comment By: Richard Gabriel (dj_dick) Date: 2005-11-24 05:30 Message: Logged In: YES user_id=1168188 Here is my proposal to the file html/autoidx.xsl. Of course, the parameters $index.term.separator, $index.number.separator and $index.range.separator must be added into html/param.xsl. I've copied them from fo/param.xsl. Note: I didn't figure out why the fo/autoidx.xsl stylesheet doesn't work. It seems to me to be OK... I use Saxon 6.5 as the XSL processor. ---------------------------------------------------------------------- Comment By: Richard Gabriel (dj_dick) Date: 2005-11-24 03:57 Message: Logged In: YES user_id=1168188 I'm sorry it doesn't work! I've tested HTML and FO output. The comma is always used as term and number separator. I took a look into the stylesheets. The file html/autoidx.xsl has an ID: $Id: autoidx.xsl,v 1.26 2005/01/13 08:52:14 bobstayton Exp $ Therefore I guess it has not been changed at all! :-( The file fo/autoidx.xsl seems to be updated: $Id: autoidx.xsl,v 1.35 2005/09/29 07:19:43 bobstayton Exp $ However, changing the 'term-separator' and 'number-separator' templates in the 'index' gentext context for the particular language doesn't make any sense. I also tried to directly set the parameter (regardless on the language): <xsl:param name="index.term.separator" select="  "/> also with no success... :-( ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-09-29 09:10 Message: Logged In: YES user_id=193218 I added the index punctuation to the locale files, with parameters to make it easier to change for one document. See the latest snapshot and the documentation for the index.term.separator, index.number.separator, and index.range.separator parameters. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-09-29 09:10 Message: Logged In: YES user_id=193218 A change for this issue has been added to the current codebase. Please test the change with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1075160&group_id=21935 |