Create new structure document using FDK
Hi,
I am working on a client and in some parts of it, I want to create a new structured document using the structured application definition (I have DTD, EDD, read & write rules, and a template file.) Using the Adobe FDK Programmer's Reference I came up with the code below:
F_PropValsT params = F_ApiGetNewXMLDefaultParams();
F_PropValsT *retParams = NULL;
for (UIntT i = 0; i < params.len; i++)
{
params.val[i].propVal.u.sval = F_StrCopyString("S1000D_description_401");
}
F_ApiNewXML(¶ms, &retParams);
F_ApiDeallocatePropVals(¶ms);
F_ApiDeallocatePropVals(retParams);My problem is that the code creates a new document but has problems creating the structure (I even checked this code with Frame Maker defined S1000D descriptive schema, as it is seen in the code, but I had no chance.) I get an error message saying "Data Module Structure is not correct for ToC generation", and it creates an empty document without any structure.
Digging a little more into the FDK reference document, I found F_ApiCallClient("Structure Generator") command. I was not sure if it could solve my problem or not, but I thought of giving it a try. However, I got stuck. This command needs the ID of the rule table document, which I am not sure what it is?
So, to list my problems:
1) How can I create a structured document using FDK? What am I missing in my code?
2) Does "Structure Generator" related to my issue? If yes, what is the rule table document?
I would appreciate any kind of help or suggestions since I am working on this problem for weeks without any bit of improvement.
Thanks,
Sanam
