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] | [Elist Home]

Subject: DOCBOOK-APPS: HTMLHelp, base dir missing from filepaths in alias.h

There seems to be a bug in the htmlhelp.xsl template that generates the
alias.h file. I have set params to create the topic files in a subdirectory:

	<xsl:param name="base.dir" select="'html/'"/>
	<xsl:param name="use.id.as.filename" select="1"/>

but the entries in alias.h do not include the base directory, so I get:
which should be:

I fixed the problem by overriding the template as follows in my driver
stylesheet, to include the value of the $base.dir variable in the output:

<xsl:template match="processing-instruction('dbhh')" mode="hh-alias">
  <xsl:variable name="topicname">
    <xsl:call-template name="pi-attribute">
      <xsl:with-param name="pis" select="."/>
      <xsl:with-param name="attribute" select="'topicname'"/>
  <xsl:value-of select="$topicname"/>
  <xsl:value-of select="$base.dir"/> <!-- LINE INSERTED -->
  <xsl:call-template name="href.target">
    <xsl:with-param name="object" select=".."/>

It all works beautifully now. Should this change be made to htmlhelp.xsl in
the docbook distribution?

	Rob Smith

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

Powered by eList eXpress LLC