سؤال

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