xref <title> without a hyperlink

Questions about XML that are not covered by the other forums should go here.
GKlimeck
Posts: 23
Joined: Tue Mar 07, 2017 7:54 pm

xref <title> without a hyperlink

Post by GKlimeck » 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: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: xref <title> without a hyperlink

Post by Radu » 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/2091 ... -using-css

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

GKlimeck
Posts: 23
Joined: Tue Mar 07, 2017 7:54 pm

Re: xref <title> without a hyperlink

Post by GKlimeck » 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: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: xref <title> without a hyperlink

Post by Radu » 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

Post Reply