This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how to omit new lines
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] how to omit new lines
- From: "Robert Koberg" <rob at koberg dot com>
- Date: Fri, 7 Sep 2001 12:57:17 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
you can also do it this way:
<xsl:template match="text">
<xsl:text>blah: </xsl:text>
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Thomas B.
> Passin
> Sent: Friday, September 07, 2001 12:34 PM
> To: XSL-List@lists. mulberrytech. com (E-mail)
> Subject: Re: [xsl] how to omit new lines
>
>
> <xsl:template match="text">blah:<xsl:value-of
> select="normalize-space(.)"/>
> </xsl:template>
>
> 1) Note that the template has no newline in it between "blah:" and
> <xsl:value-of>.
> 2) Normalize-space got rid the the newline after the <text> element in the
> source file.
>
> Cheers,
>
> Tom P
>
>
> [Dmitri Ilyin]>
> > 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
> > ...
> >
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list