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

Re: Looping through multiple elements

Subject: Re: Looping through multiple elements
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 18 Mar 2008 17:37:24 +0100
Re:  Looping through multiple elements
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/

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.