Page 1 of 1

xref <title> without a hyperlink

Posted: Wed Apr 12, 2017 9:45 pm
by GKlimeck
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.

Re: xref <title> without a hyperlink

Posted: Thu Apr 13, 2017 9:24 am
by Radu
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/2091 ... -using-css

Regards,
Radu

Re: xref <title> without a hyperlink

Posted: Fri Dec 07, 2018 7:17 pm
by GKlimeck
Solved: I created a <text> element in the <title>. I can conref the text, and there is no hyperlink.

Re: xref <title> without a hyperlink

Posted: Mon Dec 10, 2018 9:11 am
by Radu
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