RE: [xsl] how to omit new lines

Subject: RE: [xsl] how to omit new lines
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 7 Sep 2001 22:54:43 +0100
Use <xsl:value-of select="normalize-space(.)"/>

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of 
> Dmitri Ilyin
> Sent: 07 September 2001 19:57
> To: XSL-List@lists. mulberrytech. com (E-mail)
> Subject: [xsl] how to omit new lines
> 
> 
> Hi *,
> 
> I have simple xml as follows:
> 
> <text>
>    text
> </text>
> 
> and simple xsl to them:
> 
> ....
> <xsl:output method="html">
> ...
> <xsl:template match="text">
> 	blah:<xsl:value-of select="."/>
> </xsl:template>
> 
> I got in output:
> 
> .....
>      blah:
>         text
> 
> so the result of selection will be outputted in new line, as 
> in xml file.
> 
> How can i get it to put it all in one line:
> 
> ...
> blah: text
> ...
> 
> Thanks for advise
> 
> regards
> 
> Dmitri
>      
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

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


Current Thread