[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

White space in HTML result??

Subject: White space in HTML result??
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of MulberryTechnologies List Owner)
Date: Mon, 5 Feb 2001 09:34:04 -0500
space in html
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;
	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@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"
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>&#160;&#160;
          </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 &#160;, the white space disappears, but then my xsl looks crappy.

Thanks.

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.