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] XSLT to insert Indexterms


nix4 wrote:

> <sect1><title>titleA</title></sect1>

> To this:

>
<sect1><title>titleA</title><indexterm><primary>titleA</primary></indexterm>
> </sect1>

  Then you want to do 2 things when encountering a title: copy it and
create an indexterm:

    <xsl:template match="">
       <xsl:copy-of select="."/>
       <indexterm>
          <primary>
             <xsl:value-of select="."/>
          </primary>
       </indexterm>
    </xsl:template>

  For the overall architecture of the stylesheet, I guess you want to
use the Modified Identity Transform pattern.

  Regards,

--drkm



















      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr



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