开发者

I want to remove XSL whitespace from Markdown formatting

Markdown formatting is coming into my XSL and maintaining its whitespace and brea开发者_Python百科ks. I want it to be converted to actual HTML elements to remove all whitespace.

Here's a look at the incoming data & HTML source, and here's the code used to process it..

<xsl:value-of select="description-continued" disable-output-escaping="yes" />

The XSL output method already contains indent="no"


You may just need (in case no group of whitespace characters really matters):

<xsl:template match="text()">
 <xsl:value-of select="normalize-space()"/>
</xsl:template>


<xsl:value-of select="normalize-space(description-continued)" disable-output-escaping="yes" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜