Frage

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

War es hilfreich?

Lösung

<xsl:template match="*[* and not(text()[normalize-space()])]/text()"/>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top