This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
White space in HTML result??
- To: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] White space in HTML result??
- From: owner-xsl-list at lists dot mulberrytech dot com (by way of MulberryTechnologies List Owner)
- Date: Mon, 5 Feb 2001 09:34:04 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
From: "Kevin Duffey" <kevin.duffey@home.com>
To: <xsl-list@lists.mulberrytech.com>
Subject: White space in HTML result??
Date: Mon, 5 Feb 2001 01:58:15 -0800
Message-ID: <GEEILLHAAFBKBBBMPBLCIEDJCDAA.kevin.duffey@home.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
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@phreaker.net>
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"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<html><head></head>
<body>
<div align="center">
<xsl:for-each select="menu/link">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@href"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="@target"/>
</xsl:attribute>
<xsl:value-of select="@name"/></a>  
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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  , the white space disappears, but then my xsl looks
crappy.
Thanks.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list