Hello Katharine Wykes
You can do it in this way.
<xsl:template match="menu[(_at_)id='6']"> <!--here '' are used if this
is a string -->
<xsl:value-of select="*"/>
</xsl:template>
It will select all the child element of <menu id="what ever you
want">
hope it will help you
enjoy
ashu
On Fri, 30 Aug 2002 katharine wykes wrote :
Hi,
I would like to produce a list of child nodes from a parent that
has a specific attribute value, ie with the following xml
structure I want to just retrive the children of the menu node
with an id of 6.
<menu id=6>
<menu id=7/>
<menu id=8/>
</menu>
<menu id=9>
<menu id=10/>
<menu id=11/>
</menu>
I have tried
<xsl:for-each "../@id=$id">
<xsl:value-of select="@id"/>
</xsl:for-each>
Using a param passed in from asp.
Am I on the right track, and would the above method be the best
to retrieve a certain section of a heirachacal xml structure
based on a parent attribute.
I am using asp with the msxml parser.
Thanks in advance.
_________________________________________________________________
Send and receive Hotmail on your mobile device:
http://mobile.msn.com
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list