author view: making links clickable

Oxygen general issues.
tolliver
Posts: 5
Joined: Thu Oct 25, 2012 2:02 pm

author view: making links clickable

Post by tolliver »

I'm putting together a document type associate for an XML that's based on DocBook.

I've found that in the author view, these links <uri xlink:href="http://awebsite.com">awebsite.com</uri> have the clickable anchor link, but these <link linkend="anXMLid">an internal link</link> don't have the link.

How can I specify that link elements, which don't include a href attribute, should also be treated as links?

Tolliver
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: author view: making links clickable

Post by sorin_ristache »

Hi Tolliver,

If you view in Author mode the XML documents of your document type with the same CSS stylesheet as in the built-in DocBook document type (or a similar CSS in which you did not remove the link:before selector) then the clickable lick icon should be displayed in Author mode for both the xref and link elements.

What does the CSS of your document type display for the link:before or link selector? Did you try to display for link:before or link the same clickable anchor link as for uri[xlink|href]? For example you can use in the CSS:

Code: Select all

link:before, xref:before {
link: "#" attr(linkend);
}

Regards,
Sorin
tolliver
Posts: 5
Joined: Thu Oct 25, 2012 2:02 pm

Re: author view: making links clickable

Post by tolliver »

That worked perfectly - thanks, Sorin
Post Reply