| From | Sent On | Attachments |
|---|---|---|
| Jones Mark Mr (ITCS) | Mar 18, 2008 7:29 am | |
| Andrew Welch | Mar 18, 2008 8:27 am | |
| Jones Mark Mr (ITCS) | Mar 18, 2008 9:32 am | |
| Martin Honnen | Mar 18, 2008 9:37 am | |
| David Carlisle | Mar 18, 2008 9:37 am | |
| Jones Mark Mr (ITCS) | Mar 18, 2008 10:10 am | |
| ac | Mar 18, 2008 10:10 pm | |
| ac | Mar 18, 2008 10:25 pm | |
| Mukul Gandhi | Mar 19, 2008 1:28 am | |
| Michael Kay | Mar 19, 2008 2:15 am | |
| Michael Kay | Mar 19, 2008 2:21 am | |
| David Carlisle | Mar 19, 2008 3:01 am | |
| Patrick Bergeron | Mar 19, 2008 7:17 am | |
| David Carlisle | Mar 19, 2008 7:28 am | |
| Wendell Piez | Mar 19, 2008 9:44 am | |
| Michael Kay | Mar 19, 2008 10:21 am | |
| ac | Mar 19, 2008 10:33 am | |
| Ken Tam | Mar 19, 2008 9:49 pm | |
| Dimitre Novatchev | Mar 19, 2008 10:38 pm | |
| Dimitre Novatchev | Mar 20, 2008 6:34 am | |
| Michael Kay | Mar 20, 2008 7:31 am |
| Subject: | [xsl] Looping through multiple elements | |
|---|---|---|
| From: | Jones Mark Mr (ITCS) (Mark...@uea.ac.uk) | |
| Date: | Mar 18, 2008 7:29:48 am | |
| List: | com.mulberrytech.lists.xsl-list | |
Version: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Hi,
I am very new to xsl and need some help on a very short-term project. I am working on a system that will output metadata in xml format and am editing a xsl document that will conrtol what is output.
I have managed to amend the xsl file to generate the right output when there is a single element. This is as follows;
<xsl:for-each select="//dc:description"> <component group="description" name="value"> <xsl:value-of select="."/> </component> </xsl:for-each>
This is fine as there is only one piece of metadata stored in the dc:description field.
What I am stuck on is looping through multiple elements and getting xsl to write the values into a comma deliminated string.
For example, there are also these fields (dc:creator, dc:creator1, dc:creator2, dc:creator3). I need to make the xml output for this generate the xml below (the names are just examples)
<component name="value" group="creators">Smith, Jones, Black, White</component>
If anyone can point me in thr right direction or to a useful tutorial it would be great as I am not sure what termonology to really use.
Thanks.
Mark Jones University of East Anglia Norwich NR4 7TJ Tel: 01603 59 1250
--~------------------------------------------------------------------ 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-...@lists.mulberrytech.com> --~--





