Page 1 of 1

Change format of XEP Index

Posted: Fri Dec 07, 2012 12:29 pm
by reinierk
I would like to change the layout of the XEP index. I looked at ${frameworks}/dita/...index_xep.xsl I think the select="opentopic-index:index.entry" mode="index-postprocess" template is producing it.

To be honest I do not understand a thing what going on there....
I looks like indexes entries are formatted as tables.

I would like to have the following layout:
<index-indents>rpm command ................. 23
For ordinary page-list entries. The other formats (See also etc..) may remain the same.
So everything on a single line. In other words: Indent spacing, Index term, space , filling dots, space, page-number-list (on the right column edge).

How to change this? Do I have to ask somebody the program a special index_xep.xsl for me? Who can do that for me?

Kind Regards,
Reinier Kleipool

Re: Change format of XEP Index

Posted: Fri Dec 07, 2012 1:48 pm
by Radu
Hi Reinier,

From what I understand you want all the page numbers in the Index to be aligned to the right (like in the Table of Contents for example).
I do not have a suggestion for this.
Maybe you should post on the DITA Users List about this, there may be users who had the same problem willing to guide you.

Regards,
Radu

Re: Change format of XEP Index

Posted: Tue Dec 18, 2012 6:55 pm
by reinierk
To get what I wanted I commented out the hard coded

Code: Select all

<xsl:attribute name="keep-with-previous">always</xsl:attribute>
on line 538 of index_xep.xsl...

Strange to hard code this attribute in the xsl file...

Re: Change format of XEP Index

Posted: Wed Dec 19, 2012 10:58 am
by Radu
Hi Reinier,

Thanks for sharing the solution although looking back at the thread I must confess that I was wrong in my assumption that I understood what you wanted to achieve. Usually in cases like this screenshots help.

Regards,
Radu

No pagenumbers in main entry with sub entries

Posted: Thu Dec 20, 2012 12:00 pm
by reinierk
If you want to skip the list of page numbers in a main IX entry that has sub entries.
So
Commands 3,5,9
...ls, 3
...pwd, 5
...cd, 9

becomes

Commands
...ls, 3
...pwd, 5
...cd, 9

Change line index_xep.xsl:408 in template <xsl:template match="opentopic-index:index.entry" mode="index-postprocess">
from <xsl:with-param name="no-page" select="$isNoPage"/> to
<xsl:with-param name="no-page">true</xsl:with-param>