glossentry xrefs in PDF include page number

Post here questions and problems related to editing and publishing DITA content.
amyers3
Posts: 28
Joined: Sat Feb 16, 2019 8:43 pm

glossentry xrefs in PDF include page number

Post by amyers3 »

Hi,

I want to remove the page number from my glossentry xrefs. I am using the Editor 21 PDF html/css transformation.

The *merged.html file has the following:

<a class="- topic/xref xref" href="#unique_9" type="glossentry">term</a>

The PDF has:

term (page 396)

I want the PDF to show:

term

Is there any easy way to do this with my custom css file?
Adam Myers
Technical Publications Manager
MATRIXX Software
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: glossentry xrefs in PDF include page number

Post by Dan »

Hello Adam,

Please use:

Code: Select all

*[class ~= "topic/xref"][href]:after,
*[class ~= "topic/link"][href]:after {
    content: none !important;
}
The documentation about link styling is here https://www.oxygenxml.com/doc/ug-pdf-cs ... dcpp_links
In the current documentation the !important qualifier is missing.

Many regards,
Dan
amyers3
Posts: 28
Joined: Sat Feb 16, 2019 8:43 pm

Re: glossentry xrefs in PDF include page number

Post by amyers3 »

Thanks for the quick reply, Dan.

I tweaked it a bit so that the page number is only removed from the glossary xref and everything looks good.

Code: Select all

*[class ~= "topic/xref"][href][type="glossentry"]:after {
    content: none !important;
}
Thanks,

Adam
Adam Myers
Technical Publications Manager
MATRIXX Software
Post Reply