This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: NEWLINES
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 6 Mar 2002 10:09:08 +0000
- Subject: Re: [xsl] NEWLINES
- Organization: Jeni Tennison Consulting Ltd
- References: <9B66BBD37D5DD411B8CE00508B69700FE7AC96@pborolocal.rnib.org.uk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Dave Pawson wrote:
> I think it was Jeni Tennidots who gave us
> <xsl:value-of select='xxx'/><xsl:text/>
> <xsl:value-of select='yyy'/>
>
> to make this a little prettier.
If you mean:
<xsl:value-of select="xxx" />() {<xsl:text />
<xsl:value-of select="yyy" />
Then that was David Allouche, not me :)
The more sensible XSLT 2.0 way is:
<xsl:text><xsl:value-of select="xxx" />() {</xsl:text>
<xsl:value-of select="yyy" />
Although of course you could just use concat() to solve the whitespace
problems instead:
<xsl:value-of select="concat(xxx, '() {', yyy)" />
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list