Tracker: Feature Requests

5 Add param to control hyperlinking of olinks to external docs - ID: 3059394
Last Update: Tracker Item Submitted ( dcramer )

I would like to be able to make olinks NOT hyperlink in certain formats when I can't be sure that the target will be available. I've implemented it in my customization layer by declaring the new param <xsl:param name="olink.hyperlink.external.docs" select="1"/> and then customizing <xsl:template name="make.olink.href"> from common/olink.xsl and html/chunk-common.xsl to change:
<xsl:if test="$olink.key != ''>
to
<xsl:if test="$olink.key != '' and ($current.docid = @targetdoc or $olink.hyperlink.external.docs != 0)">

That does the trick.


David Cramer ( dcramer ) - 2010-09-04 09:36:07 PDT

5

Open

None

Robert Stayton

XSL

output: all formats

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.