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; 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
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>
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] problem with iso-8859-1 a, Michael Beddow | Thread | Re: [xsl] White space in HTML resul, Mike Brown |
RE: [xsl] expanding !DOCTYPE tag, Michael Kay | Date | Re: [xsl] Sort problem, Jeni Tennison |
Month |