Re: Output multiple occurence into one and concatenate
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.
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format