[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Output multiple occurence into one and concatenate

Subject: Re: Output multiple occurence into one and concatenate values
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 29 Mar 2007 20:40:15 +0200
Re:  Output multiple occurence into one and concatenate
Shaikh, Parvez wrote:
I am an XSL newbie. Can someone please respond?

It won't help you sending the whole message twice within the hour. We are all volunteers here and they will help and/or respond when they have some free time and when they find your query clear and concise enough.



I have given my XML and XSL below. The rest all is taken care of. All I
want to do is Combine all cost_allocation_product into one and append
all values for the attributes when doing thiss.


Thanks for the XML and XSL, however, next time, please send only the relevant parts in a minimal working sample that explains your problem. Usually, doing so, will help you in understanding your own problem better.

if you have somewhere:

<xsl:apply-templates select="//cost_allocation_product" />

than you can place somewhere a matching template:

<xsl:template match="cost_allocation_product">
   <xsl:value-of select="@your-attr-here" />
   <xsl:text>,</xsl:text>
</xsl:template>


That should do it. You may wrap the apply-templates in a <xsl:attribute ..> if you want the result inside an attribute's value.


Cheers,
-- Abel

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.