← Prev in month
← Prev in thread
Re: processing instruction for htmlhelp.default.topic?
Hi Jirka,
thanks so much for your help! I'll test this out and let you know.
Copying the list for the benefit of all...
Best regards,
--Scott
Jirka Kosek wrote:
> Scott Hudson wrote:
>
>> IHAC that has many different docbook chunks for their Help content.
>> They want to be able to specify the default
>> help topic, but are using the Arbortext editor and engine. There
>> isn't an easy way to pass the parameter
>> during processing. Is there an XML PI that could be applied in the
>> content indicating which section should be used as
>> the default topic? Any ideas how to easily specify the default topic
>> for HTML Help?
>
> Currently there is no such PI. But if you will add the following into
> your customization layer, you will be able to mark section which
> should be default topic by placing <?default-topic?> inside this
> section. It is untested code, but it should/could work.
>
> <xsl:param name="htmlhelp.default.topic">
> <xsl:call-template name="make-relative-filename">
> <xsl:with-param name="base.dir">
> <xsl:if test="$manifest.in.base.dir = 0">
> <xsl:value-of select="$base.dir"/>
> </xsl:if>
> </xsl:with-param>
> <xsl:with-param name="base.name">
> <xsl:apply-templates
> select="/[not(//processing-instruction('default-topic'))] |
> //processing-instruction('default-topic')/parent::*"
> mode="chunk-filename"/>
> </xsl:with-param>
> </xsl:call-template>
> </xsl:param>
>
> HTH,
>
> Jirka
>
--
← Prev in month
← Prev in thread