Skip to main content
mastachef45
Inspiring
March 16, 2018
Answered

Convert FM to XML - resolve missing entity references with Structured App

  • March 16, 2018
  • 1 reply
  • 469 views

When converting an FM Book using the GUI, there is a prompt that asks the user to chose one of the predfined Structured Application options within a dropdown menu. Once selected, the resulting XML contains two sections after the header information. The first section contains a list of entity references followed by the referenced file. The second section contains a huge tag with all the entitiy references, which look lik &bkc<some number>.

I am using the FDK C/C++ route. The script I have only produces the second section and the complete first section is missing. I searched the forums and saw a couple of refences to the following API call -> FS_StructuredSaveApplication().

IntT saveDitaIndex = F_ApiGetPropIndex(&saveParams, FS_StructuredSaveApplication);

StringT testString = F_StrCopyString((ConStringT)" ");

saveParams.val[saveDitaIndex].propVal.u.sval = testString;

I am still seeing no change in the output. My question is what value(s) should be or can be set for this to work?

This topic has been closed for replies.
Correct answer mastachef45

After reading a little more and a test, I was able to resolve the issue (posting been a little pre-emptive).

In line 2, the value is the string is equal to one of the various default types of Structured Applications within FM. Those types are located in the structapps.fm file. For example,

StringT testString = F_StrCopyString((ConStringT)" DITA1.1-Bookmap-FM");

1 reply

mastachef45
mastachef45AuthorCorrect answer
Inspiring
March 16, 2018

After reading a little more and a test, I was able to resolve the issue (posting been a little pre-emptive).

In line 2, the value is the string is equal to one of the various default types of Structured Applications within FM. Those types are located in the structapps.fm file. For example,

StringT testString = F_StrCopyString((ConStringT)" DITA1.1-Bookmap-FM");