[xsl] White space in HTML result??

Subject: [xsl] White space in HTML result??
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of Mulberry Technologies List Owner)
Date: Mon, 5 Feb 2001 09:34:04 -0500
From: "Kevin Duffey" <kevin.duffey@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: White space in HTML result??
Date: Mon, 5 Feb 2001 01:58:15 -0800
Message-ID: <GEEILLHAAFBKBBBMPBLCIEDJCDAA.kevin.duffey@xxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <577618514.20010205111833@xxxxxxxxxxxx>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Hi there,

Is there any way to remove white space from the result html output? I have
something like:

<xsl:stylesheet version="1.0"

<xsl:template match="page">
      <div align="center">
        <xsl:for-each select="menu/link">
            <xsl:attribute name="href">
              <xsl:value-of select="@href"/>
            <xsl:attribute name="target">
              <xsl:value-of select="@target"/>
            <xsl:value-of select="@name"/></a>&#160;&#160;


The problem is, after each </a> in the HTML page, there is x number of spaces. Not that its a huge deal, but it would be nice not to send all that extra white space back. If I move the </xsl:for-each> to the end of the line next to the last &#160;, the white space disappears, but then my xsl looks crappy.


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread