Next in thread → Next in month →

RE: [docbook-apps] WebHelp display issues - contents expand/collapse icons, intra-topic links

From
Wood Nick <>
Date
2015-03-31T14:47:13+00:00
ID
.NC3A
Thread
RE: [docbook-apps] WebHelp display issues - contents expand/collapse icons, intra-topic links
Janice, Barton,

As requested, add this fix to the linkend test in the inline.xsl, as follows:

	<xsl:when test="$linkend">
       	 <xsl:variable name="targets" select="key('id',$linkend)"/>
        	<xsl:variable name="target" select="$targets[1]"/>

        	<xsl:call-template name="check.id.unique">
         	 <xsl:with-param name="linkend" select="$linkend"/>
        	</xsl:call-template>

      	  <a>
          	<xsl:apply-templates select="." mode="common.html.attributes"/>
          	<xsl:call-template name="id.attribute"/>
         	 <xsl:attribute name="href">
            	<xsl:call-template name="href.target">
            	  <xsl:with-param name="object" select="$target"/>
           	 </xsl:call-template>
          	</xsl:attribute>

	<!--Add this fix to override JQuery-->
	<xsl:attribute name="onclick">
	<xsl:text>document.location='</xsl:text>
	<xsl:call-template name="href.target">
	<xsl:with-param name="object" select="$target"/>
	</xsl:call-template>
 	<xsl:text>';return false;</xsl:text>
	</xsl:attribute>


	<xsl:apply-templates select="$target" mode="html.title.attribute"/>
	<xsl:copy-of select="$content"/>
        
	</a>
      	</xsl:when>

Regards

Nick
Next in thread → Next in month →