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" />
精彩评论