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


There is currently no easy way to specify the target attribute for olinks. 
There is a parameter to do that for ulinks, but that won't work for olinks. 
It would make a nice feature request, though.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Peter Desjardins" <peter.desjardins.us@gmail.com>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, July 16, 2008 5:45 AM
Subject: Re: [docbook-apps] Creating text-only cross references with olink


> Thanks for your help with this.  I took a look at that template and
> I'm not ready to add a selective if/then condition (I don't fully
> understand how the href attribute is being written yet and my XSL
> skills are still rudimentary).
>
> As a short term fix, I'm interested in specifying a target attribute
> for the <a> HTML element.  Is there any way to specify a target
> attribute such as "_blank" in the document element of a targetset map?
>
> <document baseuri="/path/to/document/"
> targetdoc="mydoc">&mydoctargets;</document>
>
> Peter
>
> On Thu, Jul 10, 2008 at 12:37 PM, Bob Stayton <bobs@sagehill.net> wrote:
>> 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]