Thread View: adobe.framemaker.sgml
5 messages
5 total messages
Started by michael_randall
Sun, 28 Dec 2008 17:43
Export FrameMaker 8 file to XML - error finding template and dtd
Author: michael_randall
Date: Sun, 28 Dec 2008 17:43
Date: Sun, 28 Dec 2008 17:43
19 lines
1434 bytes
1434 bytes
Hello, I'm following along with the FrameMaker 8 Help file from "Processing XML" to "Testing XML round-tripping" and when I try to export my FrameMaker 8 file to XML, I get the following message: Error at file C:\DOCUME~1\MICHE~1\LOCALS~1\Temp\FMT43.tmp, line 3, char 3, Message: Could not open DTD file: C:\DOCUME~1\MICHE~1\LOCALS~1\Temp\$STRUCTDIR\XML\Preface\Preface.dtd Parse error at line 3, char 1: Error in processing external entity reference Parsing aborted. There is more to the error message, but it basically says the same as above. This is the second time that I have followed along with the FrameMaker 8 Help tutorial from the beginning and each time I receive the same error message. This time I created my own structured document, but still get the same error. Anyone else encounter this and have a solution? Thanks, Michael
Re: Export FrameMaker 8 file to XML - error finding template and dtd
Author: Scott_Prentice
Date: Sun, 28 Dec 2008 20:45
Date: Sun, 28 Dec 2008 20:45
7 lines
1066 bytes
1066 bytes
Hi Michael... It looks to me like your structapp definition is messed up. I'm not sure why it would be looking for the DTD in a location where "$STRUCTDIR" is in the middle of the path. In your structapp definition, does the "DTD" path start with "$STRUCTDIR\" ? Also .. is there a "Preface.dtd" file? Perhaps you can describe more about the way this structure application is set up. ...scott
Re: Export FrameMaker 8 file to XML - error finding template and dtd
Author: michael_randall
Date: Sun, 28 Dec 2008 21:51
Date: Sun, 28 Dec 2008 21:51
34 lines
1999 bytes
1999 bytes
Hi Scott, I created a proposal.dtd to follow along with the Help in FrameMaker 8 and when that one didn't work, I decided to start the process over but I created my own document stucture (Following all the steps in the Help). That is why I have a Preface.dtd Here are my structapp definitions for both proposal and preface: Application name: Preface DTD: $STRUCTDIR/XML/Preface/Preface.dtd Template: $STRUCTDIR/XML/Preface/Preface_Template.fm Application name: Proposal DTD: $STRUCTDIR/XML/proposal/proposal.dtd Template: $STRUCTDIR/XML/proposal/proposal_template.fm Help process I followed: Building the proposal EDD -successfully completed step Testing the EDD by importing into definitions into a document -successful Adding formatting to the EDD -successful Building the structured application 1. saved edd as dtd 2. created structured template by deleting content of original Framefile file and saving as template 3. configured the structured application as specified in the help -successful Round tripping Opened my FrameMaker proposal template and imported the EDD into it and created a basic proposal that followed the structure as it should. After I chose save as XML and selected proposal for the application that is when I received the error. Please let me know if any additional information would help. Thanks, Michael Randall
Re: Export FrameMaker 8 file to XML - error finding template and dtd
Author: michael_randall
Date: Sun, 28 Dec 2008 21:57
Date: Sun, 28 Dec 2008 21:57
8 lines
860 bytes
860 bytes
Hi Scott, One additional detail regarding the process I followed from the Help. I copied both the proposal.dtd and proposal_template.fm to the directory C:\Program Files\Adobe\Adobe FrameMaker 8\Structure\xml\proposal Thanks, Michael
Re: Export FrameMaker 8 file to XML - error finding template and dtd
Author: Scott_Prentice
Date: Sun, 28 Dec 2008 22:35
Date: Sun, 28 Dec 2008 22:35
34 lines
1906 bytes
1906 bytes
Hi Michael...
What you're doing looks reasonable .. it's hard to say what's going wrong, but here are some tings to try ..
- I'd use backslashes rather than frontslashes .. either *should* work, but in the past FM didn't like frontslashes.
- You should probably add a rules.txt file that at a minimum contains the following:
-x---------------------------------x-
fm version is "8.0";
#include "isoall.rw"
writer external dtd is public "-//MRandall//DTD MRandall Preface//EN" "Preface.dtd";
-x---------------------------------x-
- You should also add a mapping from a public ID to the DTD.
The resulting structure app definition would look like this ..
Application name: Preface
DTD: $STRUCTDIR\XML\Preface\Preface.dtd
Template: $STRUCTDIR\XML\Preface\Preface_Template.fm
Read/write rules: $STRUCTDIR\XML\Preface\rules.txt
Entity locations
Public ID: -//MRandall//DTD MRandall Preface//EN
Filename: $STRUCTDIR\XML\Preface\Preface.dtd
After updating the structapps.fm file, be sure to either restart FM or run the StructureTools > Read Application Definitions command.
Just out of curiosity .. can you round trip other XML files? Like, can you use the default DITA app to create save and reopen those files?
Lemme know how it goes.
...scott
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads