This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

multiple child elements


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]