Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Russ,
Thank you for reply, so now I know for sure that mistake is on my side.
Kate
Copy link to clipboard
Copied
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