Page 1 of 1

author view: making links clickable

Posted: Tue Nov 13, 2012 12:50 pm
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

Re: author view: making links clickable

Posted: Tue Nov 13, 2012 4:15 pm
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

Re: author view: making links clickable

Posted: Tue Nov 13, 2012 6:58 pm
by tolliver
That worked perfectly - thanks, Sorin