在 xsl 中显示新行而不是 br 标签

displaying new lines insted of br tag in xsl

我对 xsl 很陌生。我正在将一个 XML1 文件更改为另一个 XML2 文件,而另一个 XML2 文件需要进一步更改为文档。

我更改后的 XML2 This is my xml 2 file br tags file, but when i convert those into a doc they are not displaying new lines rather they are displaying the same BR tags this is the doc file with same br tags 中有一些 BR 标记。任何人都可以帮助我并告诉我如何解决这个问题。这会很棒。提前致谢

要将 <br/> 标签转换为 return 字符,请像这样使用 <xsl:text>

<xsl:template match="br">
<xsl:text>

</xsl:text>
</xsl:template>