This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NEWLINES


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]