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: How do you create permalinks for individual glossary terms?


Hi,

I have been trying to figure out how to create permalinks for individual glossary terms in my glossary.  I spent quite a while figuring out how to make this solution work for all my chapters and section headings with the help of this nice cookbook on the topic - http://doccookbook.sourceforge.net/html/en/dbc.html.permalinks.html.  After tweaking my local copy of section.title.xsl, I finally got correct permalinks attached to all levels of my sections (not just the first) and I also had the actual section titles appear in the HTML output (they did not at first).

Moving onto creating similar permalinks for my glossary terms, I can't seem to find enough information googling about to figure it out. 

Here is the general XML form for each of my glossary entries:

<glossdiv id='some-grouping-id'><title>SOME-GROUPING</title>

         <glossentry id='some-id'><glossterm>SOME-TERM</glossterm>
            <glossdef>
                <para>
                   Some definition.
                </para>
            </glossdef>
         </glossentry>

         <glossentry id='another-id'><glossterm>ANOTHER-TERM</glossterm>
            <glossdef>
                <para>
                   Some definition.
                </para>
            </glossdef>
         </glossentry>

</glossdiv>       

I first tried to see if any of the existing templates provided by that cookbook link would apply to the glossentry element but couldn't figure it out.  Next, I thought I would need to create a new local XSL template to deal with this element.  So, I tried to find out which XSL template to base it on. 

I just am not having any success trying to figure out the overall approach (new template that my customization layer can include or somehow be able to use one of the other XSL templates I have downloaded and am using from the cookbook approach).

If anyone could help in any way with some direction, example XSL code, etc., I would really appreciate it.

Best,
Scott Rifenbark


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