将XML导入InDesign [英] Importing XML into InDesign

查看:295
本文介绍了将XML导入InDesign的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用InDesign创建XML数据模板。基本结构为:

I am trying to create a template for XML data using InDesign. Basic Structure is:

<page>
<section1>
<product><title></title></product>
<product><title></title></product>
...
</section1>
<section2>
....

每个部分的产品数量都是可变的。将使用正确的部分数量创建每个模板(尽管重复使用子产品的部分也可以)。

Each section has a variable number of products. Each template will be created with the correct number of sections (although repeating sections with child products would also work).

使用导入XML功能是否支持此方案?任何人都可以指向显示该设置方法的教程吗?

Is this scenario supported using the Import XML functionality? Can anyone point to a tutorial showing how to set this up?

我尝试了一些示例,但是在添加占位符并重新导入后,InDesign甚至无法重复产品

I have tried some examples, but cannot get InDesign to even repeat the products after adding placeholders and re-importing the file as all tutorials suggest..

谢谢

推荐答案

一次您已经将XML转换为HTML或DocBook XML,则可以使用Pandoc将其导入InDesign。

Once you've converted your XML to HTML or DocBook XML, you can use Pandoc to get it into InDesign.

Pandoc 有很多导入器(例如从HTML或DocBook XML导入),现在可以导出为Adobe InCopy的ICML格式。然后可以将生成的文件像其他任何外部依赖项一样放置在InDesign中。

Pandoc has lots of importers (for example from HTML or DocBook XML) and can now export to Adobe InCopy's ICML format. The resulting file can then be placed in InDesign like any other external dependency.

pandoc --standalone -t ICML -o output.icml input.html

这篇关于将XML导入InDesign的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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