xsl-list
[Top] [All Lists]

Re: Transforming XML to CSV

2002-10-15 06:08:44

<xsl:for-each select="row">
  <xsl:text>&#10;</xsl:text>
  <xsl:for-each select="column">
   <xsl:text>"</xsl:text>
   <xsl:value-of select="."/>
   <xsl:text>"</xsl:text>
   <xsl:if test="position()&lt;last()">,</xsl:if>
  </xsl:for-each>
</xsl:for-each>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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



<Prev in Thread] Current Thread [Next in Thread>