XML import question - problem importing a graphic

2013-05-15 Thread Fred Wersan
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 --

]


bookSectionchapFrontMatterbookSectionNum/bookSectionNum
bookSectionTitleTitle/bookSectionTitle
para/para
chapTOC/chapTOC/chapFrontMatter
parayfigure 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
paraA-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: fwer...@mak.com

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

___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to framers@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.


XML import question - problem importing a graphic

2013-05-15 Thread Fred Wersan
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:









]>



Title



A-10 Thunderbolt
 (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