[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Converting XML source to CSV output

Subject: Re: Converting XML source to CSV output
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 20 Sep 2001 16:42:15 +0100
xml xslt csv output
Hi Mark,

> Perhaps an faq, but why is it that "concat" is used instead of
> merely outputting the text as encountered and letting the output
> stream act as a de facto concat?

Probably just because it's longer to have multiple xsl:value-of than
it is to use a single one, e.g. compare:

  <xsl:value-of select="$rec1" />
  <xsl:text>,</xsl:text>
  <xsl:value-of select="$rec2" />
  <xsl:text>,</xsl:text>
  <xsl:value-of select="$recn" />
  <xsl:text>,</xsl:text>

with:

  <xsl:value-of select="concat($rec1, ',', $rec2, ',', $recn, ',')" />

Given that a substantial portion of XSLT processing time is taken up
parsing XML (including the stylesheet), the smaller the stylesheet the
better, arguably.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.