Subject: Re: Other about to get a comma delimited string
From: "David Pacheco" <dpacheco@xxxxxxxxxxxx>
Date: Tue, 8 Apr 2003 11:07:27 -0400
|
Thanks, excellent results
David
----- Original Message -----
From: "Delaney Robin" <Robin.Delaney@xxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, April 08, 2003 10:20 AM
Subject: AW: Other about to get a comma delimited string
Hello David,
Try something along these lines. It produces a semi-colon-seperated list.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="Registro/TipoDescriptor">
<xsl:for-each select="*">
<xsl:value-of select="node()"/>
<xsl:if test="position()!=last()">;</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Cheers,
Robin
Robin Delaney
FJA Feilmeier & Junker GmbH
Elsenheimerstraße 65, 80687 München.
* +49 (0) 89 - 76 901-7058
Fax +49 (0) 89 - 76 901-9502
web http://www.fja.com
* Mailto:Robin.Delaney@xxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|