xsl-list
[Top] [All Lists]

[xsl] Inserting commas between a list of distinct values and a period (full stop) after the last task

2012-04-18 18:37:39
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>