Re: [xsl] NEWLINES

Subject: Re: [xsl] NEWLINES
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 6 Mar 2002 10:09:08 +0000
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


Current Thread