XSLT: how to ignore unnecessary white space?
- by arnaud
Hi,
Given this example XML file:
<doc>
<tag>
Hello !
</tag>
<tag>
My
name
is
John
</tag>
</doc>
And the following XSLT sheet:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="doc/tag">
…