Subject: Re: [xsl] XML To CSV From: Roy <ra81@xxxxxxxxx> Date: Thu, 29 Jul 2004 16:56:53 +0200 |
Hi Andrew, The following stylesheet :
<xsl:template match="/"> <xsl:apply-templates select="//Account[1]/descendant::*" /> </xsl:template>
<xsl:template match="*"> <xsl:if test = "normalize-space(text())!=''" > <xsl:value-of select = "." /> <xsl:if test = "not(position()=last())" > <xsl:text >,</xsl:text> </xsl:if> </xsl:if> </xsl:template> </xsl:stylesheet>
gives the output : 1000748,1,1052.35,Mr,Joe,Bloggs
Regards AR
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Altsoft announces Xml2PDF com, Altsoft Xml2PDF | Thread | [xsl] Trouble getting a node froma , xptm |
[xsl] Altsoft announces Xml2PDF com, Altsoft Xml2PDF | Date | Re: [xsl] embedding xsl within java, dave frette |
Month |