【发布时间】:2012-09-10 05:57:50
【问题描述】:
我只需要将 XML 文档转换为 WordML 文档(如果可以称之为简单的话!),使用此表单(无需处理指令):
<body>
<p>
<r>This is the <italic>standard</italic> text run.</r>
</p>
</body>
根据 WordML 文档,转换后的 XML 应该如下所示:
<w:body>
<w:p>
<w:r>
<w:t>This is the </w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:i/>
</w:pPr>
<w:r>
<w:t>standard</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t> text run.</w:t>
</w:r>
</w:p>
</w:body>
我应该如何创建 XSLT 转换以正确处理斜体标签??..
【问题讨论】: