5 Replies Latest reply on Jul 11, 2013 5:59 AM by MW Design

    InDesign Page number as XML attribute

    AnuragPrism

      Hi ,

      I need one help from you guyus, so let me give an overview of what I am looking for and request you to give a solution if possible

       

      Problem Summary:
      I have an InDesign Template file which is used for a magazine (automated),  ie the data for the magazine would come from other source and we are importing the data as XML to the template and start edits on the imported InDesign file.

       

      Now the real issue is, since we are suing XML, we have kept a page mapping in the XML as an attribute, ie copy the page number which is available in the InDesign page right bottom and paste the same in XML page number attribute. Since this is a manual process whenever there is a change in XML Template (add a new page or remove a page) we had to manually change the page number attribute which is tedious work, instead it would be really great if we can read the page number from the InDesign Template itself and somehow automatically generate the XML page number attribute.

       

      I hope you understand the issue. Please let me know if you have any solution in your mind

       

      Thanks in advance

       

      Regards,

      Anurag

        • 1. Re: InDesign Page number as XML attribute
          MW Design Level 4

          Anurag,

           

          I am sorry--I don't quite follow what it is you are desiring. Magazines using XML is also out of my work flow.

           

          Are you saying that the page number is in your XML source and you wish to maintain that numbering in ID?

           

          Can you use ID's numbering and for pages which jump due to intervening materials (a new section with its numbering), begin a new section numbering? Each section can pick up from the previous section, as pages are entered earlier, everything renumbers.

           

          But I fear I am simply not understanding.

           

          Take care, Mike

          • 2. Re: InDesign Page number as XML attribute
            AnuragPrism Level 1

            Hi Mike,

             

            Thanks for the reply..

             

            what exactly I am looking for is, read the page number from the current page and place the same as a attribute for the page XML

             

            I have seen a similar thread http://forums.adobe.com/message/5308051 here, but still not understanding how I can use this

             

             

             

            Thanks,

            Anurag

            • 3. Re: InDesign Page number as XML attribute
              MW Design Level 4

              First, as in that thread, I would inquire in the scripting forum. Your need is way above my pay grade!

               

              Second, the pagination will likely not be the same in the ID document unless you force breaks which may be able to be done on the last paragraph of the source via your style mapping. Don't know that for certain. It can at least be done post XML import.

               

              If you do not need to keep the absolute page flow from the XML, you can always use ID's page variables, of course. But I suspect you are wanting to maintain the XML source pagination. If so, you will need to ask in the scripting forum.

               

              Sorry I wasn't able to help. Mike

              • 4. Re: InDesign Page number as XML attribute
                AnuragPrism Level 1

                Thank you Mike for your effort to undestand my problem.

                let me post the same in scripting forum

                 

                 

                Thanks & Regards,

                Anurag

                • 5. Re: InDesign Page number as XML attribute
                  MW Design Level 4

                  Anurag,

                   

                  I have a thought. Can you share a few pages of this XML for me to try something? If so, please feel free to upload it to dropbox and send  me the link via a private message.

                   

                  Thank you, Mike