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
[EMAIL PROTECTED]
----- Original Message -----
From: "Peter Desjardins" <[EMAIL PROTECTED]>
To: "Bob Stayton" <[EMAIL PROTECTED]>
Cc: <[email protected]>
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 <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
----- Original Message ----- From: "Peter Desjardins"
<[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]