[xsl] xsl schould render a vbs-Array

Subject: [xsl] xsl schould render a vbs-Array
From: Hans Pickelmann | Nürnberg <info@xxxxxxxxxxxxxxxx>
Date: Mon, 24 May 2004 19:19:56 +0200
i want to render xml-nodes to a vbs array. 
but i don't want to have an empty entry at the end of the array. 
my xml looks like: 

<field noUpdate="true"> 
<field noUpdate="false"> 
<field noUpdate="false"> 

and here my xsl 
<xsl:apply-templates select="fieldnameArray" /> 

<xsl:template match="fieldnameArray"> 
no_update_fields=Array("<xsl:for-each select="field" ><xsl:if test="@noUpdate = 'true'"><xsl:apply-templates select="./fieldname"
/><xsl:if test="position()!=last()">", "</xsl:if></xsl:if></xsl:for-each>") 

if the last noUpdate-attribute is false there will always be an empty 
entry in my vbs-array 

Any help would be greatly appreciated. 
greetinx Hans

Hans Pickelmann
PULSAR interactive media GmbH                          
Online Development                                     
Forsterstra_e 100    Durchwahl: +49 (0)911 / 416 000 73
90441 N|rnberg       Fax:       +49 (0)911 / 416 000 75
Germany              Mobil:     +49 (0)170 / 903 42  43 
                     E-Mail:    mailto:hp@xxxxxx       
                     Internet:  http://pim.de

Current Thread