xref <title> without a hyperlink

Questions about XML that are not covered by the other forums should go here.
GKlimeck
Posts: 20

xref <title> without a hyperlink

Wed Apr 12, 2017 9:45 pm

I would like to cross-reference a list item <li> from concept A into concept B.

The <li> is in a <section> with a <title> in the concept A that also has a <title>.

I would like to write in concept B something like:
See (xref href="..." type="li"/> in section <title> in article <title>.
where the the titles of the section and concept article are shown but not hyperlinked.

How can I do this?

Thank you for your help.
Radu
Posts: 5927

Re: xref <title> without a hyperlink

Thu Apr 13, 2017 9:24 am

Hi,

If this is about HTML-based publishing, maybe you can set an @outputclass attribute on the xref, then from a custom CSS match it and disable the link on it:

http://stackoverflow.com/questions/2091168/disable-link-using-css

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
GKlimeck
Posts: 20

Re: xref <title> without a hyperlink

Fri Dec 07, 2018 7:17 pm

Solved: I created a <text> element in the <title>. I can conref the text, and there is no hyperlink.
Radu
Posts: 5927

Re: xref <title> without a hyperlink

Mon Dec 10, 2018 9:11 am

Hi,

Sorry for not being more helpful.
Originally you mentioned "cross-reference" which means link. So I did not know that you actually wanted a content reference, I thought you wanted for the same DITA content to sometimes have a link there and sometimes plain text depending on the publication.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 1 guest