🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #495

Re: Export FrameMaker 8 file to XML - error finding template and dtd

#495
From: Scott_Prentice
Date: Sun, 28 Dec 2008 22:35
34 lines
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
Technical Details
Message-ID: <59b75fb3.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b75fb3.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,f6dfd6c164c4cd34
X-Google-Attributes: gidfcc08,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Scott_Prentice@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.framemaker.sgml
Subject: Re: Export FrameMaker 8 file to XML - error
 finding template and dtd
Message-ID: <59b75fb3.3@webcrossing.la2eafNXanI>
Date: Sun, 28 Dec 2008 14:35:50 -0800
References: <59b75fb3.-1@webcrossing.la2eafNXanI>
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit