XML import question - problem importing a graphic

Fred Wersan fwersan at mak.com
Wed May 15 09:37:17 PDT 2013


I am trying to import some XML into FrameMaker 8 Structured. (I want to 
build the XML file programmatically to reference a bunch of graphics 
files that would be too tedious to set up manually (although now that I 
think of it, I bet I could do this using Framescript, but I'll ask my 
question anyway.)

If I set up a test document and export to XML (to see what it needs to 
look like), I get this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookSection SYSTEM 
"file:///E:/MAK-Manuals/XML/makproddocedd.dtd" [

<!-- Begin Document Specific Declarations -->


<!NOTATION png SYSTEM "">
<!ENTITY yfigure1 SYSTEM "yfigure16.png" NDATA png>
<!-- End Document Specific Declarations -->

]>


<bookSection><chapFrontMatter><bookSectionNum></bookSectionNum>
<bookSectionTitle>Title</bookSectionTitle>
<para></para>
<chapTOC></chapTOC></chapFrontMatter>
<para><yfigure entity = "yfigure1" impsize = "3.183in 2.854in"
     impby = "copy" sideways = "0" impang = "0.000" xoffset = "0.076in"
     yoffset = "-0.135in" position = "below" align = "acenter"
     cropped = "0" float = "0" width = "3.335in" height = "2.583in"
     angle = "0.000" nsoffset = "0.000in"/></para>
<para>A-10 Thunderbolt</para>
.... (more of the same)

If I try to reimport this into FrameMaker by importing an XML file, the 
log file complains that I can't have a DOCTYPE. If I delete all that top 
stuff, I don't get that complaint, but FrameMaker can't figure out what 
yfigure1 is. If I delete the figure and just import the para element, it 
all works fine.

So the crux of the problem is figuring out how to tell FrameMaker what 
file to use for each figure.

I think I once figured out how to round trip graphics, but I can't 
remember what I did.

If anyone can give me a clue, I'd appreciate it.

Thanks.

Fred



-- 
Fred Wersan
VT MÄK, Principal Technical Writer
150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140
T: 857-209-3469  Email: fwersan at mak.com

Where Live, Virtual, and Constructive Simulation Meets the Web
www.mak.com/weblvc




More information about the framers mailing list