xsl-list
[Top] [All Lists]

Re: [xsl] Looping through multiple elements

2008-03-18 09:38:01
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()">,
</xsl:if>
    </component>
</xsl:for-each>

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
        http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
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>