Change format of XEP Index
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 36
- Joined: Tue Feb 21, 2012 8:22 pm
- Location: Rotterdam, the Netherlands
- Contact:
Change format of XEP Index
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
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
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Change format of XEP Index
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 36
- Joined: Tue Feb 21, 2012 8:22 pm
- Location: Rotterdam, the Netherlands
- Contact:
Re: Change format of XEP Index
To get what I wanted I commented out the hard coded on line 538 of index_xep.xsl...
Strange to hard code this attribute in the xsl file...
Code: Select all
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
Strange to hard code this attribute in the xsl file...
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Change format of XEP Index
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 36
- Joined: Tue Feb 21, 2012 8:22 pm
- Location: Rotterdam, the Netherlands
- Contact:
No pagenumbers in main entry with sub entries
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>
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
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service