Skip to main content
KAKADu
Participating Frequently
February 24, 2015
Answered

How to set relative path for the cross references?

  • February 24, 2015
  • 2 replies
  • 714 views

Hi,

I'm using FDK.

I try to work with cross references and I have problem with path name <XRefSrcFile>. Every time when I set it using by F_ApiSetString, it's set as an absolute path and I need to set it as relative path.

Has anybody any idea how to solve it?

Kate

This topic has been closed for replies.
Correct answer Russ Ward

Kate,

I cannot duplicate this behavior. When I set XRefFile as an absolute path, then save as MIF, I see a relative path in the MIF. The exception is if I specify an invalid path, then FrameMaker retains the absolute path. I am not sure what else to tell you, beyond this. Are you sure you are setting a valid path to a file?

Russ

2 replies

frameexpert
Braniac
February 24, 2015

Hi Kate, Russ is correct, the XRefFile property is set as an absolute path to the target file. As long as both files are on the same drive, FrameMaker will maintain it as a relative path and resolve the cross-references accordingly. -Rick

Braniac
February 24, 2015

Kate,

In my experience, the path should always be set with an absolute path. Likewise, when you retrieve the property, it comes back as an absolute path. However, if FrameMaker can internally resolve it as a relative path, it does so automatically. So, you should set it as an absolute path, but FrameMaker will internally convert to a relative path if possible.

Does that make sense? I'm not entirely sure what objective you want to achieve.

Russ

KAKADu
KAKADuAuthor
Participating Frequently
February 24, 2015

Hi Russ,

this is .mif output for cross reference, when FM create insert, and the next one is .mif output when is created by us.

It is possible to achieve the save of relative path as in first example?

Thanks,

Kate

Russ WardCorrect answer
Braniac
February 24, 2015

Kate,

I cannot duplicate this behavior. When I set XRefFile as an absolute path, then save as MIF, I see a relative path in the MIF. The exception is if I specify an invalid path, then FrameMaker retains the absolute path. I am not sure what else to tell you, beyond this. Are you sure you are setting a valid path to a file?

Russ