cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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

dgopois
12-Amethyst

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

8 REPLIES 8

Would you please provide the existing code?

Thanks!

Suzanne

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 -->

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

Suzanne

Hello Suzanne,

 

Thanks for your response.

But I would like delete the clickable area in some contexts not in all cases where I use the <refint> tag.

 

David

I assume the key attribute on pgblk is an ID?

Hello Suzanne,

 

Yes, the key attribute on pgblk is an ID.

 

David

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

Hello Suzanne,

 

Thank for your help.

 

David

Top Tags