我想从XML文件将文本导入InDesign,并自动将样式应用于该标记。我已经为文档中的每个XML标记创建了一个样式。但是,当我将文本拖动到框架中时,不会应用样式。我确实在文本周围看到了彩色标签,所以我认为InDesign知道它应该应用哪种风格,但却没有显示出来。可能有一些设置来启用它吗?
非常感谢!
答案 0 :(得分:0)
答案 1 :(得分:0)
尝试这种XML结构:
<?xml version='1.0' encoding='UTF-8'?><root xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"><p aid:pstyle="Paragraph Style 1">Hi, This is first paragraph with applied paragraph style ==Paragraph Style 1</p>
<p aid:pstyle="Paragraph Style 2">Hi, This is first paragraph with applied paragraph style ==Paragraph Style 2</p>
<p aid:pstyle="Paragraph Style 3">Hi, This is first paragraph with applied paragraph style <span aid:cstyle="Bold">==Paragraph Style 3==</span>, this name is also applied with character style Bold</p>
<p aid:pstyle="Paragraph Style 3"><span aid:cstyle="Bold">Bold character Style</span>
<span aid:cstyle="Italic">Italic character Style</span>
<span aid:cstyle="BoldItalic">BoldItalic character Style</span>
All character styles are separated by Soft return Entity i.e &#x2028; and paragraphs are separated with Paragraph end entity i.e. &#x2029;</p></root>