Skip to main content
February 5, 2009
Question

IDML Feature

  • February 5, 2009
  • 2 replies
  • 1221 views
Hi All,

I am exploring the feature of IDML and I have shown working model of IDML to my seniors. I got some flair of knowledge of IDML, but still have some doubts. If some has does that analyzing part then please share with me so that we can speedup our work.
--Entities handling by IDML
--MathML handling by IDML
--Export XML by IDML

In my organization we are taking XML as input for InDesign. I want to import the XML file and partial paginated file should get generated, previous by AID style I have automated CS2 & CS3. But now I want to go with IDML & XSL.

If any one want any help related to IDML, I will welcome those persons.

Thanks
Rajeev
This topic has been closed for replies.

2 replies

Jongware
Community Expert
Community Expert
February 26, 2010

--Entities handling by IDML

What entities? Tags, attributes, meta characters? All the entities in your IDML should comply to the IDML specifications. I bet creating one yourself will simply result in InDesign telling you "Invalid IDML" (something like that).

--MathML handling by IDML

IDML has nothing to do with MathML, other than that both are expressed with XML. It's not a magic gateway to "insert" MathML into InDesign; you have to convert each MathML object to IDML primary objects -- lines, characters, fonts -- before you can "see" them in InDesign ("see" between quotes because, well, at that point there is nothing left of the actual MathML; all you have in ID is a group of unconnected lines, characters, and fonts). It is definitely not a backdoor to automatically convert this

 <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN"
           "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">
  <math xmlns="http://www.w3.org/1998/Math/MathML">
    <mrow>
      <mi>a</mi>
      <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
      <msup>
        <mi>x</mi>
        <mn>2</mn>
      </msup>
      <mo>+</mo>
      <mi>b</mi>
      <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
      <mi>x</mi>
      <mo>+</mo>
      <mi>c</mi>
    </mrow>
  </math>

to this

ax2 + bx + c

--Export XML by IDML

IDML does not "export XML". IDML 'does' nothing -- it's a file format. InDesign does the exporting, if (and only if) there are tags in the file that's active when you select "Export to XML". If you want XML tags in place after opening your IDML file, well, I think you have to insert them yourself in the IDML before you have it opened by ID.

In my organization we are taking XML as input for InDesign. I want to import the XML file and partial paginated file should get generated, previous by AID style I have automated CS2 & CS3. But now I want to go with IDML & XSL.

It might be possible, but these are two very different things!

1. XML as input for InDesign: No. You have a template document, with XML placeholders, or perhaps an XML Rules script, that format XML elements as they get imported.

2. The IDML route: you (yes you!) have to create a self-containing file that InDesign can open. How you create that file, is entirely up to you. Because it's XML, you can use XSLT to create it, but you have to create an IDML file. If you want to retain your XML tags (as stated above), you will have to convert them to the format that IDML expects and insert them in the correct positions yourself.

Participating Frequently
February 25, 2010

If you are planning to use JAVA maybe our IDMLlib can help you there.

http://idmllib.com

Cheers,

Oliver

http://idmllib.com