<w:p w:rsidR="00EF034A" w:rsidRDefault="004165FE">
<w:proofErr w:type="gramStart"/>
<w:r>
<w:t>one</w:t>
</w:r>
<w:proofErr w:type="gramEnd"/>
<w:r>
<w:t xml:space="preserve"> 11 8 15</w:t>
</w:r>
</w:p>
<w:p w:rsidR="004165FE" w:rsidRDefault="004165FE">
<w:r>
<w:t>two 开发者_开发问答 31</w:t>
</w:r>
</w:p>
Hi all, I need a guidance to write xslt template to reproduce the same content in node(w:t) in my output html(with white spaces in between). When i take the content of that node(w:t), the spaces(in between) are missing in output html.Please help me.Thanks in advance
You will need to provide more details, I guess you want
<xsl:template match="w:t">
<span style="white-space: pre;">
<xsl:value-of select="."/>
</span>
</xsl:template>
to ensure that HTML does not collapse any white space in between.
精彩评论