xsl-list
[Top] [All Lists]

Re: Other about to get a comma delimited string

2003-04-08 08:07:27
Thanks, excellent results

David

----- Original Message -----
From: "Delaney Robin" <Robin(_dot_)Delaney(_at_)fja(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, April 08, 2003 10:20 AM
Subject: AW: [xsl] 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(_dot_)Delaney(_at_)fja(_dot_)com



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



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