5 Replies Latest reply on Mar 18, 2015 6:55 AM by MW Design

    Indesign, XML export and NITF

    Johanb Level 1

      As producer of a weekly newspaper, I need advice as to generate xml from Indesign CC (Mac) to NITF standards, as preferred by my digital distributor. That includes dividing an article - that may be formatted in just one text frame - into two equal elements: One for headline, byline etc., and one for the body of text. Is there any way of doing this without altering the original layout, intended for printing? I would rather not having to break the one frame up into two just for this purpose – for every article in the paper. Simply put: can one frame, in a whizz, be two elements, both head and body? There are no shortage of helpful advice around on xml, nor on the NITF standard for news dressing, but I have not yet found one that deals with both. Thanks in advance.

        • 1. Re: Indesign, XML export and NITF
          MW Design Level 5

          If I am understanding correctly you just need to tag the elements appropriately. To use a simple example, if I have a single frame of text that has a heading and body text, I would create two tags, one for the heading and one for the body. Then I would select the heading and apply the heading tag and do the same for the body. When exported to xml you will have two elements one with the heading tag and one with the body tag.


          I am ignorant as to the NITF requirements and so you may need anew XSLT to run on the exported XML that would make it conform to the standard. I dunno as I am unaware of it. This part, if needed I would do in an xml editor or a good text editor that is capable of what needs done.



          • 2. Re: Indesign, XML export and NITF
            Johanb Level 1

            Your suggestion seem to work for me. I created two tags (head and body) that I applied just to other groups of tagged text. It gave me this structure, that might just be what my doctor ordered. Now I am ready to move on to next question: How to get 3 text frames squeezed into this same structure... Thank you so much, Mike!





















            • 3. Re: Indesign, XML export and NITF
              MW Design Level 5

              If they are not threaded frames, they will be technically divided into separate second-level (or whatever) main elements. Like the Article elements shown for the two frames I have here:



              If you want them to all be under, in my example Article1, then either the frames need threaded or there needs to be post export editing. So if I look at the XML in a text editor, I can easily see structure. In the screen shot below, I could remove the two highlighted element names in the middle of the screen shot and change the small red rectangle number to a 1, which would make the entire structure into a single "Article" instead of two.




              I don't know the end-point--the where and what this XML out is going into--but I would not think this would be important. But...like I wrote before, this is outside of my normal work-flow (the XML out).



              • 4. Re: Indesign, XML export and NITF
                Johanb Level 1

                Thanks again for demonstrating the flexibility of Indesigns xml features. It is all very useful information. The new end-point is an e-newspaper for pads, phones and computers (bundled somehow with the print-purposed PDFs) distributed by a commercial agent. The starting point is the traditional work flow: word (windows) text processing, tagged to styles for Indesign (mac) lay out. We are a small organization (weekly newspaper), and my new task is to provide xml of the whole 40-48 pages Indesign layout – with no or minimal extra ressources. I must choose weather we go for xml first or xml last. The latter seems better, as it involves only one person, namely me. The (outlandish for a norwegian) NITF standard is, it seems now, not essencial after all, as the distributor easily can script convert my files. They actually accepted my Indesign style names as xml-tags, and that makes the whole process easier to automate for me.


                • 5. Re: Indesign, XML export and NITF
                  MW Design Level 5

                  Johan, I think that's good news!


                  Post-processing, especially if they can do so with the ID output to what they want, sounds like the best process.