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


Subject: Re: [docbook-apps] Creating text-only cross references with olink


Hi Peter,
You can customize the template that generates the href string from the olink 
database so that it returns nothing, in which case you will get a plain text 
reference instead of a link.  The template in common/olink.xsl is named 
"make.olink.href".  If you want to turn off all olink links, you could just 
add this to your customization layer:

<xsl:template name="make.olink.href"/>

If you want to be more selective based on document id, you'll need to copy 
that template to your customization layer and modify its behavior based on 
your criteria.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Peter Desjardins" <peter.desjardins.us@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, July 09, 2008 6:57 PM
Subject: [docbook-apps] Creating text-only cross references with olink


> Hi.
>
> I have a set of HTML documents that are divided into separate
> deliverables.  There is no way to create live hyperlinks from one
> deliverable to the other.  However I do have cross-references from
> each document to specific sections in the other.  All the
> cross-references are created using olinks.  I'm trying to figure out
> how to set up my targetset file so that cross-references to certain
> targetdocs do not become live hyperlinks.
>
> Is there any way to configure olinks so that they are rendered as
> plain text references to a specific named section in another document
> and not a live link?  Is this something that should be done by
> customizing the XSL?  I've tried removing the baseuri attribute from
> the document element in the targetset but the link is still created.
>
> If this doesn't make sense, the more detailed story is that I have a
> set of seven eclipse help plugins.  These are divided between two
> completely separate help servers and online links cannot and should
> not work from one system to the other.  However we do include
> occasional cross-references that refer to content in the other system
> for the benefit of the audience who may use both.  I want to indicate
> the section number, the section title, and the title of the overall
> document (the standard olink generated text) but not create a link at
> all.
>
> My system uses DocBook 4.5, XSLT version 1.73.2, and the Saxon XSLT 
> processor.
>
> Thanks for your help.
>
> Peter Desjardins
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



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