如何标记inDesign文档以使标记内容介于其他标记之间?

时间:2015-11-04 08:26:02

标签: xml tagging adobe-indesign

很容易标记单个内容,然后在inDesign中将其导出为xml。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <Root><content>Simple text block</content></Root>

我正在努力做的是让它在另一组标签中导出标签/内容。 示例:我想标记我的文档,以便导出为:

<?xml version='1.0' encoding='UTF-8'?>
<article>
  <id>123</id>
  <content>
    <body>Some text</body>
    <headline>Some other text</headline>
  </content>
</article>

这是我尝试过的: enter image description here

当我导出xml时,我得到以下内容:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<article>
    <content>Simple text block</content>
    <id>123</id>
    <content></content>
    <body>Some text</body>
    <headline>Some other text</headline>
</article>

如何标记元素以便在另一组标记中导出标记/内容?

1 个答案:

答案 0 :(得分:2)

我认为你需要使用结构面板(View-&gt; Structure-&gt; Show Structure)。

将root重命名为“article”,添加id和内容标记,并将内容和标题添加到内容标记。

标记布局对象并尝试导出xml。