Question

Given any document or fragment, specially those loaded using document() or doc(), how do you remove the insignificant whitespace (i.e. indentation)?

Was it helpful?

Solution

<xsl:template match="*[* and not(text()[normalize-space()])]/text()"/>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top