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

multiple child elements

Subject: multiple child elements
From: "Sean Kelly" <sean@xxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Sep 2001 10:36:47 +0100
multiple child
hi all,

i'm using IE5 and have the following snippet of an XML file

<kitlist>
 <synth>
  <links>
   <url name="korg.com">http://www.korg.com</url>
   <url name="lfo4.com">http://www.lfo4.com</url>
  </links>
 </synth>
</kitlist>

when i apply the following XSL it only lists the first child element in the
XML file.

<xsl:for-each select="kitlist/synth">
 <a target="_blank">
  <xsl:attribute name="href">
   <xsl:value-of select="links/url"/>
  </xsl:attribute>
  <xsl:value-of select="links/url/@name"/>
 </a>
</xsl:for-each>

how do i display all the child elements from the XML file without having to
give each child a unique tag name?

cheers,

sean


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2011 All Rights Reserved.