Domanda

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

È stato utile?

Soluzione

<xsl:template match="*[* and not(text()[normalize-space()])]/text()"/>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top