← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] Request for suggestions: HTML Help alias.h entryfor block elements

From
Jirka Kosek <>
Date
2003-10-01T15:24:54+00:00
ID
Thread
Re: [docbook-apps] Request for suggestions: HTML Help alias.h entryfor block elements
Taro Ikai wrote:

> Currently, the stylesheets add entries for <?dbhh ...?> processing 
> instruction
> alone.
> 
> Has anyone done this? How should I go about modifying the stylesheet?
> 
> Here's an example of what I want:
> 
> <section id="myohmy">
>   ....
> </section>
> 
> alias.h:
> 
> myohmy=myohmy.html
> 
>  or
> 
> myohmy=myohmy.html#myohmy
> 
> In the latter case, I'd also have to generate <a id="myohmy"/> for every 
> @id'd block element.

Taro, try adding following into your customization layer:

<xsl:template match="section" mode="hh-map">
   <xsl:variable name="topicname" select="@id"/>
   <xsl:variable name="topicid">
     <xsl:call-template name="href.target"/>
   </xsl:variable>
   <xsl:text>#define </xsl:text>
   <xsl:value-of select="$topicname"/>
   <xsl:text>&#9;</xsl:text>
   <xsl:value-of select="$topicid"/>
   <xsl:text>&#xA;</xsl:text>
</xsl:template>

-- 
-----------------------------------------------------------------
   Jirka Kosek  	
   e-mail: 
   http://www.kosek.cz
← Prev in month ← Prev in thread
Next in thread → Next in month →