Changeset 3945


Ignore:
Timestamp:
Nov 12, 2007, 9:08:39 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #819: Links to javadoc can now work from any subdirectory level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.chunked.xsl

    r3944 r3945  
    5656<xsl:param name="use.id.as.filename" select="1"/>
    5757
     58<!--  path to javadoc root as seen from docbook root -->
     59<xsl:param name="javadoc.root.path">../api/</xsl:param>
     60
    5861<xsl:param name="chunker.output.encoding">utf-8</xsl:param>
    5962<xsl:param name="chunker.output.indent">yes</xsl:param>
     
    299302        </xsl:variable>
    300303       
    301         <xsl:text> </xsl:text>
    302304      <a>
    303305        <xsl:attribute name="href">
    304           <xsl:value-of select="concat('../../../api/',$packagePath,'/',$cleanClassName,'.html')" />
     306          <xsl:value-of select="concat($pathtorootdir, $javadoc.root.path, $packagePath, '/', $cleanClassName, '.html')" />
    305307        </xsl:attribute>
    306308        <xsl:attribute name="title">Javadoc for this class.</xsl:attribute>
     
    309311          <xsl:value-of select="concat($pathtorootdir, $admon.graphics.path, 'docapi.gif')"/>
    310312          </xsl:attribute>
     313          <xsl:attribute name="style">padding-left: 4px;</xsl:attribute>
    311314          <xsl:attribute name="border">0</xsl:attribute>
    312315        </image>
     
    340343          <xsl:call-template name="pathtorootdir" />
    341344        </xsl:variable>
    342         <xsl:text> </xsl:text>
    343345      <a>
    344346        <xsl:attribute name="href">
    345           <xsl:value-of select="concat('../../../api/',$packagePath,'/', $cleanClassName,'.html')" />
     347          <xsl:value-of select="concat($pathtorootdir, $javadoc.root.path, $packagePath, '/', $cleanClassName, '.html')" />
    346348        </xsl:attribute>
    347349        <xsl:attribute name="title">Javadoc for this interface.</xsl:attribute>
     
    352354          </xsl:attribute>
    353355          <xsl:attribute name="border">0</xsl:attribute>
     356          <xsl:attribute name="style">padding-left: 4px;</xsl:attribute>
    354357        </image>
    355358      </a>
Note: See TracChangeset for help on using the changeset viewer.