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

Inserting commas between a list of distinct values and

Subject: Inserting commas between a list of distinct values and a period (full stop) after the last task
From: "Mark" <mark@xxxxxxxxxxxx>
Date: Wed, 18 Apr 2012 16:37:10 -0700
 Inserting commas between a list of distinct values and
I collect from an XML document a list of the distinct tasks performed during multiple sessions with:
<fo:block>
<xsl:text>Projects Tasked: </xsl:text>
<xsl:value-of select="distinct-values(//Session/@task)"/>
</fo:block>
This produces a correct list of all the distinct tasks from multiple occurrences of the same tasks:
LS Authorities Maintenance Administration Meeting


Which I want to put in the PDF document punctuated as:
LS Authorities, Maintenance, Administration, Meeting.
where ("LS Authorities" is recorded as a single task despite its internal space).


Can this be done with the information given?
Thanks,
Mark

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.