Skip to content

Instantly share code, notes, and snippets.

@paregorios
Created October 21, 2014 20:22
Show Gist options
  • Select an option

  • Save paregorios/92d7436c69a785711887 to your computer and use it in GitHub Desktop.

Select an option

Save paregorios/92d7436c69a785711887 to your computer and use it in GitHub Desktop.
<xsl:variable name="clean-context">
<xsl:for-each select="$ww-context/following-sibling::node()">
<xsl:choose>
<xsl:when test="self::text() and normalize-space(.) = ''"/>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:variable>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment