Indesign和XML-如何自动流入具有不同样式的多个页面? [英] Indesign and XML - how to auto flow into multiple pages with differing styles?

查看:140
本文介绍了Indesign和XML-如何自动流入具有不同样式的多个页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此刻我有一个问题。我正在尝试使用indesign(cs3)和xml。

I've got a bit of a problem at the moment. I'm trying to work with indesign (cs3) and xml.

基本上我有一个模板,该模板具有1个主dps,两个页面具有相同的数据(字段1 -5),但左对齐,右对齐-因此段落样式略有不同。我想做的是导入xml,并在设计中将各个节点的数据流到许多页面中。

Basically i have a template which is has 1 master dps, both pages have the same data (fields 1-5) but one is left aligned, one right - hence mildly different paragraph styles. What i want to be able to do is import xml and have indesign flow the data from the individual nodes into many pages.

例如xml格式:

root
  day
    field1
    field2
    field3
    field4
    field5
  day
    field1
    field2
    field3
    field4
    field5
  day
    ...

我几乎可以通过标记母版页上的框架,然后创建页面并导入xml来完成这项工作,但是它仅流前2个

I can almost make this work by tagging the frames on the master pages, then creating pages and importing the xml, however it only flows the first 2 nodes into the pages reptitively for the total count of all the nodes.

我也几乎可以通过从未加标签的母版创建页面,然后用field1-5标记,然后导入xml。这会填充第一页,但是随后我找不到一种将其余数据流到新页面中的方法...

I can also almost make it work by creating a page from the untagged masters and then tagging the frames with the field1-5 tags then importing the xml. This populates the first page, however i then can't find a way to make the rest of the data flow into new pages...

我错过了什么吗?我是一个完整的笨蛋吗?如果有人可以提供任何帮助,将不胜感激...

Am I missing something? Am I being a complete dumbass? If anyone can offer any help it will be greatly appreciated...

推荐答案

我意识到这是一个比较老的问题,但是我相信我在这里有一些见识。

I realize that this is an older question, but I believe I have some insight here.

InDesign将根据XML文件的大小创建框架和页面。

InDesign will create frames and pages based on the size of an XML file.

这是......
我在参考CS6来获得此答案,但是从CS3开始我已经这样做了多年。

Here is how... I'm referencing CS6 for this answer, but I've done this for years beginning in CS3.


  1. 确保您的Indd模板至少有2页。这些可以是反映左右布局的母版页。这些页面必须具有相同的主文本框架。创建新文档时,这是一个选项。

  1. Ensure your Indd template has at least 2 pages. These can be master pages mirroring right and left layouts. The pages must have the same primary text frame. This is an option when you create a new document.

照常导入XML。确保选中每个XML工作流程所需的任何选项。

Import your XML as usual. Be sure to tick off any options you need per your XML workflow.

将XML放入主文本框架。由于通常会流整个文档,因此我选择了根元素并拖动到框架,但这将在您选择的任何节点上起作用。

Place the XML into the primary text frame. Since I typically flow entire documents, I select the root element and drag to the frame, but this will work on any node you select.

如果XML大于框架可以支持的大小,在框架右下方的方框中会有一个红色加号(+)。单击加号,您将得到一个箭头,其中包含纸形图标和您的XML内容的表示形式。

IF the content of the XML is larger than the frame can support, there will be a red plus sign (+) in a square box towards the bottom right of the frame. Click the plus sign and you'll get an arrow containing an paper icon and a representation of your XML content.

转到第2页的文本框架。您只需在框架内单击,InDesign就会在该框架中容纳尽可能多的内容,并且您需要通过添加页面并将内容放置在末尾来再次重复该过程。

Goto the text frame on page 2. if you simply click inside the frame, InDesign will flow as much content as will fit in that frame and you'll need to repeat the process again by adding pages and placing content to the end.

但是,如果在放置内容时按住SHIFT键,则纸张图标将变为漩涡状箭头。放置后,InDesign会将内容自动流到左右页面,直到XML选择结束。如果您有母版页,它将在整个页面的左右使用。

However, if you hold down the SHIFT as you place the content, the paper icon will change to a swirly arrow. After you place, InDesign will autoflow the content to left and right pages until the end of the XML selection. If you have master pages, it will use those pages for the left and right throughout.

如果您有标签

关于将标签映射到样式的说明...执行标签/样式映射之前 >放置内容。否则,InDesign将需要重新绘制页面。这是一项占用大量内存的操作,根据文件大小,InDesign可能会崩溃。如果有的话,它将比您在放置样式之前对样式进行映射要花费更多的时间。

One note about mapping tags to styles...Perform your tag/style mapping prior to placing content. Otherwise, InDesign will need to redraw the pages. This is a memory-intensive action and could crash InDesign depending on your file size. If anything, it will take much longer than if you had mapped the styles before placement.

我希望这对某人有帮助。我还没有看到Adobe或任何其他论坛记录的该操作。 InDesign中有许多未记录的操作和功能,尤其是有关XML的操作和功能。

I hope this helps someone. I haven't seen this action documented by Adobe or in any other forums. There's many undocumented actions and features in InDesign especially concerning XML.

这篇关于Indesign和XML-如何自动流入具有不同样式的多个页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆