This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: concatenate a string


what i need is this :
> 
> <var
> name=fieldList="INFO_REC,MATERIAL,MAT_GRP,VENDOR,DELETE_IND,CR
> EATED_AT,CREAT
> ED_BY,SHORT_TEXT,SORTED_BY,PO_UNIT">

Try:

 <var>
 <xsl:attribute name="fieldlist"
 <xsl:for-each
  select="BusinessObject/Export/Table/Record[1]/Parameter/@Name">
  	<xsl:value-of select="."/>
	<xsl:if test="position()!=last()">,</xsl:if>
  </xsl:for-each>
 </xsl:attribute>
 </var>


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]