XML에서 Indesign XML 코드로 변환해야합니다. 친절하게 조언 누군가가 대답을 알아.XML 목록 항목에서 Indesign XML 코드로 변환해야합니다.
<root>
<p><list list-type="order">
<list-item><p>This is quick.</p></list-item>
<list-item><p>Sivakumar Given and the fact that
<list list-type="bullet">
<list-item><p>This is sublist</p></list-item>
<list-item><p>This is sub middle list</p></list-item>
<list-item><p>This is sub last list</p></list-item>
</list>
</p></list-item>
<list-item><p>We are now left with four remaining parameters:</p></list-item>
<list-item><p>Given and the fact that</p></list-item>
<list-item><p>In Section we obtained an estimate for the mean of.</p></list-item>
<list-item><p>From steps 3, 4, and 5 above, we have generated (a table of) values for.</p></list-item>
</list></p>
</root>
필수 출력
<root>
<p><list list-type="order">
<list-item aid:pstyle="Order-First"><p>This is quick.</p></list-item>
<list-item aid:pstyle="Order-Middle"><p>Sivakumar Given and the fact that
<list list-type="bullet">
<list-item aid:pstyle="SubBullet-First"><p>This is sublist</p></list-item>
<list-item aid:pstyle="SubBullet-Middle"><p>This is sub middle list</p></list-item>
<list-item aid:pstyle="SubBullet-Last"><p>This is sub last list</p></list-item>
</list>
</p></list-item>
<list-item aid:pstyle="Order-Middle"><p>We are now left with four remaining parameters:</p></list-item>
<list-item aid:pstyle="Order-Middle"><p>Given and the fact that</p></list-item>
<list-item aid:pstyle="Order-Middle"><p>In Section we obtained an estimate for the mean of.</p></list-item>
<list-item aid:pstyle="Order-Last"><p>From steps 3, 4, and 5 above, we have generated (a table of) values for.</p></list-item>
</list></p>
감사 시바 쿠마 M.
내 대답은 XSLT 될 것이다. 또는 XQuery. XML을 파싱/조작/직렬화하기 위해 표준 API를 사용하여 손으로 작성한 코드. 그러나 귀하의 제안 된 출력은 고장났습니다; 현대 XML 도구가 문서를 받아들이게하려면'aid :'접두어에 대한 네임 스페이스 바인딩을 제공해야합니다. – keshlam