OK, so I now understand the mimetype file contents, and how to reference an associated picture using <img src="..." alt="......."/>
mimetype should contain "application/epub+zip"
I'm not yet sure about encoding...
Are you creating an ePub?
No, not intentionally. I put epub because the idml specification only had that example as required.
I want to create and IDML package that InDesign can import and show the contents.
Sorry, that stuff is above my pay grade!
I thought it might be about ePub because when you create an ePub from InDesign by Exporting to (say) Reflowable ePub, the set of files it produces include a mimetype file.
If you know of anyone in the Adobe InDesign community that can answer my questions, it would help me to get my project finished!
Thanks for responding!
If they can, they will.
I suggest you don't post your contact details.
I made a mistake posting them and now cannot edit the post.
Can you tell me how to edit my post?
Once someone replies to your post you can't change it. Hopefully the forum moderator will delete your details.
Have a look at some of the other InDesign forums, such as InDesign Scripting, to see whether they may be able to answer your question.
FORUM MODERATOR - please delete my contact info in the thread this is replying to!
IDMLs are a package of XML files and you can get to the XML by unzipping. But if you try to edit the XML with a text editor it corrupts the IDML, so writing the XML via JS might not be as easy as it it seems. I would ask over in the SDK forum
I am beyond the question of, 'can I do it'. I've already created a sample IDML package that contains a single story with an embedded graphic reference, and opened it with InDesign.
InDesign shows the idml package as hierarchical XML attributes in a panel on the left side of the document - but it does not show the story contents in the document into which the IDML was merged or appended.
InDesign did say that the xml file was not well formed at first, but I corrected it to InDesign's expectations and now InDesign reports no errors with the IDML file.
So, I'm close to having it. But some help would get me done more quickly.
The IDML Specification references BackstoryXML. I'm going to try that next as it describes items never yet placed in the layout. My entire output has never been placed in the layout.
Thanks for responding Rob!
This sound like a very interesting project, but way beyond me though.
Have you considered a different approach. You could export to an intermediate file format of your design and then write a script that interpreted your file format and built the InDesign document.