Skip to main content
13-Aquamarine
December 23, 2019
Solved

With FOSI technicals, how to remove the clickable area of a link text

  • December 23, 2019
  • 1 reply
  • 3986 views

Hello,

Using the link mechanisms (internal PDF link), I create a reference to a tag and display the text of the target tag. I would like to display this text without the link (non-clickable text). Is it possible ?

Kind regards

David

Best answer by SuzanneNapoleon
To my knowledge, ID and IDREF attributes will always link, and I know of no way to prevent that. You could contact Arbortext technical support to be sure. 
 
A workaround would be to use ACL to handle cross references to pgblk titles. 
  1. A different element would be needed with one CDATA attribute for the ID and another CDATA attribute to store the cross reference text (pgblk title). The CDATA attribute would not link.
  2. During the first formatting pass, the FOSI would write an external ASCII file with the ID and contents of each pgblk title. 
  3. Then ACL would search the SGML file for this cross reference element, match the ID in the external file, and fill the second attribute with the corresponding pgblk title. 
  4. ACL would re-format the document. 
  5. The FOSI would fillval the pgblk title from the CDATA attribute to a usetext source.

Hope this helps!

Suzanne

1 reply

12-Amethyst
December 23, 2019

Would you please provide the existing code?

Thanks!

Suzanne

dgopois13-AquamarineAuthor
13-Aquamarine
December 24, 2019

Hello Suzanne,

 

Thanks for your help.

 

The code:

<!-- SGML DTD fragment -->
<!ELEMENT refint    - - (#PCDATA)                                >
<!ATTLIST refint
          reftype   CDATA                         #REQUIRED
          refid     IDREF                         #REQUIRED      > 

 

<!-- DCF fragment -->
<Specials>
<Link element="refint" idref="refid"/>
...
</Specials>

 

<!-- SGML fragment -->
<para><refint reftype="pgblk" refid="pgblk-44-10-01-1001-1"></refint>...</para>
...
<pgblk chapnbr="44" sectnbr="10" subjnbr="01" pgblknbr="1001" chg="n" key="pgblk-44-10-01-1001-1" >
 <title>TESTING AND FAULT ISOLATION</title>
...
</pgblk>

 

<!-- FOSI fragment -->

<e-i-c gi="title" context="pgblk">
 <charlist>
 ...
 </charlist>
 <att>
  <fillval attname="key" attloc="pgblk" fillcat="savetext" fillchar="textid">
  <charsubset>
   <savetext textid="pgblk-title.txt" conrule="#CONTENT">
  </charsubset>
 </att>
...
</e-i-c>

<e-i-c gi="refint" context="* pgblk">
 <charlist>
  ...
 </charlist>
 <!--ref to pgblk-->
 <att>
  <specval attname="reftype" attval="pgblk">
  <charsubset>
   <usetext source="\Refer to \" placemnt="before">
    <subchars charsubsetref="inline">
     <highlt inherit="0" scoring="1" fontclr="blue" scorespc="1">
    </subchars>
   </usetext>
  </charsubset>
 </att>
...
</e-i-c>

 

<!-- Print view -->
Refer to TESTING AND FAULT ISOLATION
<!-- The text id generated by the link but I would like only display the text without the clickable area -->

12-Amethyst
December 26, 2019

Delete <Link element="refint" idref="refid"/> in the DCF.

Suzanne