This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
multiple child elements
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] multiple child elements
- From: "Sean Kelly" <sean at allure dot karoo dot co dot uk>
- Date: Sun, 9 Sep 2001 10:36:47 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
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