Change format of XEP Index

Post here questions and problems related to editing and publishing DITA content.
reinierk
Posts: 36
Joined: Tue Feb 21, 2012 8:22 pm
Location: Rotterdam, the Netherlands
Contact:

Change format of XEP Index

Post 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
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Change format of XEP Index

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
reinierk
Posts: 36
Joined: Tue Feb 21, 2012 8:22 pm
Location: Rotterdam, the Netherlands
Contact:

Re: Change format of XEP Index

Post 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...
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Change format of XEP Index

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
reinierk
Posts: 36
Joined: Tue Feb 21, 2012 8:22 pm
Location: Rotterdam, the Netherlands
Contact:

No pagenumbers in main entry with sub entries

Post 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>
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Post Reply