This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Request for suggestions: HTML Help alias.h entry forblock elements
- From: Taro Ikai <tikai at ABINITIO dot COM>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 1 Oct 2003 16:23:35 -0400
- Subject: Re: [docbook-apps] Request for suggestions: HTML Help alias.h entry forblock elements
Jirka,
Your code has mode="hh-map", which affects context.h instead of
alias.h. But it gave me enough ideas, I will take it from here.
Thanks.
Taro
Jirka Kosek <jirka@kosek.cz> wrote on 10/01/2003 11:26:12 AM:
> 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>	</xsl:text>
> <xsl:value-of select="$topicid"/>
> <xsl:text>
</xsl:text>
> </xsl:template>
>
> --
> -----------------------------------------------------------------
> Jirka Kosek
> e-mail: jirka@kosek.cz
> http://www.kosek.cz
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.