OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Font familiy of some automatically generated index-entries

Bob Stayton wrote:
> If you look in fo/autoidx.xsl, the stylesheet module that handles
> indexterms,
> you will find this line:
> <xsl:value-of select="primary"/>
> Taking the value of an element returns just the text content of the element,
> including those of its decendent elements.  I suspect this was done on
> purpose to give the index a consistent look and to avoid complications
> that might arise when elements are formatted. There are
> elements that are allowed inside <primary> that would break the formatting
> of an index.  For example, revhistory is allowed, but it generates a table.
> If you want to change that behavior, you will need to customize several
> templates in fo/autoidx.xsl. For example, replace the above line with:
> <xsl:apply-templates select="primary/child::node()"/>

Thank you, this works fine, but there is one problem left that sometimes 

Imagine that in your document you first talk about stacks as a 
datastructure in general and later you talk about a (C++, Java,...) 
implementation "class stack". So you have two indexterms


There should be twe separate index entries, one for stack in general 
(proportional font), and one for the class stack (fixed font) so that 
the reader can quickly distinguish between them. Many books do it this 
way, e.g. Stroustrup (from which I've taken this stack example.)

But the XSLT stylesheets map both indexterms to one entry.

Is there any way to workaround this?


Joachim Ziegler                       Stuhlsatzenhausweg 85
Max-Planck-Institut für Informatik    66123 Saarbrücken, Germany
Email: ziegler@mpi-sb.mpg.de          Tel.: (+49) 0681 9325-127

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]