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


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


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