Skip to main content
M V SHAJI
Known Participant
May 4, 2009
Question

Figure Handling in XML Workflow through JavaScript

  • May 4, 2009
  • 1 reply
  • 829 views

Hi all!

I have a question related to Figure handling in XML workflow.

We are in process of implementing the XML workflow in Indesign with fully automated.

As a Initial process of creating the XML file for Indesign, we have created a XSLT with the RuleSet for "IN" and "OUT" process.

Once we imported the XML file in Indesign Template, we got all the figure and tables as "INLINE", as a typesetting process we need to drag from the tree and place it as float.

Please suggest how to drag the figures or tables from the "XMLTree" to make it as float, using Javascript.

We need to drag it from the tree and need to place in "top" or "bottom" of the page as per citation.

Any help or advice reg. this process, so that we can move further for the automation.

Waiting for the response as soon as possible.

Kavya

This topic has been closed for replies.

1 reply

M V SHAJI
M V SHAJIAuthor
Known Participant
May 6, 2009

Its strange to see that my question is not answered yet.

The XML-IN worflow guys should know this process.

Can anyone give me a idea how to do it.

kavya

May 6, 2009

Hi,

Please follow the steps, I hope you are aware of indesign javascript.

Figure:

1. You have to get all figure xmlelement in array (using xml rules)

2. Goto xmlfigure element and get page (where it is exist)

3. Using that page, you have to create a two text frames, one for image and another one for caption.

4. Place the caption and image to the corresponding frames.

5. You have to increase the textframe size upto override='false'

6. Group textFrames.

7. Move the frames, wherever you want eighter it is bottom or top.

Table:

1. You have to go all the pages and get tables from the document

2. Make one frame and place the table with parent element.

3. Resize the frame.

Regards,

sudar

M V SHAJI
M V SHAJIAuthor
Known Participant
May 6, 2009

Hi Sudar,

Thanks for the response, I will check and get back to you.

Any script available for this task.

Kavya