From: SourceForge.net <no...@so...> - 2003-12-21 17:15:37
|
Bugs item #864018, was opened at 2003-12-21 18:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=864018&group_id=21935 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Felix Berger (bflat1) Assigned to: Nobody/Anonymous (nobody) Summary: jhelpmap: use anchors for target urls Initial Comment: We use the docbook dtd and xsltproc to generate the javahelp files for the manual and online help of XNap (http://xnap.sf.net/). The JavaHelp DefaultBroker creates a help dialog with a tree on the left where all sections are shown. When clicking on a tree item for a section which doesn't start on a new html page of its own, the section is not correctly located since the jhelpmap entry lacks the anchor entry: At present it looks like this: <mapID target="files-programs-player" url="ch04s03.html"/> But for javahelp to work correctly it should rather look like this: <mapID target="files-programs-player" url="ch04s03.html#files-programs-player"/> I've changed one template in javahelp.xsl to get the desired results: <xsl:template match="section|sect1|sect2|sect3|sect4| sect5|colophon" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> <xsl:text>#</xsl:text><xsl:value-of select="$id"/> </xsl:attribute> </mapID> </xsl:template> That's the line I added: <xsl:text>#</xsl:text><xsl:value-of select="$id"/> I'm not really familiar with xsl, but it worked for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=864018&group_id=21935 |