Re: [xsl] Looping through multiple elements

Subject: Re: [xsl] Looping through multiple elements
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 18 Mar 2008 17:37:24 +0100
Jones Mark Mr (ITCS) wrote:

I tried this;

<xsl:for-each select="//dc:creatorid | //dc:creator1id | //dc:creator2id
| //dc:creator3id">
    <component group="authors_logins" name="value">
    <xsl:value-of select="."/><xsl:if test="position() != last()">,

And the output was just this. <component name="value" group="authors_logins">n030, </component>

The metadata has values for dc:creatorid and dc:creator1id so there
should be a value after the comma.

Show us the relevant part of the XML input then we can say more.


	Martin Honnen

Current Thread