This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: NEWLINES
- From: "Joerg Heinicke" <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 5 Mar 2002 20:24:18 +0100
- Subject: Re: [xsl] NEWLINES
- References: <20020305185330.16128.qmail@mailweb15.rediffmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Kim,
you described your problem a bit to general. New lines can come from
everywhere ;-) But in most cases they are caused by using
<xsl:apply-templates/> (without any select-statement).
<parent>
<child/>
<child/>
</parent>
element 'parent'
|-- textnode consisting of newline and spaces
|-- element 'child'
|-- textnode consisting of newline and spaces
|-- element 'child'
|-- textnode consisting of newline and spaces
When using <xsl:apply-templates/>, these textnodes will be copied to the
output (built-in / default template). Does another template <xsl:template
match="text()"/> help?
Regards,
Joerg
----- Original Message -----
From: "Kim Durand" <vsd18@rediffmail.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Tuesday, March 05, 2002 7:53 PM
Subject: [xsl] NEWLINES
> is there a way to remove unwanted newlines from the output??
>
> i am getting for some reasons, unwanted newlines in the output. i
> want to get rid of them. please help someone
> many thanks
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list