我想从xml转换为idml
XML文件:
<XLSE>
<table>
<tgroup>
<thead>
<tr>
<td>Sampe</td>
<td>Sampe</td>
</tr>
</thead>
<tbody>
<tr>
<td>Sampe</td>
<td>Sampe</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Sampe</td>
<td>Sampe</td>
</tr>
</tfoot>
</tgroup>
</table>
</XLSE>我在indesign中导入了这个文件,在idml中得到了xml结构,
请提供样品
发布于 2013-04-23 08:42:25
假设您想要一个IDML文件中的2x2Table,层次结构应该类似于= Story -> ParagraphStyleRange -> Table
一个极小的表元素看起来如下-
<Table Self="u126i190" ColumnCount="2" BodyRowCount="2" FooterRowCount="0" HeaderRowCount="0">
<Row Self="u126i190Row0" Name="0"/>
<Row Self="u126i190Row1" Name="1"/>
<Column Self="u126i190Column0" Name="0" SingleColumnWidth="47.760000000000005"/>
<Column Self="u126i190Column1" Name="1" SingleColumnWidth="47.760000000000005"/>
<Cell Self="u126i190i5" Name="0:0" ColumnSpan="1" RowSpan="1">
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle">
<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"/>
<Content>Row 1 Column 1</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
</Cell>
<Cell Name="1:0"> .... </Cell>
<Cell Name="0:1"> .... </Cell>
<Cell Name="1:1"> .... </Cell>
</Table>单元格的Name属性的值为= ColumnName:RowName。
https://stackoverflow.com/questions/12834184
复制相似问题