Bad instructions - Test XML roundtripping
As previously stated in the thread: Bad instructions in the FrameMaker 2015 Help File, sections have been rearranged, and references poorly established, such that it is difficult to understand the procedure for working in structured FrameMaker.
Despite the problems, I managed to discern what the text was trying to say, and I had created an application before continuing with subsequent sections. In particular, I had created an application using the following sections:
Build a structured application
Create a DTD
Create a structured template
Configure the structured application
Copy the application files
As noted in the previous thread, you can't create the DTD prior to configuring the application, so the order of these sections actually needs to be:
Build a structured application
Configure the structured application
Create a DTD
Create a structured template
Copy the application files
Now, in the Configure the structured application section, I note lines (4) and (5), which state:
4)Insert a DTD element and specify the following as the DTD element text:
$STRUCTDIR/proposal/proposal.dtd
5)Insert a Template element and specify the following as the Template element text:
$STRUCTDIR/proposal/proposal_template.fm
6)Select File > Save to save the structapps.fm file.
Fine and good, and I'm able to proceed with creating both a DTD and structured template, which are then manually placed in the indicated application locations.
However, moving on to the subsequent procedure for Test XML roundtripping, I note the following:
For the line, "1) Create a valid structured proposal in FrameMaker," this line actually needs to be its own paragraph before the number starts:
Create a valid structured proposal in FrameMaker, as follows:
And the next line needs to be:
1) Export the structured_proposal.fm file to XML. To do so, select File > Save As XML. If prompted, select the Proposal application.
Fair enough. But now I'm dead stop because there is a parsing error when saving the XML. Here is the Console output:
Save as XML Log
Source Document: C:\FM_WorkFiles\structured_proposal.fm
Destination Document: C:\FM_WorkFiles\structured_proposal.xml
XML Parser Messages (Document Prolog)
Error at file C:\Users\Access\AppData\Local\Temp\FMT7BDB.tmp, line 3, char 3, Message: Could not open DTD file: C:\Users\Access\AppData\Local\Temp\$STRUCTDIR\proposal\proposal.dtd
Parse error at line 3, char 1: Error in processing external entity reference
Parsing aborted.
Error at file C:\FM_WorkFiles\structured_proposal.xml.E46, line 3, char 3, Message: Could not open DTD file: C:\FM_WorkFiles\$STRUCTDIR/proposal/proposal.dtd
Parse error at line 3, char 1: Error in processing external entity reference
Parsing aborted.
It appears that FrameMaker is not referencing the $STRUCTDIR path as expected. It is as if FM is taking my current working directory, then appending the proposal.dtd path from the application definition.
What further complicates matters are the forward slashes that I unintentionally typed when first creating the application, and though I fixed (replaced) them with backslashes, FM seems to be pulling the forward slashes from a temporary file.
Can anyone verify what I'm seeing, and make suggestions about how this sample project should be configured?
