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

有帮助吗?

解决方案

<xsl:template match="*[* and not(text()[normalize-space()])]/text()"/>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top