【问题标题】:How to tag an inDesign document so that tagged content is in between other tags?如何标记 inDesign 文档以使标记的内容位于其他标记之间?
【发布时间】:2015-11-04 22:30:39
【问题描述】:

在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>

这是我尝试过的:

当我导出 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>

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

【问题讨论】:

    标签: xml tagging adobe-indesign


    【解决方案1】:

    我认为你需要使用结构面板(视图->结构->显示结构)。

    将根重命名为“文章”,添加 id 和内容标签,并将正文和标题添加到内容标签。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多